Forcing GtkScrolledWindow to sroll

2010-01-11 Thread Tim Corio
I couldn't find this in the archives, but I assume it's a common thing. How do I force a GtkScrolledWindow to scroll? Using the C API, I have a drawing area widget that I put into a scrolled window. I can scroll the image as expected by dragging the scrollbars. Now, I want to first, force the

Re: Forcing GtkScrolledWindow to sroll

2010-01-11 Thread David Nečas
On Mon, Jan 11, 2010 at 01:51:06PM -0500, Tim Corio wrote: I couldn't find this in the archives, but I assume it's a common thing. How do I force a GtkScrolledWindow to scroll? You can either use gtk_range_set_value() on the scrollbar obtained with

Re: Forcing GtkScrolledWindow to sroll

2010-01-11 Thread Carlos Pereira
Then I want to implement a drag scrolling. The user will click and drag the image to make it scroll. To write drag code in GTK you basically need to handle signals button_press_event and motion_notify_event, as exemplified below. Essentially drag operations depend of the difference