I used a GtkScrolledWindow with a GtkDrawingArea inside it for OpenGL drawing in my program. I found that yes, I did have to set_size_request when zooming in and out. Be warned: Due to the way resizing works in GTK+, it's impossible to do "smooth zooming" where your scrolled window remains focused on the same part of the image as you zoom. You can approximate it, but the zoom itself will be jerky. I haven't found any way around this.
I am using gtk_scrolled_window_add_with_viewport() to get scrolling capabilities for a drawing area. In my program, I am drawing to a backing pixmap which I in turn draw onto the drawing area with an expose event handler. The problem I am having is that even though the pixmap is larger than the drawing area, the drawing area does not scroll. If however, I use gtk_set_size_request() on the drawing area to increase its dimensions, the drawing area scrolls. Any suggestions on what I could be doing wrong? Thanks.
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-list