mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 14:45:30 +00:00
74cc769b7f
* gtk/Gtk.metadata: hide TextTag.Weight property and implement it in TextTag.custom. TextTag Weight property in gtk is of type int, but we want it to be Pango.Weight enum 2003-12-10 Radek Doulik <rodo@ximian.com> * glue/program.c (get_default): moved check after strspec is set so we don't check uninitialized value svn path=/trunk/gtk-sharp/; revision=21068
21 lines
495 B
Plaintext
21 lines
495 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 = new GLib.Value ();
|
|
GetProperty ("weight", val);
|
|
Pango.Weight ret = (Pango.Weight) (int) val;
|
|
return ret;
|
|
}
|
|
set {
|
|
SetProperty ("weight", new GLib.Value ((int) value));
|
|
}
|
|
} |