diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-10 18:27:19 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-10 18:27:19 +0000 |
commit | 924aad8f38e277547b104977dd48ef2be7c702f8 (patch) | |
tree | b7c731f461c3dcad3ea87b79e8e916a8387c7dfa /tikzit/src/linux/Menu.m | |
parent | e77f7c4f027d9fefb609bef3c97df9b8ff0c2a31 (diff) |
GTK: Allow the path to pdflatex to be configured
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@377 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/linux/Menu.m')
-rw-r--r-- | tikzit/src/linux/Menu.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tikzit/src/linux/Menu.m b/tikzit/src/linux/Menu.m index 660f9e2..d326d8b 100644 --- a/tikzit/src/linux/Menu.m +++ b/tikzit/src/linux/Menu.m @@ -225,6 +225,12 @@ static void flip_vert_cb (GtkAction *action, MainWindow *window) { } #ifdef HAVE_POPPLER +static void show_preferences_cb (GtkAction *action, MainWindow *window) { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + [window showSettingsDialog]; + [pool drain]; +} + static void show_preamble_cb (GtkAction *action, MainWindow *window) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [window editPreambles]; @@ -345,6 +351,10 @@ static const gchar ui_info[] = " <separator/>" " <menuitem action='FlipVert'/>" " <menuitem action='FlipHoriz'/>" +#ifdef HAVE_POPPLER +" <separator/>" +" <menuitem action='ShowPreferences'/>" +#endif " </menu>" " <menu action='ViewMenu'>" " <menu action='ToolbarStyle'>" @@ -436,6 +446,11 @@ static GtkActionEntry static_entries[] = { /* EditMenu */ { "Tool", NULL, N_("_Tool") }, +#ifdef HAVE_POPPLER + { "ShowPreferences", GTK_STOCK_PREFERENCES, NULL, NULL, + N_("Edit the TikZiT preferences"), G_CALLBACK (show_preferences_cb) }, +#endif + /* ViewMenu */ { "ToolbarStyle", NULL, N_("_Toolbar style") }, |