diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-05 13:30:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-05 13:30:53 +0000 |
commit | b8aae93f18d7498f818c10605bab472958ab0c91 (patch) | |
tree | ebed14e9108fdf1c17fa39db9e0cf43248e6ee99 | |
parent | 41dd46a86c6156a09614554d8b9be828d9fa896b (diff) | |
download | drakx-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()')"
-rw-r--r-- | perl-install/NEWS | 2 | ||||
-rw-r--r-- | perl-install/mygtk2.pm | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index ceac99e20..67efba6c8 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,5 @@ +- fix strange focus bugs + Version 11.3 - 4 August 2008 - drakedm: 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}; |