Re: [gtk-osx-users] gtk+3.10 on MacOSX 10.8.5 with Retina display



Well, it did not work. The same crash at the same line...
Andrius


From: John Ralls <jralls ceridwen us>
To: Andrius <andriusr yahoo com>
Cc: "gtk-osx-users-list gnome org" <gtk-osx-users-list gnome org>
Sent: Thursday, October 10, 2013 11:21 PM
Subject: Re: [gtk-osx-users] gtk+3.10 on MacOSX 10.8.5 with Retina display


On Oct 10, 2013, at 12:47 PM, Andrius <andriusr 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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]