From 605e063203f8a2a35a5c3be1e7129e80099dd68a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 1 Jan 2012 13:41:47 -0800 Subject: Turn subsurface into a real Mac application To do this a few things needed to move into the os specific files, but the overall change is fairly small and the difference on the Mac is amazing. Subsurface now becomes a Mac app with Mac toolbar and useful default fonts. Changed the CFBundleIdentifier to be the reverse DNS of the subsurface site (sadly, 'torvalds' is not yet a TLD). Signed-off-by: Dirk Hohndel --- linux.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linux.c') diff --git a/linux.c b/linux.c index d2a92596e..bec4f08fb 100644 --- a/linux.c +++ b/linux.c @@ -2,6 +2,7 @@ /* implements Linux specific functions */ #include "display-gtk.h" #include +#define DIVELIST_DEFAULT_FONT "Sans 8" GConfClient *gconf; @@ -56,3 +57,11 @@ const char *subsurface_icon_name() { return "subsurface.svg"; } + +void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, + GtkWidget *vbox) +{ + if (!divelist_font) + divelist_font = DIVELIST_DEFAULT_FONT; + gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0); +} -- cgit v1.2.3-70-g09d2