How to capture the scroll event of the scrolled window?



I need to track the scroll events of the GtkScrolledWindow, and i use
following code: 
	GtkWidget* w = lookup_widget(MainWnd,"scrolledwindow1");
	gtk_widget_add_events (w, GDK_SCROLL_MASK);

and I mapped the scroll child event with glade, but it does not work. 
Anyone knows why?
--
View this message in context: http://www.nabble.com/How-to-capture-the-scroll-event-of-the-scrolled-window--t1815899.html#a4950061
Sent from the Gtk+ - General forum at Nabble.com.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]