From b68fa9e78741d11b11f60515b5ee0d84975407e7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 18 Aug 2008 11:09:40 +0000 Subject: (_gtk_any_Window) make sure not to vivify transient_for else latest commit breaks installer --- perl-install/mygtk2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/mygtk2.pm') diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 802d3e355..3067df65f 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -615,7 +615,7 @@ sub _gtk_any_Window { } $w->set_modal(delete $opts->{modal}) if exists $opts->{modal}; - $opts->{transient_for} ||= $::main_window; + $opts->{transient_for} ||= $::main_window if $::main_window; $w->set_modal(1) if exists $opts->{transient_for}; $w->set_transient_for(delete $opts->{transient_for}) if exists $opts->{transient_for}; $w->set_border_width(delete $opts->{border_width}) if exists $opts->{border_width}; -- cgit v1.2.1