From 886f0e426c410b28bd36ccc9d65f8ed39ab37d2a Mon Sep 17 00:00:00 2001 From: Matteo Pasotti Date: Sun, 14 Sep 2014 23:47:18 +0200 Subject: - use RadioButtons to list entries --- lib/AdminPanel/Module/DisplayManager.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/AdminPanel/Module') diff --git a/lib/AdminPanel/Module/DisplayManager.pm b/lib/AdminPanel/Module/DisplayManager.pm index 6fa61428..a246cf74 100644 --- a/lib/AdminPanel/Module/DisplayManager.pm +++ b/lib/AdminPanel/Module/DisplayManager.pm @@ -225,9 +225,13 @@ sub _manageProxyDialog { my $vbox_inputfields = $factory->createVBox($hbox_content); # list of desktop managers + my $rb_group = $factory->createRadioButtonGroup($vbox_labels_flags); + my $rbbox = $factory->createVBox($rb_group); foreach my $d (@{$self->dmlist()}) { - $factory->createLabel($vbox_labels_flags, $d->{NAME}); + my $rb = $factory->createRadioButton($factory->createHBox($factory->createLeft($rbbox)), $d->{NAME}); + $rb_group->addRadioButton($rb); + $rb->DISOWN(); } my $hbox_filler = $factory->createHBox($layout); $factory->createSpacing($hbox_filler,$yui::YD_VERT,2); -- cgit v1.2.1