Scroll horizontal GtkIconView with mouse wheel



Hello,

Suppose that I have a GtkScrolledWindow witch has a child of class
GtkIconView, the icons are disposed horizontally, then, only an
horizontal scroll bar is showed when there are many icons.

That I want is to allow that the GtkIconView scroll horizontally with
the mouse wheel. I can capture the event but I don't know how scroll the
GtkIconView.

Is there a way to scroll programmatically the GtkIconView the same
amount as when I press the arrow button in the scroll bar?

I know the existence of "gtk_icon_view_scroll_to_path" but I want to
scroll the GtkIconView an amount of pixels, not necessarily to a
specific path.

Thanks in advance!
Regards!



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