diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-07 19:39:01 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-07 19:39:01 +0000 |
commit | 37aa2caa350ee8577be82f79a416ab38b5ea89ae (patch) | |
tree | a9f3d4f93934e906d3d8cd3a454f978fd00e4690 /rpmdrake.pm | |
parent | e307874629b8c95a02583c8f858c20efa8758441 (diff) | |
download | rpmdrake-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.pm | 5 |
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}; |