Re: How to detect when user scrolls
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 text, it doesnt detect it. > > I've tried the following, on both the GtkScrolledWindow > (browserscrolledview) and the mainwindow (GtkWindow) but to no avail: > > g_signal_connect(G_OBJECT(browserscrolledview),"scroll-event",G_CALLBACK(userActive),NULL); > > //will be called when user scrolls in display area > > How do I detect when the scrollbars move? Connect to "value-changed" signal of the GtkScrolledWindow's adjustments. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: How to detect when user scrolls
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 anything else, as they would if reading through some text, it doesnt detect it. I've tried the following, on both the GtkScrolledWindow (browserscrolledview) and the mainwindow (GtkWindow) but to no avail: g_signal_connect(G_OBJECT(browserscrolledview),"scroll-event",G_CALLBACK(userActive),NULL); //will be called when user scrolls in display area How do I detect when the scrollbars move? Connect to "value-changed" signal of the GtkScrolledWindow's adjustments. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list