/[classpath]/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
ViewVC logotype

Diff of /classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by fitzsim, Thu Jul 14 22:07:02 2005 UTC revision 1.49 by fitzsim, Mon Aug 15 04:14:29 2005 UTC
# Line 145  button_to_awt_mods (int button) Line 145  button_to_awt_mods (int button)
145    return 0;    return 0;
146  }  }
147    
148  static jint  jint
149  state_to_awt_mods (guint state)  cp_gtk_state_to_awt_mods (guint state)
150  {  {
151    jint result = 0;    jint result = 0;
152    
# Line 946  component_button_press_cb (GtkWidget *wi Line 946  component_button_press_cb (GtkWidget *wi
946                                  postMouseEventID,                                  postMouseEventID,
947                                  AWT_MOUSE_PRESSED,                                  AWT_MOUSE_PRESSED,
948                                  (jlong)event->time,                                  (jlong)event->time,
949                                  state_to_awt_mods (event->state)                                  cp_gtk_state_to_awt_mods (event->state)
950                                  | button_to_awt_mods (event->button),                                  | button_to_awt_mods (event->button),
951                                  (jint)event->x,                                  (jint)event->x,
952                                  (jint)event->y,                                  (jint)event->y,
# Line 974  component_button_release_cb (GtkWidget * Line 974  component_button_release_cb (GtkWidget *
974                                  postMouseEventID,                                  postMouseEventID,
975                                  AWT_MOUSE_RELEASED,                                  AWT_MOUSE_RELEASED,
976                                  (jlong)event->time,                                  (jlong)event->time,
977                                  state_to_awt_mods (event->state)                                  cp_gtk_state_to_awt_mods (event->state)
978                                  | button_to_awt_mods (event->button),                                  | button_to_awt_mods (event->button),
979                                  (jint)event->x,                                  (jint)event->x,
980                                  (jint)event->y,                                  (jint)event->y,
# Line 999  component_button_release_cb (GtkWidget * Line 999  component_button_release_cb (GtkWidget *
999                                      postMouseEventID,                                      postMouseEventID,
1000                                      AWT_MOUSE_CLICKED,                                      AWT_MOUSE_CLICKED,
1001                                      (jlong)event->time,                                      (jlong)event->time,
1002                                      state_to_awt_mods (event->state)                                      cp_gtk_state_to_awt_mods (event->state)
1003                                      | button_to_awt_mods (event->button),                                      | button_to_awt_mods (event->button),
1004                                      (jint)event->x,                                      (jint)event->x,
1005                                      (jint)event->y,                                      (jint)event->y,
# Line 1045  component_motion_notify_cb (GtkWidget *w Line 1045  component_motion_notify_cb (GtkWidget *w
1045        (*cp_gtk_gdk_env())->CallVoidMethod (cp_gtk_gdk_env(), peer, postMouseEventID,        (*cp_gtk_gdk_env())->CallVoidMethod (cp_gtk_gdk_env(), peer, postMouseEventID,
1046                                      AWT_MOUSE_MOVED,                                      AWT_MOUSE_MOVED,
1047                                      (jlong)event->time,                                      (jlong)event->time,
1048                                      state_to_awt_mods (event->state),                                      cp_gtk_state_to_awt_mods (event->state),
1049                                      (jint)event->x,                                      (jint)event->x,
1050                                      (jint)event->y,                                      (jint)event->y,
1051                                      0,                                      0,

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26