forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
c1592ab52b
commit
affbc828b3
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2000-04-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
|
||||
|
@ -5266,6 +5266,11 @@ gtk_clist_motion (GtkWidget *widget,
|
||||
|
||||
if (event->is_hint || event->window != clist->clist_window)
|
||||
gdk_window_get_pointer (clist->clist_window, &x, &y, NULL);
|
||||
else
|
||||
{
|
||||
x = event->x;
|
||||
y = event->y;
|
||||
}
|
||||
|
||||
if (GTK_CLIST_REORDERABLE(clist) && button_actions & GTK_BUTTON_DRAGS)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user