summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-02 14:28:04 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-02 14:28:04 +0000
commitf1e185652fdf7b16a50d5350c043f8fd79c12216 (patch)
treed5c9a2b559a7e20b347dd08bf6acbcbadb8b42e5 /perl-install
parentc103136dac8aaf4b0a1655aeb47f2fa7f5310ae0 (diff)
downloaddrakx-f1e185652fdf7b16a50d5350c043f8fd79c12216.tar
drakx-f1e185652fdf7b16a50d5350c043f8fd79c12216.tar.gz
drakx-f1e185652fdf7b16a50d5350c043f8fd79c12216.tar.bz2
drakx-f1e185652fdf7b16a50d5350c043f8fd79c12216.tar.xz
drakx-f1e185652fdf7b16a50d5350c043f8fd79c12216.zip
(get_label_width) make it auto adaptable to the selected default padding
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk2.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index d5113614e..825951ef9 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -355,8 +355,6 @@ sub _gtk__WrappedLabel {
_gtk__Label($w, $opts);
}
-our $left_padding = 20;
-
sub _gtk__Label_Left {
my ($w, $opts) = @_;
$opts->{alignment} ||= [ 0, 0 ];
@@ -1223,9 +1221,11 @@ 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()) - 70;
+ first(mygtk2::get_main_window_size()) - 50 - $left_padding;
}
sub set_main_window_size {