I have GtkScrollWindow with viewport and GtkDrawingArea in it. I'd like to be able to scroll the drawing area's contents, but I need the main window's size to remain unchanged (only scrollbars to appear over drawing area). When I change the scroll window's size with gtk_widget_set_size_request function, the whole window resizes (what's more, it can't be resized by user to any smaller size than set then). How to adjust the scroll window to make it work properly?
You probably want to resize underlying GtkDrawingArea, not GtkScrolledWindow. When drawing area will get too big for scrolled window, scrollbars will appear while main window will retain it's size.