summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 11:20:47 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 11:20:47 +0000
commit005efd7a143ff2c2c372d12ed0bf770f67c659d8 (patch)
treee1c9c0ff27d47b943ef5c82815d329ecc2ab0fce
parentc0e2e79778271f9e20224502fb2a3049b7588dd7 (diff)
downloadmgaonline-005efd7a143ff2c2c372d12ed0bf770f67c659d8.tar
mgaonline-005efd7a143ff2c2c372d12ed0bf770f67c659d8.tar.gz
mgaonline-005efd7a143ff2c2c372d12ed0bf770f67c659d8.tar.bz2
mgaonline-005efd7a143ff2c2c372d12ed0bf770f67c659d8.tar.xz
mgaonline-005efd7a143ff2c2c372d12ed0bf770f67c659d8.zip
(confirm_upgrade) display a banner in "Distro Upgrade" confirmation dialog
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet5
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c58a2159..bac9f5c8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o display a banner in "Distro Upgrade" confirmation dialog
+
Version 2.49 - 3 October 2008
- mdkapplet
diff --git a/mdkapplet b/mdkapplet
index 7d1dbc1e..861af1ca 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -361,6 +361,11 @@ sub confirm_upgrade() {
my $warn_me = text2bool($local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE});
gtkadd($w->{window},
gtknew('VBox', children_tight => [
+ Gtk2::Banner->new(
+ (find { -e $_ }
+ qw(/usr/share/mcc/themes/default/mdkonline-mdk.png /usr/share/icons/large/mdkonline.png)),
+ N("Distribution Upgrade")
+ ),
N("A new stable distribution has been released."),
N("Do you want to upgrade to the '\%s' distribution?", $new_distro_version),
gtknew('CheckButton', text => N("Do not ask me next time"), active_ref => \$warn_me),