52 |
{ |
{ |
53 |
native void create (String label); |
native void create (String label); |
54 |
|
|
|
public native void connectJObject (); |
|
55 |
public native void connectSignals (); |
public native void connectSignals (); |
56 |
|
|
57 |
native void gtkSetFont (String name, int style, int size); |
native void gtkWidgetSetFont (String name, int style, int size); |
58 |
native void gtkSetLabel (String label); |
native void gtkSetLabel (String label); |
59 |
native void gtkWidgetSetForeground (int red, int green, int blue); |
native void gtkWidgetSetForeground (int red, int green, int blue); |
60 |
native void gtkActivate (); |
native void gtkActivate (); |
61 |
|
native void gtkWidgetRequestFocus (); |
62 |
|
|
63 |
public GtkButtonPeer (Button b) |
public GtkButtonPeer (Button b) |
64 |
{ |
{ |
86 |
if (!me.isConsumed () |
if (!me.isConsumed () |
87 |
&& (me.getModifiersEx () & MouseEvent.BUTTON1_DOWN_MASK) != 0 |
&& (me.getModifiersEx () & MouseEvent.BUTTON1_DOWN_MASK) != 0 |
88 |
&& awtComponent.getBounds().contains(p)) |
&& awtComponent.getBounds().contains(p)) |
89 |
postActionEvent (((Button)awtComponent).getActionCommand (), |
postActionEvent (((Button) awtComponent).getActionCommand (), |
90 |
me.getModifiersEx ()); |
me.getModifiersEx ()); |
91 |
} |
} |
92 |
|
|
93 |
if (e.getID () == KeyEvent.KEY_PRESSED) |
if (e.getID () == KeyEvent.KEY_PRESSED) |