GtkSharp/gtk/TextTag.custom
Radek Doulik 74cc769b7f 2003-12-12 Radek Doulik <rodo@ximian.com>
* 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
2003-12-12 16:45:51 +00:00

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));
}
}