summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/Window.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/Window.m
parent3eb2ed59378f51ea91100dc36d6ae176b696f926 (diff)
Present windows if already shown
Also, allow the properties window to be hidden and shown
Diffstat (limited to 'tikzit/src/gtk/Window.m')
-rw-r--r--tikzit/src/gtk/Window.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/tikzit/src/gtk/Window.m b/tikzit/src/gtk/Window.m
index 1856b9d..c7f98ff 100644
--- a/tikzit/src/gtk/Window.m
+++ b/tikzit/src/gtk/Window.m
@@ -173,6 +173,10 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc
}
}
+- (void) present {
+ gtk_window_present (GTK_WINDOW (window));
+}
+
- (void) openFile {
FileChooserDialog *dialog = [FileChooserDialog openDialogWithParent:window];
[dialog addStandardFilters];