[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] GdkPixbufDecoder fix
From: |
Mark Wielaard |
Subject: |
[cp-patches] GdkPixbufDecoder fix |
Date: |
Thu, 23 Jun 2005 01:31:58 +0200 |
Hi,
This fixes loading of small images with GdkPixbufDecoder. We need to
explicitly tell gdk-pixbuf that we are done feeding it image bytes. I
also took the opportunity to add extra error checking.
2005-06-22 Mark Wielaard <address@hidden>
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
(pumpBytes): Throws IOException.
(pumpDone): New native method.
(produce): Call pumpDone().
* include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
(Java_gnu_java_awt_peer_gtk_GdkPixbufDecoder_pumpDone): New method.
(Java_gnu_java_awt_peer_gtk_GdkPixbufDecoder_pumpBytes): Check for
errors on gdk_pixbuf_loader_write.
With this ODB looks like: http://www.klomp.org/mark/classpath/odb.png
Compared with http://www.lambdacs.com/debugger/debugger.html that is
almost perfect :)
Committed,
Mark
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/
signature.asc
Description: This is a digitally signed message part
- [cp-patches] GdkPixbufDecoder fix,
Mark Wielaard <=