Re: [Gtk-osx-users] weird menu problem



On Feb 11, 2011, at 2:32 PM, Olivier Sessink wrote:

> 2011/2/10 Richard Procter <richard n procter gmail com>:
> 
>> "--g-fatal-warnings.  Make GTK+ abort on all warnings. This is useful to stop on the first warning in a debugger, if your application is printing multiple warnings. It's almost always best to start debugging with the first warning that occurs."
> 
> great suggestion!!!
> 
> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
> 0   libglib-2.0.0.dylib           	0x00e4a903 g_logv + 1342
> 1   libglib-2.0.0.dylib           	0x00e4aa08 g_log + 44
> 2   libglib-2.0.0.dylib           	0x00e4aa42 g_return_if_fail_warning + 56
> 3   libgobject-2.0.0.dylib        	0x00db16cc g_object_get + 139
> 4   libigemacintegration.0.dylib  	0x00234afc
> cocoa_menu_item_update_accelerator + 161
> 5   libigemacintegration.0.dylib  	0x00234fed
> cocoa_menu_item_update_accel_closure + 353
> 6   libigemacintegration.0.dylib  	0x00235471 cocoa_menu_item_sync + 248
> 7   libigemacintegration.0.dylib  	0x00235783 cocoa_menu_item_add_item + 734
> 8   libigemacintegration.0.dylib  	0x00235bae cocoa_menu_item_add_submenu + 1060
> 9   libigemacintegration.0.dylib  	0x0023494a
> cocoa_menu_item_update_submenu + 720
> 10  libigemacintegration.0.dylib  	0x002354a3 cocoa_menu_item_sync + 298
> 11  libigemacintegration.0.dylib  	0x00235783 cocoa_menu_item_add_item + 734
> 12  libigemacintegration.0.dylib  	0x00235bae cocoa_menu_item_add_submenu + 1060
> 13  libigemacintegration.0.dylib  	0x002388cf
> gtk_osxapplication_set_menu_bar + 688
> 
> I found that get_menu_label_text() returns a NULL label once in a
> while, and that is why g_object_get warns that NULL is not an object.

Good job.

They're probably separators. Anyway, it's an easy thing to fix, pushed to github.

Regards,
John Ralls





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