diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-01-28 16:36:58 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-01-28 16:36:58 +0000 |
commit | f9bdbf93887313a79528696607d96140f33cbd84 (patch) | |
tree | 2981a41f81daba5c33e7131a30eb61fef42bfa4a /tikzit/src/gtk/ToolBox.m | |
parent | b8c6a1cf4fd38820549976cf5f7b8fffb9b1248d (diff) |
Associate utility windows with current main window
This allows the window manager to raise the windows as a group, for
example.
Diffstat (limited to 'tikzit/src/gtk/ToolBox.m')
-rw-r--r-- | tikzit/src/gtk/ToolBox.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tikzit/src/gtk/ToolBox.m b/tikzit/src/gtk/ToolBox.m index af753d4..5d8f936 100644 --- a/tikzit/src/gtk/ToolBox.m +++ b/tikzit/src/gtk/ToolBox.m @@ -20,6 +20,7 @@ #import "Application.h" #import "Configuration.h" #import "Tool.h" +#import "Window.h" #import "gtkhelpers.h" #import "tztoolpalette.h" @@ -228,6 +229,10 @@ static void tool_button_toggled_cb (GtkWidget *widget, ToolBox *toolBox); gtk_window_present (GTK_WINDOW (window)); } +- (void) setTransientFor:(Window*)parent { + gtk_window_set_transient_for (GTK_WINDOW (window), [parent gtkWindow]); +} + - (void) loadConfiguration:(Configuration*)config { if ([config hasGroup:@"ToolBox"]) { tz_restore_window (GTK_WINDOW (window), |