aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-07 19:39:01 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-07 19:39:01 +0000
commit37aa2caa350ee8577be82f79a416ab38b5ea89ae (patch)
treea9f3d4f93934e906d3d8cd3a454f978fd00e4690 /rpmdrake.pm
parente307874629b8c95a02583c8f858c20efa8758441 (diff)
downloadrpmdrake-37aa2caa350ee8577be82f79a416ab38b5ea89ae.tar
rpmdrake-37aa2caa350ee8577be82f79a416ab38b5ea89ae.tar.gz
rpmdrake-37aa2caa350ee8577be82f79a416ab38b5ea89ae.tar.bz2
rpmdrake-37aa2caa350ee8577be82f79a416ab38b5ea89ae.tar.xz
rpmdrake-37aa2caa350ee8577be82f79a416ab38b5ea89ae.zip
make wait messages transient for the main window as well
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 0e9f734b..1ea91543 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -118,8 +118,9 @@ sub fatal_msg {
}
sub wait_msg {
- my $mainw = ugtk2->new('rpmdrake', grab => 1);
- my $label = Gtk2::Label->new($_[0]);
+ my ($msg, %options) = @_;
+ my $mainw = ugtk2->new('rpmdrake', grab => 1, if_(exists $options{transient}, transient => $options{transient}));
+ my $label = Gtk2::Label->new($msg);
gtkadd($mainw->{window}, gtkpack(gtkadd(create_vbox(), $label)));
$label->signal_connect(expose_event => sub { $mainw->{displayed} = 1 });
$mainw->sync until $mainw->{displayed};