[stuff deleted]
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.