aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-28 10:32:23 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-28 10:32:23 +0000
commit0b60f3e6c85525fd3fa48beb9d0ec1187a389108 (patch)
tree9d9c3440673b5aa254c390e65eda5839f5f3fb49 /rpmdrake.pm
parent43d94276604bfb76ea73dd0b142738aad49a6bc5 (diff)
downloadrpmdrake-0b60f3e6c85525fd3fa48beb9d0ec1187a389108.tar
rpmdrake-0b60f3e6c85525fd3fa48beb9d0ec1187a389108.tar.gz
rpmdrake-0b60f3e6c85525fd3fa48beb9d0ec1187a389108.tar.bz2
rpmdrake-0b60f3e6c85525fd3fa48beb9d0ec1187a389108.tar.xz
rpmdrake-0b60f3e6c85525fd3fa48beb9d0ec1187a389108.zip
(interactive_msg,wait_msg) do not embed message dialogs
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 69b7644b..37e6d700 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -180,6 +180,7 @@ sub getbanner() {
sub interactive_msg {
my ($title, $contents, %options) = @_;
+ 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');
$contents = formatAlaTeX($contents) unless $options{scroll}; #- because we'll use a WrappedLabel
@@ -302,6 +303,7 @@ sub fatal_msg {
sub wait_msg {
my ($msg, %options) = @_;
gtkflush();
+ 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');
my $label = ref($msg) =~ /^Gtk/ ? $msg : Gtk2::WrappedLabel->new($msg);