summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-06 18:30:30 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:28:14 +0100
commitde5dbd962cfb43995b9195da72a2f795817d244d (patch)
tree6e721cba91e3f95468bd05fc0d288ed084ec6a43
parent475038ae4cc909d7eb3406c45763ebddf532ff12 (diff)
downloaddrakx-de5dbd962cfb43995b9195da72a2f795817d244d.tar
drakx-de5dbd962cfb43995b9195da72a2f795817d244d.tar.gz
drakx-de5dbd962cfb43995b9195da72a2f795817d244d.tar.bz2
drakx-de5dbd962cfb43995b9195da72a2f795817d244d.tar.xz
drakx-de5dbd962cfb43995b9195da72a2f795817d244d.zip
fix retrieving image size
-rw-r--r--perl-install/mygtk3.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index ac7c09f78..d844a0e41 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -751,13 +751,13 @@ sub _gtk__MDV_Notebook {
my $filler = gtknew('Image', file => 'left-background-filler.png');
my $filler_height = $filler->get_pixbuf->get_height;
my $left_background = gtknew('Image', file => 'left-background.png');
- my $lf_height = $left_background->{pixbuf}->get_height;
+ my $lf_height = $left_background->get_allocated_height;
my @right_background = $::isInstall ?
gtknew('Image', file => "right-white-background_left_part$suffix", flip => $is_flip_needed)
: map {
gtknew('Image', file => "right-white-background_left_part-$_", flip => $is_flip_needed);
} 1, 2, 2, 3;
- my $width1 = $left_background->{pixbuf}->get_width;
+ my $width1 = $left_background->get_allocated_width;
my $total_width = $width1 + $right_background[0]->get_pixbuf->get_width;
my $arrow_x = text_direction_rtl() ? $offset/2 - 4 : $width1 - $offset - 3;
$w = gtknew('HBox', spacing => 0, children => [