summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/PreambleEditor.m
diff options
context:
space:
mode:
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));