[gui] [PATCH] Implement GtkFramePeer.setIconImage()
David Jee
djee@redhat.com
Sat Aug 7 14:33:00 GMT 2004
On Fri, 2004-07-30 at 16:01, David Jee wrote:
> On Fri, 2004-07-30 at 15:37, Bryce McKinlay wrote:
> > What happens if img.getSource() isn't a GdkPixbufDecoder, or if it isn't
> > loaded yet? Please add a FIXME to suggest that these cases need to be
> > handled later.
>
> I added a FIXME for now. I'll take a look at what should happen in
> these cases.
Here is a patch which takes care of cases where img.getSource() is not a
GdkPixbufDecoder. I committed it to the java-gui-branch.
-David Jee
2004-08-05 David Jee <djee@redhat.com>
PR AWT/16682
* gnu/java/awt/peer/gtk/GtkFramePeer.java
(nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
(nativeSetIconImageFromData): New native method declaration.
(setIconImage): Handle images not produced from GdkPixbufDecoder.
* gnu/java/awt/peer/gtk/GtkImage.java
(getPixelCache): New method.
(getColorModel): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
(free_pixbuf_data): New helper function.
(nativeSetIconImageFromData): New function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SetIconImage4.patch
Type: text/x-patch
Size: 5142 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040807/aef78bc8/attachment.bin>
More information about the Java-patches
mailing list