summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-01 10:44:41 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-01 10:44:41 +0000
commiteeb01f41110938a73bf3906f7f188aac009bb77c (patch)
treea4614ddeda9c5ce0746e5d5bef25795c08affeb3 /perl-install/mygtk2.pm
parentc6550ae930cf5716527c555b57b27882fca3a2f6 (diff)
downloaddrakx-eeb01f41110938a73bf3906f7f188aac009bb77c.tar
drakx-eeb01f41110938a73bf3906f7f188aac009bb77c.tar.gz
drakx-eeb01f41110938a73bf3906f7f188aac009bb77c.tar.bz2
drakx-eeb01f41110938a73bf3906f7f188aac009bb77c.tar.xz
drakx-eeb01f41110938a73bf3906f7f188aac009bb77c.zip
(_gtk__Image_using_pixbuf,_gtk__MDV_Notebook) adapt to latest commit
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 28cdaed9f..1c6824629 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -332,6 +332,7 @@ sub _gtk__Image {
my $pixbuf = _pixbuf_render_alpha(gtknew('Pixbuf', file => $file, %{$w->{options}}), 255);
my ($width, $height) = ($pixbuf->get_width, $pixbuf->get_height);
$w->set_size_request($width, $height);
+ $w->{pixbuf} = $pixbuf;
$w->signal_connect(expose_event => sub {
if (!$w->{x}) {
my $alloc = $w->allocation;
@@ -679,13 +680,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_using_pixbuf', file => 'left-background.png');
- my $lf_height = $left_background->get_pixbuf->get_height;
+ my $lf_height = $left_background->{pixbuf}->get_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->get_pixbuf->get_width;
+ my $width1 = $left_background->{pixbuf}->get_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 => [