summaryrefslogtreecommitdiffstats
path: root/mdkapplet_gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-07-29 14:50:49 +0000
committerThierry Vignaud <tv@mandriva.org>2009-07-29 14:50:49 +0000
commitb69b48679daeff0b7fb5196934d0c37861808805 (patch)
treecea301de9fa69a3646bcb16c9a1c476ab5c9252e /mdkapplet_gui.pm
parentc889e027af9bb63719bf2c1dc576d1f64f37b35f (diff)
downloadmgaonline-b69b48679daeff0b7fb5196934d0c37861808805.tar
mgaonline-b69b48679daeff0b7fb5196934d0c37861808805.tar.gz
mgaonline-b69b48679daeff0b7fb5196934d0c37861808805.tar.bz2
mgaonline-b69b48679daeff0b7fb5196934d0c37861808805.tar.xz
mgaonline-b69b48679daeff0b7fb5196934d0c37861808805.zip
(configure,fill_n_run_portable_dialog) better looking when embedded in MCC
Diffstat (limited to 'mdkapplet_gui.pm')
-rw-r--r--mdkapplet_gui.pm18
1 files changed, 17 insertions, 1 deletions
diff --git a/mdkapplet_gui.pm b/mdkapplet_gui.pm
index 5f3cc6b9..8c6b3c33 100644
--- a/mdkapplet_gui.pm
+++ b/mdkapplet_gui.pm
@@ -77,7 +77,23 @@ sub fill_n_run_portable_dialog {
local $::isWizard = 1;
local $w->{pop_it} = 0;
local $::isInstall = 1;
- gtkadd($w->{window}, gtknew('VBox', children_tight => $widgets));
+ my %children;
+ if ($::isEmbedded) {
+ my (@children_tight, $child);
+ @children_tight = @$widgets;
+ $child = pop @children_tight;
+ %children = (
+ children => [
+ (map { (0, $_) } @children_tight),
+ 1, gtknew('Label'),
+ 0, $child,
+ ]
+ );
+ } else {
+ %children = (children_tight => $widgets);
+ }
+
+ gtkadd($w->{window}, gtknew('VBox', %children));
}
$w->{ok}->grab_focus;