summaryrefslogtreecommitdiff
path: root/gtk/gtkvruler.c
diff options
context:
space:
mode:
authorTim Janik <timj@imendio.com>2007-02-06 14:53:35 +0000
committerTim Janik <timj@src.gnome.org>2007-02-06 14:53:35 +0000
commitcaa4d15dabe7979dae7bebb19afa0c8b9f213f30 (patch)
treea58b7c24d1071a19982e47891497766c5caf49f7 /gtk/gtkvruler.c
parentaef468ebbf59e6d6d59632a8cc8fc4a84a1501b1 (diff)
downloadgtk+-caa4d15dabe7979dae7bebb19afa0c8b9f213f30.tar.gz
call gdk_event_request_motions() for new motion events after receiving
Tue Feb 6 15:53:59 2007 Tim Janik <timj@imendio.com> * gtk/gtktextview.c (gtk_text_view_motion_event): * gtk/gtkspinbutton.c (gtk_spin_button_motion_notify): * gtk/gtkaboutdialog.c (credits_motion_notify_event): * gtk/gtkhruler.c (gtk_hruler_motion_notify): * gtk/gtkvruler.c (gtk_vruler_motion_notify): * gtk/gtkentry.c (gtk_entry_motion_notify): * gtk/gtktooltip.c (_gtk_tooltip_handle_event): * gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions() for new motion events after receiving motion hints. * gdk/gdkevents.[hc]: added gdk_event_request_motions(). svn path=/trunk/; revision=17269
Diffstat (limited to 'gtk/gtkvruler.c')
-rw-r--r--gtk/gtkvruler.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkvruler.c b/gtk/gtkvruler.c
index 0c08c18661..1c8419c850 100644
--- a/gtk/gtkvruler.c
+++ b/gtk/gtkvruler.c
@@ -90,10 +90,8 @@ gtk_vruler_motion_notify (GtkWidget *widget,
ruler = GTK_RULER (widget);
- if (event->is_hint)
- gdk_window_get_pointer (widget->window, NULL, &y, NULL);
- else
- y = event->y;
+ gdk_event_request_motions (event);
+ y = event->y;
ruler->position = ruler->lower + ((ruler->upper - ruler->lower) * y) / widget->allocation.height;
g_object_notify (G_OBJECT (ruler), "position");