summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-07-19 13:35:49 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-07-19 13:35:49 +0000
commit7e0e7bb519438e2fefa148fb178850eb53ade465 (patch)
tree6d9139c9d16d539c08ec111b4dddec8a52c120f0
parent66a0152f74431684eb04a3978afd561a53c01717 (diff)
downloaddrakx-7e0e7bb519438e2fefa148fb178850eb53ade465.tar
drakx-7e0e7bb519438e2fefa148fb178850eb53ade465.tar.gz
drakx-7e0e7bb519438e2fefa148fb178850eb53ade465.tar.bz2
drakx-7e0e7bb519438e2fefa148fb178850eb53ade465.tar.xz
drakx-7e0e7bb519438e2fefa148fb178850eb53ade465.zip
(create_dialog) make dialogs transient if possible
-rw-r--r--perl-install/ugtk2.pm3
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);