Patch for Mac OS integration
Submitted by Thibaut Paumard
Created attachment 205364 OSX integration patch
I have built successfully Planner with the Quartz GDK backend (cf. http://www.lesia.obspm.fr/perso/thibaut-paumard/ ).
I have patched the code for better integration. The patch uses GtkOSXApplication. It does the following:
configure.in: check whether the target is Quartz and the gtk-mac-integration package is installed. In this case, set the MAC_INTEGRATION et al. variable.
Makefile.am: take the GTK_MAC_* variables into account.
autogen.sh: wrapper script useful for compiling with jhbuild. Calls gnome-autogen.sh from gnome-common.
src/planner-main.c, planner-window., planner--view.c:
- move the application menu bar to the top of the screen;
- use Mac OS standard menu accelerators (e.g. Cmd-O for File > Open instead of F3, Cmd-N instead of Ctrl-N for New project...)
- connect to the Mac OS signals for opening files (from the Finder) and quitting the application (Cmd-Q).
The changes are protected by "#ifdef MAC_INTEGRATION", so they should have 0 effect on unrelated builds.
The patch is attached, it would be great if you could merge it in the main tree.
In addition, it would also be great if you could distribute or advertise the binary package available on my website. Alternatively, I could also set-up a sourceforge project for "GNOME Panner OSX".
Patch 205364, "OSX integration patch":