summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-02-02 15:58:57 +0000
committerThierry Vignaud <tv@mandriva.org>2010-02-02 15:58:57 +0000
commit9e4c381e706928251311f290be0c9d0112273f01 (patch)
treef1bbc9e2d246b1870e8743ea4f3559175f6b046c
parent4b4e84f42ef6be1cb1bb9dac61e1431da181e84e (diff)
downloadmgaonline-9e4c381e706928251311f290be0c9d0112273f01.tar
mgaonline-9e4c381e706928251311f290be0c9d0112273f01.tar.gz
mgaonline-9e4c381e706928251311f290be0c9d0112273f01.tar.bz2
mgaonline-9e4c381e706928251311f290be0c9d0112273f01.tar.xz
mgaonline-9e4c381e706928251311f290be0c9d0112273f01.zip
(setState) restore old behaviour when detecting a new distro
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet7
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a10960ec..219e573a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- mdkapplet
o actually honor DO_NOT_ASK_FOR_NO_MORE_SUPPORTED
+ o restore old behaviour when detecting a new distro
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 bb1bcd9c..12c5e386 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -885,7 +885,12 @@ sub setState {
if ($state{$state}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state}{do_not_use_bubble}) {
my $bubble = Gtk2::Notify->new_with_status_icon(N("Warning"), formatAlaTeX(translate($state{$state}{tt}[0])) . "\n",
'/usr/share/icons/mdkonline.png', $icon);
- if (member($state, qw(new_distribution no_more_supported))) {
+ if ($state eq 'new_distribution') {
+ $bubble->add_action('clicked', N("More Information"), \&upgrade);
+ if ($sub_state eq 'updates') {
+ push @arr, 'update';
+ }
+ } elsif ($state eq 'no_more_supported') {
$bubble->add_action('clicked', N("More Information"), \&no_more_supported);
if ($sub_state eq 'updates') {
push @arr, 'update';