summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-03-18 20:14:54 +0000
committerMark Wielaard <mark@klomp.org>2006-03-18 20:14:54 +0000
commit42398a2cb14fa41fe355dd877168cf4cf161148a (patch)
treed7cb72d7116405fdfe5ddd893adc83b71822ff9e /java
parent72d3b4000c6328573a18cb14c13b11989c94e3ed (diff)
downloadclasspath-42398a2cb14fa41fe355dd877168cf4cf161148a.tar.gz
* java/awt/Component.java (eventTypeEnabled): Handle
MouseEvent.MOUSE_WHEEL. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postMouseWheelEvent): New callback method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (AWT_MOUSE_WHEEL): New constant. (AWT_WHEEL_UNIT_SCROLL): Likewise. (postMouseWheelEventID): New static variable. (cp_gtk_component_init_jni): Record postMouseWheelEventID. (cp_gtk_component_connect_mouse_signals): Connect scroll-event. (button_number): Renamed to ... (button_number_direction): variable to hold button number or scroll direction. (component_button_press_cb): Use button_number_direction. (component_scroll_cb): New static callback function.
Diffstat (limited to 'java')
-rw-r--r--java/awt/Component.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/awt/Component.java b/java/awt/Component.java
index 3ec002185..9797c04ae 100644
--- a/java/awt/Component.java
+++ b/java/awt/Component.java
@@ -5002,6 +5002,9 @@ p * <li>the set of backward traversal keys
case MouseEvent.MOUSE_DRAGGED:
return (mouseMotionListener != null
|| (eventMask & AWTEvent.MOUSE_MOTION_EVENT_MASK) != 0);
+ case MouseEvent.MOUSE_WHEEL:
+ return (mouseWheelListener != null
+ || (eventMask & AWTEvent.MOUSE_WHEEL_EVENT_MASK) != 0);
case FocusEvent.FOCUS_GAINED:
case FocusEvent.FOCUS_LOST: