[Glade-users] error message caused by interaction between Glade and gnome macro

Damon Chaplin damon@helixcode.com
Thu, 07 Sep 2000 23:19:02 +0100


Friedrich Steven E CONT CNIN wrote:
> 
> Hi glade-users,
> 
> I'm new to X windows programming and am attempting to learn Glade, GNOME,
> and GTK all at once 8o)
> 
> I used Glade(with gnome support on) to create a simple app (much like the
> "hello world" app in the gnome tutorial) and I edited
> interface.c (which Glade generated) to add the GNOMEUIINFO_HELP macro to my
> help menu.  It compiles and works, but when the app starts, it yields two
> warnings:
> 
> Gtk-CRITICAL **: file gtkwidget.c line 4863 (gtk_widget_ref): assertion
> 'widget != NULL' failed.
> 
> GLib-CRITICAL **: file gdataset.c line 359 (g_datalist_id_set_data_full):
> assertion 'destroy_func == NULL' failed.
> 
> I've used this macro in the gnome app I created outside of Glade.  Can
> anybody try it and see it they know what's wrong?

I think the problem is that Glade uses the indices of the items in the
GnomeUIInfo struct, so since you added the GNOMEUIINFO_HELP item it messed
the generated code up.

In Glade 0.5.9 there is a project option to support Gnome Help, which adds
this macro, so you could use that.
Otherwise you could try updating the indices.

Or run it in gdb with --g-fatal-warnings and you'll see where the first
problem is.

Damon