39 |
#include "gtkpeer.h" |
#include "gtkpeer.h" |
40 |
#include "gnu_java_awt_peer_gtk_GtkButtonPeer.h" |
#include "gnu_java_awt_peer_gtk_GtkButtonPeer.h" |
41 |
|
|
|
static jmethodID beginNativeRepaintID; |
|
|
static jmethodID endNativeRepaintID; |
|
42 |
static jmethodID postActionEventID; |
static jmethodID postActionEventID; |
43 |
|
|
44 |
void |
void |
49 |
gtkbuttonpeer = (*cp_gtk_gdk_env())->FindClass (cp_gtk_gdk_env(), |
gtkbuttonpeer = (*cp_gtk_gdk_env())->FindClass (cp_gtk_gdk_env(), |
50 |
"gnu/java/awt/peer/gtk/GtkButtonPeer"); |
"gnu/java/awt/peer/gtk/GtkButtonPeer"); |
51 |
|
|
|
beginNativeRepaintID = (*cp_gtk_gdk_env())->GetMethodID (cp_gtk_gdk_env(), gtkbuttonpeer, |
|
|
"beginNativeRepaint", |
|
|
"()V"); |
|
|
|
|
|
endNativeRepaintID = (*cp_gtk_gdk_env())->GetMethodID (cp_gtk_gdk_env(), gtkbuttonpeer, |
|
|
"endNativeRepaint", "()V"); |
|
|
|
|
52 |
postActionEventID = (*cp_gtk_gdk_env())->GetMethodID (cp_gtk_gdk_env(), |
postActionEventID = (*cp_gtk_gdk_env())->GetMethodID (cp_gtk_gdk_env(), |
53 |
gtkbuttonpeer, |
gtkbuttonpeer, |
54 |
"postActionEvent", "(I)V"); |
"postActionEvent", "(I)V"); |