summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-21 10:31:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-21 10:31:10 +0000
commitcf9b0f5ee7fcc11d723bc675e95df5c1e044d26d (patch)
tree6809eacc14e53da0078fa0753373eeb04d027111
parent56909f3bf02cbc729c2945e1ca1808927105638c (diff)
downloaddrakx-cf9b0f5ee7fcc11d723bc675e95df5c1e044d26d.tar
drakx-cf9b0f5ee7fcc11d723bc675e95df5c1e044d26d.tar.gz
drakx-cf9b0f5ee7fcc11d723bc675e95df5c1e044d26d.tar.bz2
drakx-cf9b0f5ee7fcc11d723bc675e95df5c1e044d26d.tar.xz
drakx-cf9b0f5ee7fcc11d723bc675e95df5c1e044d26d.zip
fix subdialogs when embedded in mcc
-rwxr-xr-xperl-install/standalone/printerdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake
index e153c5a70..58c4b8f51 100755
--- a/perl-install/standalone/printerdrake
+++ b/perl-install/standalone/printerdrake
@@ -284,6 +284,7 @@ gtkset_mousecursor_normal();
# Prevent subwindows to embed themselves in the mcc which has already the
# main window embedded
+my $isEmbedded = $::isEmbedded;
local $::isEmbedded = 0;
Gtk2->main;
@@ -566,7 +567,7 @@ sub CreateTree {
sub NewDialog {
my ($title, $o_no_button) = @_;
my $dialog = gtkset_border_width(Gtk2::Dialog->new, 10);
- $dialog->set_transient_for($us->{wnd}{rwindow});
+ $dialog->set_transient_for($us->{wnd}{rwindow}) if !$isEmbedded;
$dialog->set_position('center-on-parent');
$dialog->set_title($title);
$dialog->action_area->pack_start(gtkadd(Gtk2::HButtonBox->new,