[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Re-add native GtkComponentPeer requestFocus method
From: |
Mark Wielaard |
Subject: |
FYI: Re-add native GtkComponentPeer requestFocus method |
Date: |
Thu, 20 May 2004 16:02:05 +0200 |
Hi,
The native GtkComponentPeer requestFocus method got accidentally removed
in a recent cleanup. Probably because it is a overloaded method and
should and in __ (the include file got it right).
2004-05-20 Mark Wielaard <address@hidden>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(requestFocus): Re-add function.
(Note that the method is actually a no-op.)
This was found by the nice GNU Classpath AWT Kaffe integration work by
Jim Huang <http://jserv.sayya.org/kaffe/screenshots/cp-awt2.png>
(That is the kaffe TextEdit] sample application running on Kaffe plus
GNU Classpath gtk+ AWT implementation.)
Cheers,
Mark
diff -u -r1.26 gnu_java_awt_peer_gtk_GtkComponentPeer.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c 30 Apr
2004 11:05:16 -0000 1.26
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c 20 May
2004 13:59:47 -0000
@@ -110,6 +110,18 @@
gdk_threads_leave ();
}
+JNIEXPORT void JNICALL
Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__
+ (JNIEnv *env, jobject obj)
+{
+ void *ptr;
+
+ ptr = NSA_GET_PTR (env, obj);
+
+ gdk_threads_enter ();
+ /* XXX gtk_widget_grab_focus (GTK_WIDGET (ptr)); */
+ gdk_threads_leave ();
+}
+
/*
* Find the origin of a widget's window.
*/
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Re-add native GtkComponentPeer requestFocus method,
Mark Wielaard <=