I have another idea for you: In the Gnome Mines game (which you can probably find on git.gnome.org) written in Vala, the game board has a fixed ratio and resizes with the window, exactly like your requirement.
Go there and see how the MinefieldView and Window classes word. On ג', 2013-06-18 at 15:44 -0700, Kip Warner wrote: > On Tue, 2013-06-18 at 10:33 +0300, אנטולי קרסנר wrote: > > Hmmm... did you try not to resize the image at all, and see if it gets > > resized automatically by the aspect frame? If the ratio of the image > > isn't identical to the aspect frame ratio, I guess it may result in each > > one of them resizing the other recursively. > > > > Try without the resize code, and see if it works. If not, maybe use some > > layout/alignment properties to make the image adapt, rather than > > manually setting the new size. Maybe this will work. > > > > I Hope it helps :-) > > Hey Tom. Thanks for the help. If I comment out the "draw" signal > connection on line 34, the aspect ratio doesn't resize at all, but just > stays fixed, albeit at the correct aspect ratio. > > <http://pastebin.com/jFCcWyig> > > Ugh, *slams head on desk* > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list