Ticket #23 (closed: fixed)

Opened 4 months ago

Last modified 3 months ago

freeze if resized to 0 width

Reported by: guest Assigned to:
Keywords: Cc:

Description

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()

Change History

08/04/08 18:12:32 changed by guest

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.

08/11/08 09:16:08 changed by guest

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.

08/11/08 09:31:10 changed by guest

And by 'your workaround' I meant the existing one in gtk_image_view_repaint_area.

09/01/08 00:11:20 changed by bjourne

  • status changed from new to closed.
  • resolution set to fixed.

Thanks for the bug report! I've added a fix roughly like you suggested r568. There should be no freezes anymore.