summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-02-09 10:36:02 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 09:44:51 -0800
commiteb7acc1d96a3aa627f1a0e882445e804f5d12d49 (patch)
treee40686aacf19f94129a16b1d2cb61df2c5df6abc /macos.c
parentfe87ed182ed5150518ed498adee3e511662b84e0 (diff)
downloadsubsurface-eb7acc1d96a3aa627f1a0e882445e804f5d12d49.tar.gz
Add XSLT support for the macosx install and bundle targets
Works like it should for the install-macosx target. I haven't tested the create-macosx-bundle target, but it shouldn't be any different. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/macos.c b/macos.c
index c1b73c879..2e549f926 100644
--- a/macos.c
+++ b/macos.c
@@ -1,5 +1,6 @@
/* macos.c */
/* implements Mac OS X specific functions */
+#include <stdlib.h>
#include "dive.h"
#include "display-gtk.h"
#include <CoreFoundation/CoreFoundation.h>
@@ -172,6 +173,10 @@ void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
GtkWidget *vbox, GtkUIManager *ui_manager)
{
GtkWidget *menu_item, *sep;
+ static char path[1024];
+
+ snprintf(path, 1024, "%s/xslt", gtkosx_application_get_resource_path());
+ setenv("SUBSURFACE_XSLT_PATH", path, TRUE);
g_object_set(G_OBJECT(settings), "gtk-font-name", UI_FONT, NULL);