diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-07-29 14:50:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-07-29 14:50:49 +0000 |
commit | b69b48679daeff0b7fb5196934d0c37861808805 (patch) | |
tree | cea301de9fa69a3646bcb16c9a1c476ab5c9252e | |
parent | c889e027af9bb63719bf2c1dc576d1f64f37b35f (diff) | |
download | mgaonline-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
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | mdkapplet-config | 2 | ||||
-rw-r--r-- | mdkapplet_gui.pm | 18 |
3 files changed, 21 insertions, 2 deletions
@@ -1,3 +1,6 @@ +- mdkapplet-config + o better looking when embedded in MCC + Version 2.77.3.1 - 29 July 2009, Thierry Vignaud - mdkapplet-enterprise-update-helper diff --git a/mdkapplet-config b/mdkapplet-config index 756166f9..a7068ed7 100755 --- a/mdkapplet-config +++ b/mdkapplet-config @@ -58,7 +58,7 @@ sub configure() { fill_n_run_portable_dialog( $w, [ - get_banner(N("Updates Configuration")), + if_(!$::isEmbedded, get_banner(N("Updates Configuration"))), gtknew('Label_Left', text => N("Here you can configure the updates applet"), @common), gtknew('Table', col_spacings => 5, row_spacings => 5, children => [ [ N("Update frequency (hours)"), 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; |