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 --- NEWS | 1 + mdkapplet | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index 20dd359b..a10960ec 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ - mdkapplet o actually honor DO_NOT_ASK_FOR_NO_MORE_SUPPORTED + o make link button usable in no more supported dialog Version 2.77.15.6 - 2 February 2010, Thierry Vignaud 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