Re: How to detect when user scrolls
- From: David NeÄas <yeti physics muni cz>
- To: Andrew Wood <a j w me com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to detect when user scrolls
- Date: Mon, 5 Sep 2011 16:37:56 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]