summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-03 14:38:41 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-03 14:38:41 +0000
commit8ff501dd8e8db08f5a73d5af1e5cdeb131eb3174 (patch)
tree6c4f0bd13eca6c140e73332a1b73f809d66ba5b8 /mdkonline.pm
parent26389bd5d8bb54a649cc7e78d6dc0f7181762f98 (diff)
downloadmgaonline-8ff501dd8e8db08f5a73d5af1e5cdeb131eb3174.tar
mgaonline-8ff501dd8e8db08f5a73d5af1e5cdeb131eb3174.tar.gz
mgaonline-8ff501dd8e8db08f5a73d5af1e5cdeb131eb3174.tar.bz2
mgaonline-8ff501dd8e8db08f5a73d5af1e5cdeb131eb3174.tar.xz
mgaonline-8ff501dd8e8db08f5a73d5af1e5cdeb131eb3174.zip
(get_banner) enable to specify actual banner title
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index 2c8fea49..361ad0e0 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -58,11 +58,12 @@ sub fork_exec {
run_program::raw({ detach => 1 }, @_);
}
-sub get_banner() {
+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)),
- N("Distribution Upgrade")
+ $o_title || N("Distribution Upgrade")
);
}