summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/PreambleEditor.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-07 17:52:42 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-07 17:52:42 +0000
commit2dd42d84ee66360c7713c9c86ca6b86f0c4a3b09 (patch)
tree666c5c123c6e03f257c1c7ac72cfa074d464c384 /tikzit/src/gtk/PreambleEditor.m
parent3eb2ed59378f51ea91100dc36d6ae176b696f926 (diff)
Present windows if already shown
Also, allow the properties window to be hidden and shown
Diffstat (limited to 'tikzit/src/gtk/PreambleEditor.m')
-rw-r--r--tikzit/src/gtk/PreambleEditor.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/tikzit/src/gtk/PreambleEditor.m b/tikzit/src/gtk/PreambleEditor.m
index 2c292f5..feae6a5 100644
--- a/tikzit/src/gtk/PreambleEditor.m
+++ b/tikzit/src/gtk/PreambleEditor.m
@@ -116,6 +116,12 @@ static void preamble_selection_changed_cb (GtkTreeSelection *treeselection,
}
}
+- (void) present {
+ [self loadUi];
+ gtk_window_present (GTK_WINDOW (window));
+ [self revert];
+}
+
- (void) show {
[self loadUi];
gtk_widget_show (GTK_WIDGET (window));