Re: Mouse leave on a row of GtkTreeView

2017-09-19 Thread Eric Cashon via gtk-app-devel-list
); GtkAdjustment *adjustment=gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(data[1])); gdouble adj_h=gtk_adjustment_get_value(adjustment); g_print("Row %i\n", (motion_y+(gint)adj_h)/natural_size.height); return FALSE; } -Original Message- From: pspgen

Re: Mouse leave on a row of GtkTreeView

2017-09-19 Thread Eric Cashon via gtk-app-devel-list
Could you use a GtkListBox? With a list box you can add a widget to the row and connect the "enter-notify-event" and "leave-notify-event" signals. There is example code for a list box at https://blog.gtk.org/2017/06/01/drag-and-drop-in-lists-revisited/ It is drag and drop but you could

Mouse leave on a row of GtkTreeView

2017-09-19 Thread pspgen
How can I detect when the mouse cursor leaves a GtkTreeView row ? Note that the signal "cursor-changed" is not what I am looking for, as it gets emitted as if it is a mouse enter (mouseover) event and I need it to be triggered when the mouse has just left the row. However within