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

On Oct 10, 2013, at 2:00 PM, Andrius <andriusr yahoo com> wrote:

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

Ah! I see it.

Try this:

diff --git a/src/cocoa_menu_item.c b/src/cocoa_menu_item.c
index 3f57f1f..5a9b0e2 100644
--- a/src/cocoa_menu_item.c
+++ b/src/cocoa_menu_item.c
@@ -692,14 +692,17 @@ cocoa_menu_item_add_submenu (GtkMenuShell *menu_shell,
       _GNSMenuItem *item = (_GNSMenuItem*)[cocoa_menu itemAtIndex: index];
       if ([item isSeparatorItem] &&
          (last_cocoa_item == nil || [last_cocoa_item isSeparatorItem]))
+       {
          [cocoa_menu removeItem: item];
+         continue;
+       }
       if (([item respondsToSelector: @selector (isMarked)]) && [item isMarked])
        [cocoa_menu removeItem: item];
       else if (![item isHidden])

John Ralls

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