GNOME Bugzilla – Bug 554240
Use the Mac OS X menubar when built with GTK+/Quartz
Last modified: 2008-12-16 21:54:08 UTC
I have been working on building gthumb using GTK+/Quartz (no X11) [1]. A developer at Imendio has written a function that allows GTK+/Quartz applications to use the Mac OS X menubar [2]. The steps I take to build gthumb using GTK+/Quartz are documented at [3]. For reference, Inkscape uses the Imendio Mac OS X menu library, though they include ige-mac-menu.c and ige-mac-menu.h directly in their source tree. [1] http://developer.imendio.com/projects/gtk-macosx [2] http://developer.imendio.com/projects/gtk-macosx/integration [3] http://flyn.org/apple/
Interesting! But is this basically a duplicate of bug 551225, or do you need something else? - Mike
Bug #551225 is related to building gthumb on Mac OS X with GTK/Quartz. This bug is a RFE for integration with the Mac OS X menubar. Without the Imendio code mentioned above, GTK/Quartz applications on Mac OS each have their own menubar within their window. Mac OS X has a universal menubar that is at the top of the screen. Using the Imendio code allows GTK/Quartz applications to use the universal menubar.
What exact do you want from gthumb? If the imendio code is released as a library, feel free to submit a patch that lets us use it. I don't think we want to cut-and-paste the imendio code into gthumb. It would be poorly maintained by gthumb developers. We need a library. - Mike
Created attachment 124134 [details] [review] Patch to add support for using Mac OS X menu when ige-mac-integration library is installed
I have committed a modified version of the patch to gthumb-2-10 and trunk. Please test and report back. Also, I have to fix the earlier mac-related patch. "HAVE_GDKX" wasn't actually properly defined in configure.in with "AC_DEFINE"... - Mike
The menu code that is now in trunk worked fine for me.