[gui][PATCH] give GtkPanelPeer the GTK focus

Thomas Fitzsimmons fitzsim@redhat.com
Mon Jul 12 05:38:00 GMT 2004


Hi,

A GtkPanelPeer should grab the GTK focus when it obtains the AWT focus. 
Otherwise, applets embedded in web pages cannot gain the keyboard
focus.  I committed this patch to java-gui-branch.

Tom

2004-07-12  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/Component.java (requestFocus()): Don't handle Panels
	specially.
	(requestFocus(boolean)): Likewise.
	(requestFocusInWindow(boolean)): Likewise.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
	Set GTK_CAN_FOCUS flag.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: panel-real-gtk-focus.patch
Type: text/x-patch
Size: 2279 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040712/db11321b/attachment.bin>


More information about the Java-patches mailing list