summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-05 13:30:53 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-05 13:30:53 +0000
commitb8aae93f18d7498f818c10605bab472958ab0c91 (patch)
treeebed14e9108fdf1c17fa39db9e0cf43248e6ee99 /perl-install/mygtk2.pm
parent41dd46a86c6156a09614554d8b9be828d9fa896b (diff)
downloaddrakx-b8aae93f18d7498f818c10605bab472958ab0c91.tar
drakx-b8aae93f18d7498f818c10605bab472958ab0c91.tar.gz
drakx-b8aae93f18d7498f818c10605bab472958ab0c91.tar.bz2
drakx-b8aae93f18d7498f818c10605bab472958ab0c91.tar.xz
drakx-b8aae93f18d7498f818c10605bab472958ab0c91.zip
(_gtk_any_Window) make 'transient_for' force modality over 'modal'
parameter now that ugtk2::new no longer set modality, else we got strange focus bugs. ugtk2's behavior was altered in r243651 on 2008-07-25: "do not force all windows to be modal at install time since it causes issues with matchbox window manager modality got forced in r210547 on 2005-01-11 while switching to mygtk2 which collapsed two code paths in ones whereas one wasn't setting modality ('create "MagicWindow" in mygtk2 out of ugtk2::new()')"
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index b7490b41d..d56042139 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -614,8 +614,8 @@ sub _gtk_any_Window {
$w->set_type_hint('dialog'); # for matchbox window manager
}
- $w->set_modal(1) if exists $opts->{transient_for};
$w->set_modal(delete $opts->{modal}) if exists $opts->{modal};
+ $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};
$w->set_shadow_type(delete $opts->{shadow_type}) if exists $opts->{shadow_type};