From ac99ffbf76fc96ad1ea505095a284cce6f59cf18 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 20 Mar 2008 17:22:42 +0000 Subject: (setState) do not display "install updates" button when notifying about network being down (regression introduced in r54199 on 2006-09-18: "(setState) fix closing about dialog when "close" button is clicked (#25867)") --- mdkapplet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index db27cd01..37d93673 100755 --- a/mdkapplet +++ b/mdkapplet @@ -453,7 +453,7 @@ sub setState { if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state_type}{do_not_use_bubble}) { my $bubble = Gtk2::Notify->new_with_status_icon(N("Warning"), formatAlaTeX(translate($state{$state_type}{tt}[0])) . "\n", '/usr/share/icons/mdkonline.png', $icon); - $bubble->add_action('clicked', N("Install updates"), \&installUpdates); + $bubble->add_action('clicked', N("Install updates"), \&installUpdates) if $state_type eq 'updates'; $bubble->set_timeout(5000); eval { $bubble->show }; } -- cgit v1.2.1