diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 22:31:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 22:31:23 +0000 |
commit | 0988bdfe1c5d6e3e2922415c3a115cb9c9450328 (patch) | |
tree | 7e6d5b0354aed9d916dcc349537b08cdc99435aa /perl-install | |
parent | 92cb88bb5dd0f0f86336e63727e85e671780449a (diff) | |
download | drakx-0988bdfe1c5d6e3e2922415c3a115cb9c9450328.tar drakx-0988bdfe1c5d6e3e2922415c3a115cb9c9450328.tar.gz drakx-0988bdfe1c5d6e3e2922415c3a115cb9c9450328.tar.bz2 drakx-0988bdfe1c5d6e3e2922415c3a115cb9c9450328.tar.xz drakx-0988bdfe1c5d6e3e2922415c3a115cb9c9450328.zip |
(_gtk__MDV_Notebook) store some values around (needed for next commits)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/mygtk2.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 35f303620..2a47d272c 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -656,8 +656,10 @@ sub _gtk__MDV_Notebook { # the white square is a little bit above the actual left sidepanel: my $offset = 20; my $is_flip_needed = text_direction_rtl(); + my $filler = gtknew('Image', file => 'left-background-filler.png'); my $left_background = gtknew('Image', file => 'left-background.png'); my $right_background = gtknew('Image', file => "right-white-background_left_part$suffix", flip => $is_flip_needed); + my $lf_height = $left_background->get_pixbuf->get_height; my $width1 = $left_background->get_pixbuf->get_width; my $total_width = $width1 + $right_background->get_pixbuf->get_width; my $arrow_x = text_direction_rtl() ? $offset/2 -4 : $width1 - $offset -3; @@ -666,7 +668,7 @@ sub _gtk__MDV_Notebook { # stacking order is important for "Z-buffer": [ $left_background, 0, 0 ], if_($suffix ne '_600', - [ gtknew('Image', file => 'left-background-filler.png'), 0, $left_background->get_pixbuf->get_height ], + [ $filler, 0, $lf_height ], ), [ $selection_bar = gtknew('Image', file => 'rollover.png'), 0, 0 ], # arbitrary vertical position ($opts->{children} ? @{ delete $opts->{children} } : ()), |