[gtk+/wip/carlosg/private-event-structs: 20/41] listbox: Update to using GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/private-event-structs: 20/41] listbox: Update to using GdkEvent API
- Date: Fri, 25 Aug 2017 15:06:56 +0000 (UTC)
commit a3d5b1d18ed9760152e22ee2ba1de2e997fedb12
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 25 16:49:12 2017 +0200
listbox: Update to using GdkEvent API
gtk/gtklistbox.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 6e73276..ce1a6d2 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1747,8 +1747,10 @@ gtk_list_box_enter_notify_event (GtkWidget *widget,
{
GtkListBox *box = GTK_LIST_BOX (widget);
GtkListBoxRow *row;
+ gdouble y;
- row = gtk_list_box_get_row_at_y (box, event->y);
+ gdk_event_get_coords ((GdkEvent *) event, NULL, &y);
+ row = gtk_list_box_get_row_at_y (box, y);
gtk_list_box_update_active (box, row);
return FALSE;
@@ -1771,8 +1773,10 @@ gtk_list_box_motion_notify_event (GtkWidget *widget,
{
GtkListBox *box = GTK_LIST_BOX (widget);
GtkListBoxRow *row;
+ gdouble y;
- row = gtk_list_box_get_row_at_y (box, event->y);
+ gdk_event_get_coords ((GdkEvent *) event, NULL, &y);
+ row = gtk_list_box_get_row_at_y (box, y);
gtk_list_box_update_active (box, row);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]