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

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

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

revision 1.29 by mkoch, Wed Sep 22 11:03:10 2004 UTC revision 1.30 by mkoch, Fri Oct 8 22:16:09 2004 UTC
# Line 1122  connect_awt_hook (JNIEnv *env, jobject p Line 1122  connect_awt_hook (JNIEnv *env, jobject p
1122    va_end (ap);    va_end (ap);
1123  }  }
1124    
1125    /*
1126     * Attach a Java object that is backed by widget.  This callback is
1127     * called after the widget's window has been realized.  That way, we
1128     * can be sure that widget->window is non-NULL, and so can have data
1129     * connected to it.
1130     */
1131    void connect_awt_hook_cb (GtkWidget *widget, jobject peer)
1132    {
1133      void *ptr;
1134    
1135      ptr = NSA_GET_PTR (gdk_env, peer);
1136    
1137      connect_awt_hook (gdk_env, peer, 1, GTK_WIDGET (ptr)->window);
1138    
1139      gdk_threads_leave ();
1140    
1141      (*gdk_env)->CallVoidMethod (gdk_env, peer, setCursorID);
1142    
1143      gdk_threads_enter ();
1144    }

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

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