summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-03 13:08:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-03 13:08:50 +0000
commit8dfd74776454c83b40b958c2fe37741cfd017109 (patch)
treeee5aeb5524f7a147a66ee7e2af610eb3a5d743fd /mdkapplet
parentf5ef2dc0771ad61354de9c9cca1ddd9533129314 (diff)
downloadmgaonline-8dfd74776454c83b40b958c2fe37741cfd017109.tar
mgaonline-8dfd74776454c83b40b958c2fe37741cfd017109.tar.gz
mgaonline-8dfd74776454c83b40b958c2fe37741cfd017109.tar.bz2
mgaonline-8dfd74776454c83b40b958c2fe37741cfd017109.tar.xz
mgaonline-8dfd74776454c83b40b958c2fe37741cfd017109.zip
add an "upgrade system" in the menu when a new distro is availlable
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 25467800..71cab637 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -113,7 +113,7 @@ my %state = (
new_distribution => {
colour => [ 'error' ],
changes => [ 'okay' ],
- menu => [ 'update', 'check' ],
+ menu => [ 'upgrade_distro', 'update', 'check' ],
tt => [ N("A new stable distribution has been released") . "\n\n" . N("Do you want to upgrade?") ]
},
disconnected => {
@@ -202,6 +202,7 @@ my %actions = (
'update' => { name => N("Install updates"), launch => sub { installUpdates() } },
'check' => { name => N("Check Updates"), launch => \&checkUpdates },
'confNetwork' => { name => N("Configure Network"), launch => sub { configNetwork() } },
+ 'upgrade_distro' => { name => N("Upgrade the system"), launch => \&upgrade },
);
my $icon = Gtk2::StatusIcon->new;