[gtk+] listbox: Fix row hovering
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] listbox: Fix row hovering
- Date: Sat, 3 Dec 2016 12:18:30 +0000 (UTC)
commit 31ed68dbfa281c66d4f6ed122843d65bfd5c9236
Author: Timm Bäder <mail baedert org>
Date: Wed Nov 30 11:27:32 2016 +0100
listbox: Fix row hovering
GtkListBox is not a windowed widget anymore so we can't use
gtk_widget_get_window. Just directly access priv->view_window instead to
get the right window.
gtk/gtklistbox.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index db6e9f0..f3c101c 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1830,7 +1830,7 @@ gtk_list_box_enter_notify_event (GtkWidget *widget,
GtkListBox *box = GTK_LIST_BOX (widget);
GtkListBoxRow *row;
- if (event->window != gtk_widget_get_window (widget))
+ if (event->window != BOX_PRIV (box)->view_window)
return FALSE;
BOX_PRIV (box)->in_widget = TRUE;
@@ -1849,7 +1849,7 @@ gtk_list_box_leave_notify_event (GtkWidget *widget,
GtkListBox *box = GTK_LIST_BOX (widget);
GtkListBoxRow *row = NULL;
- if (event->window != gtk_widget_get_window (widget))
+ if (event->window != BOX_PRIV (box)->view_window)
return FALSE;
if (event->detail != GDK_NOTIFY_INFERIOR)
@@ -1879,7 +1879,7 @@ gtk_list_box_motion_notify_event (GtkWidget *widget,
if (!BOX_PRIV (box)->in_widget)
return FALSE;
- window = gtk_widget_get_window (widget);
+ window = BOX_PRIV (box)->view_window;
event_window = event->window;
relative_y = event->y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]