diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 23:44:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 23:44:25 +0000 |
commit | b0cd44a8d43653ca039814220608e5bfb9a23bdd (patch) | |
tree | 0e7451cb054378379735d0b06c9d00735bce7707 /perl-install | |
parent | 0855fc88f581ed11d99a7edb7fa10afc3b2b52b8 (diff) | |
download | drakx-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.pm | 4 |
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); }; } |