GNOME Bugzilla – Bug 679705
Using NULL with gtk_application_set_menubar causes segfault
Last modified: 2012-07-11 01:24:52 UTC
Removing a menubar by passing NULL to gtk_application_set_menubar causes a segfault. I have not tested this with the application menu. According to the gtk documentation at <http://developer.gnome.org/gtk3/3.3/GtkApplication.html#gtk-application-set-menubar>, this should be valid. I am currently using an empty GMenu to work around this bug. STEPS TO REPRODUCE: 1. Create a GtkApplication 2. gtk_application_set_menubar (application, menu_model); 3. gtk_application_set_menubar (application, NULL); BACKTRACE: Program received signal SIGSEGV, Segmentation fault. 0xb78046d7 in g_menu_model_get_n_items () from /usr/lib/libgio-2.0.so.0 (gdb) backtrace
+ Trace 230495