summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-21 13:15:30 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-21 13:15:30 +0000
commit8502b7f40b54a0d69cc411b69b53abd3476ddf0c (patch)
treed2f9477fe9591279fe2c516eb9def7c51aeb8981
parenta19de9766adfb2e8dfd04e2714bf5010a6f661ce (diff)
downloadmgaonline-8502b7f40b54a0d69cc411b69b53abd3476ddf0c.tar
mgaonline-8502b7f40b54a0d69cc411b69b53abd3476ddf0c.tar.gz
mgaonline-8502b7f40b54a0d69cc411b69b53abd3476ddf0c.tar.bz2
mgaonline-8502b7f40b54a0d69cc411b69b53abd3476ddf0c.tar.xz
mgaonline-8502b7f40b54a0d69cc411b69b53abd3476ddf0c.zip
(setState) set 'low' urgency for new distribution notification
-rw-r--r--NEWS2
-rwxr-xr-xmdkapplet2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index bb57e35e..1bfb6079 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- mdkapplet
+ o set 'low' urgency for new distribution notification
- mdkapplet-upgrade-helper
o disable custom downloader settings in order to default to aria2
o disable the X screen saver while upgrading the system
diff --git a/mdkapplet b/mdkapplet
index 10aae9e9..1fa6b148 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -106,6 +106,7 @@ my %state = (
colour => [ 'bundle' ],
changes => [ 'okay' ],
menu => [ 'upgrade_distro', 'check' ],
+ urgency => 'low',
tt => [ N("A new version of Mandriva Linux distribution has been released") . "\n\n" . N("Do you want to upgrade?") ]
},
disconnected => {
@@ -573,6 +574,7 @@ sub setState {
$bubble->add_action('clicked', N("Add media"), \&add_media);
}
+ $bubble->set_urgency($state{$state}{urgency}) if $state{$state}{urgency};
$bubble->set_timeout(5000);
eval { $bubble->show };
}