On Oct 10, 2013, at 12:47 PM, Andrius <andri...@yahoo.com> wrote: > Here is gtk-mac-integration backtrace (get this using gdb): > [SNIP] > #13 0x000000010043215c in cocoa_menu_item_add_submenu > (menu_shell=0x1038e0e30, cocoa_menu=0x10dee5c10, toplevel=0, debug=0) at > cocoa_menu_item.c:703 >
[SNIP] > Hopefully this helps... It does. Please try this: diff --git a/src/cocoa_menu_item.c b/src/cocoa_menu_item.c index 3f57f1f..9434556 100644 --- a/src/cocoa_menu_item.c +++ b/src/cocoa_menu_item.c @@ -699,7 +699,7 @@ cocoa_menu_item_add_submenu (GtkMenuShell *menu_shell, last_cocoa_item = item; } /* Finally make sure that the last item isn't a separator. */ - if ([last_cocoa_item isSeparatorItem]) + if (last_cocoa_item != nil && [last_cocoa_item isSeparatorItem]) [cocoa_menu removeItem: last_cocoa_item]; g_list_free (children); If that doesn't work, I'll need you to figure out how last_cocoa_item is set to something that isn't on the NSMenu. Regards, John Ralls _______________________________________________ Gtk-osx-users-list mailing list Gtk-osx-users-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list