summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/Menu.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/gtk/Menu.m')
-rw-r--r--tikzit/src/gtk/Menu.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/tikzit/src/gtk/Menu.m b/tikzit/src/gtk/Menu.m
index 4652599..e6b87fe 100644
--- a/tikzit/src/gtk/Menu.m
+++ b/tikzit/src/gtk/Menu.m
@@ -67,6 +67,12 @@ static void show_preamble_cb (GtkAction *action, Application *appl) {
}
#endif
+static void show_properties_cb (GtkAction *action, Application *appl) {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ [appl showPropertyEditor];
+ [pool drain];
+}
+
static void quit_cb (GtkAction *action, Application *appl) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[appl quit];
@@ -154,6 +160,9 @@ static GtkActionEntry app_action_entries[] = {
N_("Edit the preambles used to generate the preview"), G_CALLBACK (show_preamble_cb) },
#endif
+ { "ShowProperties", NULL, N_("_Properties Window"), NULL,
+ N_("Show the property editor window"), G_CALLBACK (show_properties_cb) },
+
/* HelpMenu */
{ "HelpManual", GTK_STOCK_HELP, N_("_Online manual"), "F1",
N_("TikZiT manual (online)"), G_CALLBACK (help_cb) },
@@ -500,6 +509,7 @@ static const gchar ui_info[] =
#endif
" </menu>"
" <menu action='ViewMenu'>"
+" <menuitem action='ShowProperties'/>"
#ifdef HAVE_POPPLER
" <menuitem action='ShowPreamble'/>"
" <menuitem action='ShowPreview'/>"