+2004-06-03 Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/awt/peer/gtk/GtkComponentPeer.java
+ (requestFocus): Revert last changes.
+ (gtkRequestFocus): Removed.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
+ (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus):
+ Renamed to ...
+ (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus):
+ Reverted last patch.
+ * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c
+ (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup):
+ Reverted comment change.
+
2004-06-02 Olga Rodimina <rodimina@redhat.com>
* javax/swing/JCheckBoxMenuItem.java:
public void requestFocus ()
{
- gtkRequestFocus();
+ gtkWidgetRequestFocus();
+ postFocusEvent(FocusEvent.FOCUS_GAINED, false);
}
- // Called from requestFocus, we don't want to make requestFocus itself
- // native since several JNI header generators have difficulties with
- // overridden and/or miranda methods. (Bug in gcjh < 3.5.)
- native private void gtkRequestFocus ();
-
public void reshape (int x, int y, int width, int height)
{
setBounds (x, y, width, height);
}
JNIEXPORT void JNICALL
-Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus
+Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetRequestFocus
(JNIEnv *env, jobject obj)
{
void *ptr;
gdk_threads_enter ();
menu = GTK_MENU (GTK_MENU_ITEM (ptr1)->submenu);
gtk_menu_set_accel_group (menu, gtk_accel_group_new ());
- /* FIXME: _gtk_accel_group_attach is a GTK-private function, so
- we'll need a different approach here: */
+ /* FIXME: update this to use GTK-2.4 GtkActions. */
#if 0
_gtk_accel_group_attach (gtk_menu_get_accel_group (menu),
G_OBJECT (gtk_widget_get_toplevel (ptr2)));