From 9e4c381e706928251311f290be0c9d0112273f01 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 2 Feb 2010 15:58:57 +0000 Subject: (setState) restore old behaviour when detecting a new distro --- mdkapplet | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mdkapplet') 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'; -- cgit v1.2.1