GtkComponentPeer.java (requestFocus): Implement by calling gtkRequestFocus.
2004-06-01 Mark Wielaard <mark@klomp.org> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (requestFocus): Implement by calling gtkRequestFocus. (gtkRequestFocus): New native method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_requestFocus__): Renamed to ... (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkRequestFocus): New function name. (filter_expose_event_handler): Mark static. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c (menu_pos): Mark static. From-SVN: r82517
This commit is contained in:
parent
e17b3578a3
commit
1900c4c6bf
4 changed files with 26 additions and 8 deletions
|
@ -353,10 +353,14 @@ public class GtkComponentPeer extends GtkGenericPeer
|
|||
|
||||
public void requestFocus ()
|
||||
{
|
||||
gtkWidgetRequestFocus ();
|
||||
postFocusEvent (FocusEvent.FOCUS_GAINED, false);
|
||||
gtkRequestFocus();
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue