aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/rpmdragora.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-11-12 23:10:03 +0100
committerAngelo Naselli <anaselli@linux.it>2014-11-12 23:10:03 +0100
commit9ff2fa1372829fd4e3a159f66211d5a5e064862a (patch)
tree5285066437f474e24ed6fa8cd498c162eb9c4f46 /lib/AdminPanel/rpmdragora.pm
parent4dd8433498da4dd817449bdcb978f612433631f0 (diff)
downloadcolin-keep-9ff2fa1372829fd4e3a159f66211d5a5e064862a.tar
colin-keep-9ff2fa1372829fd4e3a159f66211d5a5e064862a.tar.gz
colin-keep-9ff2fa1372829fd4e3a159f66211d5a5e064862a.tar.bz2
colin-keep-9ff2fa1372829fd4e3a159f66211d5a5e064862a.tar.xz
colin-keep-9ff2fa1372829fd4e3a159f66211d5a5e064862a.zip
fixed undefined values and W numeric
Diffstat (limited to 'lib/AdminPanel/rpmdragora.pm')
-rw-r--r--lib/AdminPanel/rpmdragora.pm11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/AdminPanel/rpmdragora.pm b/lib/AdminPanel/rpmdragora.pm
index 4af30e5..59dd237 100644
--- a/lib/AdminPanel/rpmdragora.pm
+++ b/lib/AdminPanel/rpmdragora.pm
@@ -381,11 +381,7 @@ sub fatal_msg {
}
sub wait_msg {
- my ($msg, %options) = @_;
-
- if (ref \%options) {
- warnings::warn("AdminPanel::rpmdragora::wait_msg: options parameter is deprecated, and discarded");
- }
+ my $msg = shift;
my $label = $msg ? $msg : $loc->N("Please wait");
@@ -434,11 +430,12 @@ sub slow_func ($&) {
}
sub statusbar_msg {
+ my ($msg, $o_timeout) = @_;
+
unless ($::statusbar) { #- fallback if no status bar
- my $msg = shift;
return wait_msg($msg);
}
- my ($msg, $o_timeout) = @_;
+
$::statusbar->setLabel($msg);
#- always use the same context description for now
#my $cx = $::statusbar->get_context_id("foo");