From 545d9128fd52ac932378d46e485c0349e39f7662 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 18 Sep 2008 13:46:03 +0000 Subject: (_gtk__Image) add support for flipping (horizontally) images (needed in some case for RTL languages) --- perl-install/mygtk2.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index b44e2af70..c3163a1b2 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -325,6 +325,7 @@ sub _gtk__Image { } : 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}; $w->set_from_pixbuf($pixbuf); }; } -- cgit v1.2.1