From c6fe69b458718bbbd5e95c90df80973781d7d4d6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 19 Sep 2008 15:33:30 +0000 Subject: (_gtk__Pixbuf) move flip management from _gtk__Image() so that we can flip pixbufs directly --- perl-install/mygtk2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/mygtk2.pm') diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index c3163a1b2..f42288cfb 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -305,6 +305,7 @@ sub _gtk__Pixbuf { } else { $w = Gtk2::Gdk::Pixbuf->new_from_file($file); } + $w = $w->flip(1) if delete $opts->{flip}; } $w; } @@ -324,8 +325,7 @@ sub _gtk__Image { $w->set_from_pixmap($pixmap, undef); } : sub { my ($w, $file, $o_size) = @_; - my $pixbuf = gtknew('Pixbuf', file => $file, if_($o_size, size => $o_size)); - $pixbuf = $pixbuf->flip(1) if delete $opts->{flip}; + my $pixbuf = gtknew('Pixbuf', file => $file, if_($o_size, size => $o_size), flip => delete $opts->{flip}); $w->set_from_pixbuf($pixbuf); }; } -- cgit v1.2.1