Post-GUADEC
Time for my yearly blog entry!
I had a really good GUADEC this year, despite the weather (it was just like home, in rainy Gothenburg). There was a lot of interesting discussions going on about the future of our toolkit and platform. It's good to see the activity increasing, like it seems to have done over the last year or so, and the whole platform from X to Cairo to GTK+ moving forward.
During GUADEC, when working on a test case for the Mac OS port of GTK+ I somehow ended up doing a hack with animated reordering of a GtkBox, I don't really remember how I got that side-tracked ;) Anyway, after some more tinkering I came up with the idea that the same trick could be used to implement a Fifteen game using a GtkTable. Micke was quick to bribe^Wencourage me into actually doing it. Here it is:
The hack subclasses GtkTable, and as you can see when the window is resized, the table manages its children just like it normally does.
Comments
Code? Pretty please?
Posted by: Jeff Schroeder | July 25, 2007 11:40 PM
That's very sweet! How does it 'behave' when you make the window fullscreen? How much does it bug the CPU? On what Xorg/driver/GPU combo do you run that?
Posted by: MacSlow | July 25, 2007 11:44 PM
Quite interesting, where's the code? :-)
Posted by: Lucas Rocha | July 26, 2007 08:42 AM
Looks really sweet!
But I don't think we should abuse GTK just because we can ;)
On the other hand: Really cool stuff!!
Posted by: mike | July 26, 2007 11:14 AM
Looks really sweet!
Posted by: mike | July 26, 2007 11:15 AM
Where is the code
Posted by: Johan | July 26, 2007 01:37 PM
still no source code?
Posted by: Anders | July 26, 2007 07:59 PM
Various answers in one go: this was recorded on my IBM X41 which has an i945 something chip, nothing fancy at all. I run a stock Xorg server that comes with feisty. It works pretty well fullscreen too...
The code is pretty useless, just a quick hack, using a patched GTK+ with the GtkTimeline patch that Carlos wrote. I might clean it up at some point and put it here. You can easily do other similar things by just gradually changin properties on widgets or the size allocation of them.
Posted by: Richard | July 29, 2007 12:37 PM