summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 15:00:01 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 15:00:01 +0000
commit89ad1d65146936db666719f7ae41621041d86182 (patch)
tree0c9270994c86a1cf7cd9d8a335878f52c9e42aba /mdkonline.pm
parent629897a898b8a62ec517077684e48e547eef3ee8 (diff)
downloadmgaonline-89ad1d65146936db666719f7ae41621041d86182.tar
mgaonline-89ad1d65146936db666719f7ae41621041d86182.tar.gz
mgaonline-89ad1d65146936db666719f7ae41621041d86182.tar.bz2
mgaonline-89ad1d65146936db666719f7ae41621041d86182.tar.xz
mgaonline-89ad1d65146936db666719f7ae41621041d86182.zip
(get_banner_icon) extract it out of get_banner()
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index 981b6614..eee95bd7 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -160,13 +160,14 @@ sub translate_product() {
$strings{$product} || $product;
}
+sub get_banner_icon() {
+ find { -e $_ }
+ qw(/usr/share/mcc/themes/default/rpmdrake-mdk.png /usr/share/icons/large/mdkonline.png);
+}
+
sub get_banner {
my ($o_title) = @_;
- Gtk2::Banner->new(
- (find { -e $_ }
- qw(/usr/share/mcc/themes/default/rpmdrake-mdk.png /usr/share/icons/large/mdkonline.png)),
- $o_title || N("Distribution Upgrade")
- );
+ Gtk2::Banner->new(get_banner_icon(), $o_title || N("Distribution Upgrade"));
}
sub is_running {