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



On Feb 10, 2011, at 4:17 AM, Olivier Sessink wrote:

> I just noticed that test_integration is default built with
> gtkosxapplication, and not with ige-mac-integration.
> 
> however, changing the define on top doesn't help, because it doesn't build:
> 
> test-integration.c: In function ‘view_menu_cb’:
> test-integration.c:424: error: ‘GtkOSXApplication’ undeclared (first
> use in this function)
> 
> I'll see if I can fix that myself.
> 
and 
> I ported bluefish to the new GtkOSXApplication API. The menu now
> works, but I get loads of GLib-GObject-CRITICAL **: g_object_get:
> assertion `G_IS_OBJECT (object)' failed warnings in the terminal. Any
> idea what could cause this?
> 
> Bluefish still uses GtkItemFactory menu's, could that be related?
> 
> 2011/2/7 John Ralls <jralls ceridwen us>:
>> 
>> Interesting, and I'm puzzled. I tested this on ige-mac-integration's src/test-integration and it appears to work as it should.
>> 
>> Would each of you please do the same?
>> 
>> If you can get it to fail, try debugging to see why it fails.
>> 

There was a problem with building with IGE_MAC_INTEGRATION and QUARTZ_HANDLERS defined, and I just pushed a fix to github. 

But view_menu_cb is because you've left BUILT_UI defined, and that only works with the GTK_OSXAPPLICATION code; I'll move that declaration into an #ifdef GTK_OSXAPPLICATION block to bulletproof it.

You're passing objects to Gtk which aren't GObjects, obviously. If GtkItemFactory somehow produces Gtk widgets which aren't GObjects, yes, that could be it.

If you're going to have to redo your UI, you should probably look into doing so with pygobject and the gobject-introspection interface instead of PyGtk... though I haven't yet done so for GtkOSXApplication.

Regards,
John Ralls


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Gtk-osx-users mailing list
Gtk-osx-users lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtk-osx-users


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