summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-24 23:44:25 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-24 23:44:25 +0000
commitb0cd44a8d43653ca039814220608e5bfb9a23bdd (patch)
tree0e7451cb054378379735d0b06c9d00735bce7707 /perl-install
parent0855fc88f581ed11d99a7edb7fa10afc3b2b52b8 (diff)
downloaddrakx-b0cd44a8d43653ca039814220608e5bfb9a23bdd.tar
drakx-b0cd44a8d43653ca039814220608e5bfb9a23bdd.tar.gz
drakx-b0cd44a8d43653ca039814220608e5bfb9a23bdd.tar.bz2
drakx-b0cd44a8d43653ca039814220608e5bfb9a23bdd.tar.xz
drakx-b0cd44a8d43653ca039814220608e5bfb9a23bdd.zip
(_gtk__Image) restore support of size parameter (it's really too late to commit)
Diffstat (limited to 'perl-install')
-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 2c325ef41..a29d916ea 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -321,7 +321,7 @@ sub _gtk__Image {
$w = Gtk2::Image->new;
$w->{format} = delete $opts->{format} if exists $opts->{format};
- $w->{options} = { if_($o_size, size => $o_size), flip => delete $opts->{flip} };
+ $w->{options} = { flip => delete $opts->{flip} };
$w->{set_from_file} = $class =~ /using_pixmap/ ? sub {
my ($w, $file) = @_;
@@ -343,7 +343,7 @@ sub _gtk__Image {
});
} : sub {
my ($w, $file, $o_size) = @_;
- my $pixbuf = gtknew('Pixbuf', file => $file, %{$w->{options}});
+ my $pixbuf = gtknew('Pixbuf', file => $file, if_($o_size, size => $o_size), %{$w->{options}});
$w->set_from_pixbuf($pixbuf);
};
}