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/SettingsDialog.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/SettingsDialog.m')
-rw-r--r-- | tikzit/src/gtk/SettingsDialog.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tikzit/src/gtk/SettingsDialog.m b/tikzit/src/gtk/SettingsDialog.m index aa5517f..11a0d0d 100644 --- a/tikzit/src/gtk/SettingsDialog.m +++ b/tikzit/src/gtk/SettingsDialog.m @@ -82,6 +82,12 @@ static void cancel_button_clicked_cb (GtkButton *widget, SettingsDialog *dialog) } } +- (void) present { + [self loadUi]; + [self revert]; + gtk_window_present (GTK_WINDOW (window)); +} + - (void) show { [self loadUi]; [self revert]; |