diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-07-19 13:35:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-07-19 13:35:49 +0000 |
commit | 7e0e7bb519438e2fefa148fb178850eb53ade465 (patch) | |
tree | 6d9139c9d16d539c08ec111b4dddec8a52c120f0 /perl-install | |
parent | 66a0152f74431684eb04a3978afd561a53c01717 (diff) | |
download | drakx-backup-do-not-use-7e0e7bb519438e2fefa148fb178850eb53ade465.tar drakx-backup-do-not-use-7e0e7bb519438e2fefa148fb178850eb53ade465.tar.gz drakx-backup-do-not-use-7e0e7bb519438e2fefa148fb178850eb53ade465.tar.bz2 drakx-backup-do-not-use-7e0e7bb519438e2fefa148fb178850eb53ade465.tar.xz drakx-backup-do-not-use-7e0e7bb519438e2fefa148fb178850eb53ade465.zip |
(create_dialog) make dialogs transient if possible
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/ugtk2.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 115203dbf..99e4560f4 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -385,6 +385,9 @@ sub _create_dialog { sub create_dialog { my ($title, $label, $o_options) = @_; my $ret = 0; + $o_options ||= {}; + $o_options->{transient_for} = $::main_window if !$o_options->{transient_for} && $::main_window; + my $dialog = gtkset_border_width(_create_dialog($title, $o_options), 10); $dialog->set_border_width(10); my $text = ref($label) ? $label : $o_options->{use_markup} ? gtknew('WrappedLabel', text_markup => $label) : gtknew('WrappedLabel', text => $label); |