summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-08 15:51:59 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-08 15:51:59 +0000
commit06438826d645957bdb6e85702bfbd63eaf839e67 (patch)
tree24641d75ec810578c2b46111a03dca905ec8a08f
parent7d8a72b86d9d7a058389e7c65305ec61f30f35a7 (diff)
downloaddrakx-06438826d645957bdb6e85702bfbd63eaf839e67.tar
drakx-06438826d645957bdb6e85702bfbd63eaf839e67.tar.gz
drakx-06438826d645957bdb6e85702bfbd63eaf839e67.tar.bz2
drakx-06438826d645957bdb6e85702bfbd63eaf839e67.tar.xz
drakx-06438826d645957bdb6e85702bfbd63eaf839e67.zip
fix running in strict mode
-rw-r--r--perl-install/mygtk2.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 1da429eec..d5aea3fa9 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -355,6 +355,8 @@ sub _gtk__WrappedLabel {
_gtk__Label($w, $opts);
}
+our $left_padding = 20;
+
sub _gtk__Label_Left {
my ($w, $opts) = @_;
$opts->{alignment} ||= [ 0, 0 ];
@@ -1221,8 +1223,6 @@ sub get_main_window_size() {
my ($width, $height) = $::real_windowwidth ? ($::real_windowwidth, $::real_windowheight) : $::isWizard ? (540, 360) : (600, 400);
}
-our $left_padding = 20;
-
# in order to workaround infamous 6 years old gnome bug #101968:
sub get_label_width() {
first(mygtk2::get_main_window_size()) - 50 - $left_padding;