Mathias Hasselmann

SoC-Status 2007/07/02

Extended layout ScreencastLast week I wanted to implement something to show, so I started on baseline alignment. First lesson I've learned: The original idea, of just changing the vertical position of the widgets turned out to be thought too simple. Instead of applying the baseline adjustments from the outside by tweaking the widgets GtkAllocation, I have to tell the widgets which offset they should apply to their baselines to produce a proper offset. This was easy to implement for GtkLabel - despite all xalign and xscale hacks in that widget. What bloat we have in GTK+, that a simple label widget has to consume more than 4500 lines of code!? On propagating those baseline offsets through simple GtkBin, especially GtkAlignment widgets I've cut my teeth. So I dedided to take a break from baseline alignment and implement natural sizing. Results of my efforts can be watched in the screencast. Well, or in the extented-layout branch of GTK+.

Comments

Andy Wingo commented on July 2, 2007 at 3:15 p.m.

lorem ipsum is passé: http://jonphilpott.blogspot.com/2006/...

Gianni commented on July 3, 2007 at 12:07 a.m.

Great to see some evolution! You rocks. You deserve some Pearl Jam

It's evolution baby!
Pearl Jam, http://www.youtube.com/watch?v=j5LJ7H...

Post a Comment

This site's webmaster failed misserably in upgrading the underlaying web framework.
The comment system is entirely broken right now. Sorry!