summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-19 15:33:30 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-19 15:33:30 +0000
commitc6fe69b458718bbbd5e95c90df80973781d7d4d6 (patch)
tree205a50292c64eef402628f01cdd906244956a7c3 /perl-install/mygtk2.pm
parenta24a8a9027239ad0b5a8330aff948ad4bd6b35e9 (diff)
downloaddrakx-c6fe69b458718bbbd5e95c90df80973781d7d4d6.tar
drakx-c6fe69b458718bbbd5e95c90df80973781d7d4d6.tar.gz
drakx-c6fe69b458718bbbd5e95c90df80973781d7d4d6.tar.bz2
drakx-c6fe69b458718bbbd5e95c90df80973781d7d4d6.tar.xz
drakx-c6fe69b458718bbbd5e95c90df80973781d7d4d6.zip
(_gtk__Pixbuf) move flip management from _gtk__Image() so that we can flip pixbufs directly
Diffstat (limited to 'perl-install/mygtk2.pm')
-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 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);
};
}