Hi there:
I'm getting this error message:
-------------- < Error > --------------
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget'
Gtk-CRITICAL **: file gtkwidget.c: line 1424 (gtk_widget_show): assertion `widget != NULL' failed.
main (argc=1, argv=0xbffffc64) at main.c:62
-------------- < /Error > --------------
when I'm trying to set active a check item for a menubar. The code goes
like this:
-------------- < code > --------------
ttbtn = gtk_item_factory_get_widget( itemfactory,
"/Options/Show Tool Bar" );
if ( ttbtn )
gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(ttbtn), TRUE );
-------------- < /code > --------------
Though the code is working, (the check-item is set active anyway) I'm
afraid there's something wrong (why?... why?), so I really appreciate
any corrections.
Thanks in advance.
Regards.
Attachment:
pgp7BZnPMRjup.pgp
Description: PGP signature