Re: How to do_size_allocate properly in a gtk.Viewport subclass

2008-10-23 Thread Joel Hedlund
Joel Hedlund wrote: And another relevant question: am I overcomplicating this? Yes. :-) The proper way of doing this is to pack the widget in a container, and then add the container (with viewport) to a scrolledwindow. For example, for a centered widget choose a 1x1 gtk.Table and attach the

Re: How to do_size_allocate properly in a gtk.Viewport subclass

2008-10-22 Thread Joel Hedlund
Hrvoje Niksic wrote: Note that there's a mailing list dedicated to PyGTK, <[EMAIL PROTECTED]>, so you might also want to ask your question there. Thanks. I'll try that and hope people won't take offense from cross-posting. I'll be wathching this thread for answers too though. In my experience

Re: How to do_size_allocate properly in a gtk.Viewport subclass

2008-10-22 Thread Hrvoje Niksic
Joel Hedlund <[EMAIL PROTECTED]> writes: > I've raised this issue on #pygtk and #gtk+ but with no luck. Note that there's a mailing list dedicated to PyGTK, <[EMAIL PROTECTED]>, so you might also want to ask your question there. -- http://mail.python.org/mailman/listinfo/python-list

How to do_size_allocate properly in a gtk.Viewport subclass

2008-10-22 Thread Joel Hedlund
Hi! I've raised this issue on #pygtk and #gtk+ but with no luck. I haven't been able to solve this even with aid of google, the pygtk reference and the gtk C source, so pretty please help? I'm making an application that you can think of as an image viewer. I want to display a widget in a gtk