aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatteo <matteo.pasotti@gmail.com>2014-09-20 17:31:36 +0300
committermatteo <matteo.pasotti@gmail.com>2014-09-20 17:31:36 +0300
commit8014cc65f035bfdd3d98d942fe589b45b5ae0365 (patch)
tree43f0508958adcad66e687a94a6cfb423fa20b2b9 /lib
parent83ffc0ab8aafdfbf15180338bda58796b2a35ac8 (diff)
downloadcolin-keep-8014cc65f035bfdd3d98d942fe589b45b5ae0365.tar
colin-keep-8014cc65f035bfdd3d98d942fe589b45b5ae0365.tar.gz
colin-keep-8014cc65f035bfdd3d98d942fe589b45b5ae0365.tar.bz2
colin-keep-8014cc65f035bfdd3d98d942fe589b45b5ae0365.tar.xz
colin-keep-8014cc65f035bfdd3d98d942fe589b45b5ae0365.zip
- fixed comparison between dm_NAME and d->PACKAGE
- show the description of each desktop manager - add lightdm string for the localization
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Module/DisplayManager.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/AdminPanel/Module/DisplayManager.pm b/lib/AdminPanel/Module/DisplayManager.pm
index 3c9a21b..b877e30 100644
--- a/lib/AdminPanel/Module/DisplayManager.pm
+++ b/lib/AdminPanel/Module/DisplayManager.pm
@@ -94,6 +94,7 @@ sub _build_desc_for_i18n {
my $self = shift();
my @_DESCRIPTIONS_for_i18n = (
+ $self->loc->N("LightDM (The Light Display Manager)"),
$self->loc->N("GDM (GNOME Display Manager)"),
$self->loc->N("KDM (KDE Display Manager)"),
$self->loc->N("XDM (X Display Manager)"),
@@ -221,6 +222,8 @@ sub _manageProxyDialog {
$hbox_content = $factory->createHBox($layout);
+ my $vbox_spacer = $factory->createVBox($hbox_content);
+ $factory->createHSpacing($vbox_spacer,2);
my $vbox_labels_flags = $factory->createVBox($hbox_content);
my $vbox_inputfields = $factory->createVBox($hbox_content);
@@ -229,8 +232,12 @@ sub _manageProxyDialog {
my $rbbox = $factory->createVBox($rb_group);
foreach my $d (@{$self->dmlist()})
{
- my $rb = $factory->createRadioButton($factory->createHBox($factory->createLeft($rbbox)), $d->{NAME});
- if($d->{NAME} eq uc($dm_NAME))
+ my $rowentry = $factory->createHBox($factory->createLeft($rbbox));
+ my $rb = $factory->createRadioButton($rowentry, $d->{NAME});
+ $rb->setWeight($yui::YD_HORIZ, 1);
+ my $desc = $factory->createLabel($rowentry, $self->loc->N($d->{DESCRIPTION}));
+ $desc->setWeight($yui::YD_HORIZ, 2);
+ if($d->{PACKAGE} eq lc($dm_NAME))
{
$rb->setValue(1);
}