Opened 4 months ago
Last modified 3 months ago
Using the following code, slide the separator all the way to the left. The program freezes.
import gtk import gtkimageview imageview = gtkimageview.ImageView() imageview.set_pixbuf(gtk.gdk.pixbuf_new_from_file('foobar.png')) scrolledimageview = gtkimageview.ImageScrollWin(imageview) paned = gtk.HPaned() paned.pack1(scrolledimageview) paned.pack2(gtk.Label('Foo')) window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.set_title('Test') window.add(paned) window.show_all() gtk.main()
I worked around this bug with shrink=False, but now I'm also getting occasional freezes if I just move the separator back and forth a bit.
Looks like this is just #80925. Your workaround doesn't seem to go far enough, especially for large images. As a quick hack, I've added zoom = MAX(zoom, 0.02) in gtk_image_view_zoom_to_fit, which does the job.
And by 'your workaround' I meant the existing one in gtk_image_view_repaint_area.
Thanks for the bug report! I've added a fix roughly like you suggested r568. There should be no freezes anymore.