summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-18 13:46:03 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-18 13:46:03 +0000
commit545d9128fd52ac932378d46e485c0349e39f7662 (patch)
treee27081667e02797d0fe26290092e0ef720baf45b
parentd5cf7af735230250e2064ec9aca5f477a7bdbb14 (diff)
downloaddrakx-545d9128fd52ac932378d46e485c0349e39f7662.tar
drakx-545d9128fd52ac932378d46e485c0349e39f7662.tar.gz
drakx-545d9128fd52ac932378d46e485c0349e39f7662.tar.bz2
drakx-545d9128fd52ac932378d46e485c0349e39f7662.tar.xz
drakx-545d9128fd52ac932378d46e485c0349e39f7662.zip
(_gtk__Image) add support for flipping (horizontally) images (needed in some case for RTL languages)
-rw-r--r--perl-install/mygtk2.pm1
1 files changed, 1 insertions, 0 deletions
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);
};
}