mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 18:15:35 +00:00
1ac00ff205
[Rework of a patch from Ben Maurer to turn GLib.Value into a valuetype.] * generator/BoxedGen.cs : fix operators for new valuetype GValues. * generator/ByRefGen.cs : new generatable for byref value types. * generator/Makefile.am : add ByRefGen.cs. * generator/MethodBody.cs : remove GValue special casing. * generator/Property.cs : rework value handling. * generator/Signal.cs : fix base virtual method value passing. * generator/SymbolTable.cs : map GValue to ByRefGen. * glib/Object.cs : rework GetProperty and SetProperty. * glib/Value.cs : make it a value type. * glib/ValueArray.cs : fix GValue passing. * glib/glue/value.c : rework for valuetype GValues. * gnome/Program.custom : fix GValue passing * gtk/Gtk.metadata : make TreeModel.GetValue value param pass_as=ref. * gtk/ListStore.custom : fix GValue passing * gtk/NodeStore.cs : fix GValue passing * gtk/TextTag.custom : fix GValue passing * gtk/TreeModelSort.custom : fix GValue passing * gtk/TreeStore.custom : fix GValue passing svn path=/trunk/gtk-sharp/; revision=25368
24 lines
534 B
Plaintext
24 lines
534 B
Plaintext
//
|
|
// Gtk.TextTag.custom - Gtk TextTag class customizations
|
|
//
|
|
// Author: Radek Doulik (rodo@ximian.com)
|
|
//
|
|
// Copyright (C) 2002 Ximian, Inc.
|
|
//
|
|
// This code is inserted after the automatically generated code.
|
|
//
|
|
|
|
public Pango.Weight Weight {
|
|
get {
|
|
GLib.Value val = GetProperty ("weight");
|
|
Pango.Weight ret = (Pango.Weight) (int) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
set {
|
|
GLib.Value val = new GLib.Value ((int) value);
|
|
SetProperty ("weight", val);
|
|
val.Dispose ();
|
|
}
|
|
}
|