From f9bdbf93887313a79528696607d96140f33cbd84 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Mon, 28 Jan 2013 16:36:58 +0000 Subject: Associate utility windows with current main window This allows the window manager to raise the windows as a group, for example. --- tikzit/src/gtk/ToolBox.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tikzit/src/gtk/ToolBox.m') 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), -- cgit v1.2.3