Re: How to detect when user scrolls

2011-09-05 Thread Andrew Wood
Excellent. Thank you On 05/09/11 15:37, David Nečas wrote: On Mon, Sep 05, 2011 at 02:37:32PM +0100, Andrew Wood wrote: However in the mainwindow is a GtkScrolledWindow, and although its detecting mouse movement over the display area, if the user is just moving the scrollbarsandnot doing anyth

Re: How to detect when user scrolls

2011-09-05 Thread David Nečas
On Mon, Sep 05, 2011 at 02:37:32PM +0100, Andrew Wood wrote: > However in the mainwindow is a GtkScrolledWindow, and although its > detecting mouse movement over the display area, if the user is just > moving the scrollbarsandnot doing anything else, as they would if > reading through some te

How to detect when user scrolls

2011-09-05 Thread Andrew Wood
Im writing some code which will call a function (userActive) when the user does something, for mouse moves, clicks and keyboard presses this is working fine: g_signal_connect(G_OBJECT(mainwindow),"motion-notify-event",G_CALLBACK(userActive),NULL); //will be called when a mouse move occurs g_si