summaryrefslogtreecommitdiff
path: root/gtk/gtklist.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-04-15 04:34:03 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-04-15 04:34:03 +0000
commitaffbc828b37eef8decdd8294f0bc645f6de87f2f (patch)
treec7c1e4c41bf33fcf869b7866c094adc0b6145a97 /gtk/gtklist.c
parentc1592ab52b8438af67b41ffd36aeb7b1c0011c44 (diff)
downloadgtk+-affbc828b37eef8decdd8294f0bc645f6de87f2f.tar.gz
gtk/gtkclist.c (gtk_clist_motion) If we get a motion event with is_hint
2000-04-15 Tor Lillqvist <tml@iki.fi> * gtk/gtkclist.c (gtk_clist_motion) * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event with is_hint FALSE, get x and y from the event. They used to be used uninitialised. The Win32 backend never sends motion events marked as hints. This for instance fixes the annoying file and font selector behaviour in the Win32 version.
Diffstat (limited to 'gtk/gtklist.c')
-rw-r--r--gtk/gtklist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtklist.c b/gtk/gtklist.c
index f4239604a8..a114dcad75 100644
--- a/gtk/gtklist.c
+++ b/gtk/gtklist.c
@@ -563,6 +563,11 @@ gtk_list_motion_notify (GtkWidget *widget,
if (event->is_hint || event->window != widget->window)
gdk_window_get_pointer (widget->window, &x, &y, NULL);
+ else
+ {
+ x = event->x;
+ y = event->y;
+ }
adj = gtk_object_get_data_by_id (GTK_OBJECT (list), hadjustment_key_id);