perl-Gtk2 r2120 - in trunk: . t
- From: tsch svn gnome org
- To: svn-commits-list gnome org
- Subject: perl-Gtk2 r2120 - in trunk: . t
- Date: Fri, 6 Feb 2009 13:04:55 +0000 (UTC)
Author: tsch
Date: Fri Feb 6 13:04:55 2009
New Revision: 2120
URL: http://svn.gnome.org/viewvc/perl-Gtk2?rev=2120&view=rev
Log:
Don't use an auto-detecting pixbuf loader since that's broken for PPM images in
at least gtk+ >= 2.14.3 (see GNOME #570780).
Modified:
trunk/ChangeLog
trunk/t/GdkPixbufLoader.t
Modified: trunk/t/GdkPixbufLoader.t
==============================================================================
--- trunk/t/GdkPixbufLoader.t (original)
+++ trunk/t/GdkPixbufLoader.t Fri Feb 6 13:04:55 2009
@@ -40,7 +40,11 @@
# now, let's test!
-my $loader = Gtk2::Gdk::PixbufLoader->new;
+# Automatic detection of the image type seems to be broken in some versions of
+# gtk+; see <http://bugzilla.gnome.org/show_bug.cgi?id=570780>. So we don't
+# use an auto-detecting loader here.
+my $loader = Gtk2::Gdk::PixbufLoader->new_with_mime_type (
+ 'image/x-portable-pixmap');
isa_ok ($loader, 'Glib::Object');
isa_ok ($loader, 'Gtk2::Gdk::PixbufLoader');
$loader->write (make_ppm_data (10, 15));
@@ -89,7 +93,8 @@
# set_size can be used to do load-time scaling.
- $loader = Gtk2::Gdk::PixbufLoader->new;
+ $loader = Gtk2::Gdk::PixbufLoader->new_with_mime_type (
+ 'image/x-portable-pixmap');
$loader->set_size (48, 32);
$loader->write (make_ppm_data (96, 64));
$loader->close;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]