aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-13 19:26:09 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-13 19:26:09 +0000
commit9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f (patch)
tree593affe2919aa9fb42e95e8544efe10e7a2b71f2 /rpmdrake.pm
parentdfe0bc19ddc92bf756aed53b7029c5197e061195 (diff)
downloadrpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar
rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar.gz
rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar.bz2
rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar.xz
rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.zip
let it embedd
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 8232ce76..f9ca7c9a 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -181,7 +181,7 @@ sub fatal_msg {
sub wait_msg {
my ($msg, %options) = @_;
my $mainw = ugtk2->new('rpmdrake', grab => 1, if_(exists $options{transient}, transient => $options{transient}));
- $mainw->{rwindow}->set_position($options{transient} ? 'center_on_parent' : 'center_always');
+ $mainw->{rwindow}->set_position($options{transient} ? 'center_on_parent' : 'center_always') if !$::isEmbedded;
my $label = ref($msg) =~ /^Gtk/ ? $msg : Gtk2::Label->new($msg);
gtkadd($mainw->{window}, gtkpack__(gtkadd(Gtk2::VBox->new(0, 5), $label, if_(exists $options{widgets}, @{$options{widgets}}))));
$label->signal_connect(expose_event => sub { $mainw->{displayed} = 1; 0 });