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

Can I look at the module which generated this error I mean just that function.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.