summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {