/[classpath]/classpath/native/jni/gtk-peer/gnu_java_awt_image_GdkPixbufDecoder.c
ViewVC logotype

Diff of /classpath/native/jni/gtk-peer/gnu_java_awt_image_GdkPixbufDecoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mark, Tue Jan 22 22:27:02 2002 UTC revision 1.4 by tromey, Sat Nov 9 23:17:30 2002 UTC
# Line 1  Line 1 
1  /* gdkpixbufdecoder.c  /* gdkpixbufdecoder.c
2     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 76  Java_gnu_java_awt_image_GdkPixbufDecoder Line 76  Java_gnu_java_awt_image_GdkPixbufDecoder
76    getFDID = (*env)->GetFieldID (env, filedescriptor, "fd", "I");    getFDID = (*env)->GetFieldID (env, filedescriptor, "fd", "I");
77  }  }
78    
79  void  static void
80  area_prepared (GdkPixbufLoader *loader, struct loader_vector *lv)  area_prepared (GdkPixbufLoader *loader, struct loader_vector *lv)
81  {  {
82    ArtPixBuf *pixbuf;    ArtPixBuf *pixbuf;
83    
84    //  pixbuf = GDK_PIXBUF_LOADER(gdk_pixbuf_loader_get_pixbuf (loader))->art_pixbuf;    //  pixbuf = GDK_PIXBUF_LOADER(gdk_pixbuf_loader_get_pixbuf (loader))->art_pixbuf;
85    
   printf ("AREA PREPARED\n");  
   
   return;  
   
86    gdk_threads_leave ();    gdk_threads_leave ();
87    (*gdk_env)->CallVoidMethod (gdk_env,    (*gdk_env)->CallVoidMethod (gdk_env,
88                                *(lv->loader),                                *(lv->loader),
# Line 97  area_prepared (GdkPixbufLoader *loader, Line 93  area_prepared (GdkPixbufLoader *loader,
93    gdk_threads_enter ();    gdk_threads_enter ();
94  }  }
95    
96  void  static void
97  area_updated (GdkPixbufLoader *loader,  area_updated (GdkPixbufLoader *loader,
98                gint x, gint y,                gint x, gint y,
99                gint width, gint height,                gint width, gint height,
# Line 107  area_updated (GdkPixbufLoader *loader, Line 103  area_updated (GdkPixbufLoader *loader,
103    jintArray jpixels;    jintArray jpixels;
104    jint *pixels, scansize, num_pixels;    jint *pixels, scansize, num_pixels;
105    
   printf ("AREA UPDATED\n");  
   
106    /*  pixbuf = gdk_pixbuf_loader_get_pixbuf (loader)->art_pixbuf;    /*  pixbuf = gdk_pixbuf_loader_get_pixbuf (loader)->art_pixbuf;
107    
108    g_return_if_fail (pixbuf->format == ART_PIX_RGB);    g_return_if_fail (pixbuf->format == ART_PIX_RGB);
# Line 166  area_updated (GdkPixbufLoader *loader, Line 160  area_updated (GdkPixbufLoader *loader,
160    gdk_threads_enter ();    gdk_threads_enter ();
161  }  }
162    
163  void  static void
164  closed (GdkPixbufLoader *loader, struct loader_vector *lv)  closed (GdkPixbufLoader *loader, struct loader_vector *lv)
165  {  {
   printf ("IN CLOSED CALLBACK\n");  
   
166    gdk_threads_leave ();    gdk_threads_leave ();
167    
168    (*gdk_env)->DeleteGlobalRef (gdk_env, *(lv->loader));    (*gdk_env)->DeleteGlobalRef (gdk_env, *(lv->loader));

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26