diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-07 17:52:42 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-07 17:52:42 +0000 |
commit | 2dd42d84ee66360c7713c9c86ca6b86f0c4a3b09 (patch) | |
tree | 666c5c123c6e03f257c1c7ac72cfa074d464c384 /tikzit/src/gtk/PreviewWindow.m | |
parent | 3eb2ed59378f51ea91100dc36d6ae176b696f926 (diff) |
Present windows if already shown
Also, allow the properties window to be hidden and shown
Diffstat (limited to 'tikzit/src/gtk/PreviewWindow.m')
-rw-r--r-- | tikzit/src/gtk/PreviewWindow.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tikzit/src/gtk/PreviewWindow.m b/tikzit/src/gtk/PreviewWindow.m index 5443e8d..c5f138a 100644 --- a/tikzit/src/gtk/PreviewWindow.m +++ b/tikzit/src/gtk/PreviewWindow.m @@ -83,6 +83,14 @@ [previewer setDocument:doc]; } +- (void) present { + if ([self updateOrShowError]) { + [self updateDefaultSize]; + gtk_window_present (GTK_WINDOW (window)); + [surface invalidate]; + } +} + - (BOOL) update { if ([self updateOrShowError]) { [self updateDefaultSize]; |