0

Ok...i've been getting a weird error in Gtk+. I've narrowed it down to this line:

gtk_menu_shell_append(GTK_MENU_SHELL(helpmenu5), about);

that gives me this error:

(packing:5236): Gtk-CRITICAL **: gtk_menu_shell_insert: assertion `GTK_IS_MENU_SHELL (menu_shell)' failed

Now my program compiles, however the menu wont pop up and the terminal prints that error...does anyone know what this error means, and how to fix it?

Thanks
~ mike

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by athlon32
0

k

This is the source...well I've left unrelated stuff out:

GtkWidget *about = NULL;
GtkWidget *help = NULL; // menu item "Help"
GtkWidget *helpmenu5 = NULL;

helpmenu5 = gtk_menu_new();
help = gtk_menu_item_new_with_mnemonic("_Help");

about = gtk_menu_item_new_with_label("About RIDE...");

gtk_menu_item_set_submenu(GTK_MENU_ITEM(help), helpmenu5);
            gtk_menu_shell_append(GTK_MENU_SHELL(helpmenu5), about);

I think that's it...i might of forgotten somethin' though

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.