Re: [pygtk] How to do_size_allocate properly in a gtk.Viewport subclass?

2008-10-23 Thread Joel Hedlund
Thanks for your suggestion! It works quite well, however I do have some gripes with this solution, mostly because of stuff I left out of my original mail for the sake of brevity. So here goes: John Finlay wrote: I'm not sure what behavior you are looking for so I'll assume that you have one

Re: [pygtk] How to do_size_allocate properly in a gtk.Viewport subclass?

2008-10-23 Thread Joel Hedlund
Joel Hedlund wrote: Now, my real gripe is that zooming looks twitchy for small widgets with the widget-in-table-in-viewport solution, and that will be painful for users to look at. I'm hoping I've done some stupid oversight somewhere (help?). Maybe that will go away if you glue the widget

Re: [pygtk] How to do_size_allocate properly in a gtk.Viewport subclass?

2008-10-23 Thread Greg Ewing
Joel Hedlund wrote: So don't draw concentric circles on your test widgets, kids! Yeah. And if you've seen some of the wilder optical illusions around, you'll know that if you choose just the wrong pattern it'll twitch all by itself, without you having to write any code at all! -- Greg

[pygtk] How to do_size_allocate properly in a gtk.Viewport subclass?

2008-10-22 Thread Joel Hedlund
Hi! I was directed here from comp.lang.python, so sorry for the cross-post. I've also 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

Re: [pygtk] How to do_size_allocate properly in a gtk.Viewport subclass?

2008-10-22 Thread John Finlay
Joel Hedlund wrote: Hi! I was directed here from comp.lang.python, so sorry for the cross-post. I've also 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?