diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-01-17 16:26:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-01-17 16:26:25 +0000 |
commit | eca7d8b72b32dcac80b16f7b30c92a00e13fdbbd (patch) | |
tree | 30431c5ea6d11bb651a38fed523337f399c7f612 /rpmdrake.pm | |
parent | cf3b775e18ad20346d4dbcba54873025c122028f (diff) | |
download | rpmdrake-eca7d8b72b32dcac80b16f7b30c92a00e13fdbbd.tar rpmdrake-eca7d8b72b32dcac80b16f7b30c92a00e13fdbbd.tar.gz rpmdrake-eca7d8b72b32dcac80b16f7b30c92a00e13fdbbd.tar.bz2 rpmdrake-eca7d8b72b32dcac80b16f7b30c92a00e13fdbbd.tar.xz rpmdrake-eca7d8b72b32dcac80b16f7b30c92a00e13fdbbd.zip |
(interactive_msg, wait_msg) handle transient & modal hints
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r-- | rpmdrake.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index 400f2b78..bbfe3c6e 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -182,6 +182,7 @@ sub getbanner() { sub interactive_msg { my ($title, $contents, %options) = @_; + $options{transient} ||= $::main_window if $::main_window; local $::isEmbedded; my $d = ugtk2->new($title, grab => 1, if_(exists $options{transient}, transient => $options{transient})); $d->{rwindow}->set_position($options{transient} ? 'center_on_parent' : 'center_always'); @@ -307,6 +308,7 @@ sub fatal_msg { sub wait_msg { my ($msg, %options) = @_; gtkflush(); + $options{transient} ||= $::main_window if $::main_window; local $::isEmbedded; my $mainw = ugtk2->new(N("Please wait"), grab => 1, if_(exists $options{transient}, transient => $options{transient})); $mainw->{real_window}->set_position($options{transient} ? 'center_on_parent' : 'center_always'); |