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

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

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

revision 1.30 by mkoch, Fri Oct 8 22:16:09 2004 UTC revision 1.31 by mark, Tue Oct 26 23:50:04 2004 UTC
# Line 827  pre_event_handler (GtkWidget *widget, Gd Line 827  pre_event_handler (GtkWidget *widget, Gd
827    static guint button_number = -1;    static guint button_number = -1;
828    static jint click_count = 1;    static jint click_count = 1;
829    static int hasBeenDragged;    static int hasBeenDragged;
830      union widget_union w;
831    
832    /* If it is not a focus change event, the widget must be realized already.    /* If it is not a focus change event, the widget must be realized already.
833       If not, ignore the event (Gtk+ will do the same). */       If not, ignore the event (Gtk+ will do the same). */
834    if (!(event->type == GDK_FOCUS_CHANGE || GTK_WIDGET_REALIZED(widget)))    if (!(event->type == GDK_FOCUS_CHANGE || GTK_WIDGET_REALIZED(widget)))
835      return FALSE;      return FALSE;
836        
837    /* Do not handle propagated events.  AWT has its own propagation rules */    /* Do not handle propagated events.  AWT has its own propagation rules */
838    gdk_window_get_user_data (event->any.window, (void **) &event_widget);    w.widget = &event_widget;
839      gdk_window_get_user_data (event->any.window, w.void_widget);
840    if (event_widget != widget)    if (event_widget != widget)
841      return FALSE;      return FALSE;
842    
# Line 1128  connect_awt_hook (JNIEnv *env, jobject p Line 1130  connect_awt_hook (JNIEnv *env, jobject p
1130   * can be sure that widget->window is non-NULL, and so can have data   * can be sure that widget->window is non-NULL, and so can have data
1131   * connected to it.   * connected to it.
1132   */   */
1133  void connect_awt_hook_cb (GtkWidget *widget, jobject peer)  void connect_awt_hook_cb (GtkWidget *widget __attribute__((unused)),
1134                              jobject peer)
1135  {  {
1136    void *ptr;    void *ptr;
1137    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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