[Gtk-sharp-list] Possible generator bugs.

Todd Berman tberman@gentoo.org
Tue, 26 Aug 2003 17:15:45 -0400


Found a couple potential bugs, need a bit of outside info to clear them
up:

1) In TextTag for example, the Get/SetProperty Method is used a lot
using property names like "wrap_mode" and "font_desc", and the GTK+ API
reference uses "wrap-mode" and "font-desc". I am not sure if one is an
alias for the other, or if this is a real bug.

2) In TextTag again, the set accessor for FontDesc (A
Pango.FontDescription) results in this error:

(<unknown>:2268): GLib-GObject-WARNING **: gvalue.c:93: cannot
initialize GValue
 with type `GBoxed', this type has no GTypeValueTable implementation

(<unknown>:2268): GLib-GObject-CRITICAL **: file gboxed.c: line 487
(g_value_set
_boxed): assertion `G_VALUE_HOLDS_BOXED (value)' failed

(<unknown>:2268): GLib-GObject-CRITICAL **: file gobject.c: line 1019
(g_object_
set_property): assertion `G_IS_VALUE (value)' failed

The code that gtk# attempts to use is as follows:

				SetProperty("font_desc", new
GLib.Value(value));

Now obviously this code is incorrect as the first Glib warning makes
very clear.

My own lack of gtk+ knowledge prevents me from really fixing this bug,
as I am not really sure exactly what SetProperty should have passed to
it.

However, it seems like a relatively quick fix for someone who knows gtk+
moderatly well.

--Todd