From 1873a7a5045a6c8c33d4caec9fa9b38601d81916 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 2 Feb 2010 15:58:43 +0000 Subject: (no_more_supported_choice) make button clickable by extracting it out of the radiobutton which intercepts proper signals --- mdkapplet | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index 7511c534..9d8862be 100755 --- a/mdkapplet +++ b/mdkapplet @@ -521,16 +521,16 @@ sub no_more_supported_choice() { gtknew('HSeparator'), ), if_($no_more_supported ne 'none', - $b2 = gtknew('RadioButton', child => gtknew('VButtonBox', layout => 'start', children_tight => [ - gtknew('Label_Left', - text => N("Do you want to upgrade to the '\%s' distribution?", - $new_distro->{name} || $new_distro->{version}), @common), + gtknew('VBox', children_tight => [ + $b2 = gtknew('RadioButton', + text => N("Do you want to upgrade to the '\%s' distribution?", + $new_distro->{name} || $new_distro->{version}), + toggled => sub { + ($choice, $warn_me) = ('upgrade', undef) if $_[0]->get_active; + }, + if_($b1, group => $b1)), new_link_button($new_distro->{url}, N("More info about this new version")), ]), - toggled => sub { - ($choice, $warn_me) = ('upgrade', undef) if $_[0]->get_active; - }, - if_($b1, group => $b1)), gtknew('HSeparator'), ), $b3 = gtknew('RadioButton', text => N("Do not ask me next time"), -- cgit v1.2.1