June 24, 2007
Blogroll, GNOME, General, PyGTK, Python
8 Comments
Yesterday I on a bus ride from São Paulo I had the opportunity to see some of the developments tools available on OSX. Shark and mallocdebug are quite interesting, bling-bling for the developer masses.
When I woke up this morning I realized that it shouldn’t be too difficult to do something similar on top of valgrind.
[...later in the evening and 500 lines typed down...]

It’s quite useful already, it groups all the leaks by the topmost function which is a bit easier to follow than the output valgrind usually gives us.
You can find a tarball here if you want to play around with it.
Update: I uploaded a bzr branch to launchpad:
bzr branch http://code.launchpad.net/~jdahlin/andvare/main/
June 15, 2007
Blogroll, GNOME, General, olpc
15 Comments
Today, after more than 2 years and 120 comments I could finally close #172535, adding support for loading interfaces created by UI designers in Gtk+.
GtkBuilder replaces libglade, it uses a similar XML format but also supports the following:
- GtkTreeViews including columns and cell renderers
- Menus and toolbars created using GtkUIManager, including actions & actiongroups.
- TreeModels, it’s possible to define the data used by treemodels. It’s used by treeviews, iconviews, comboboxes, and entries.
- SizeGroups, align all these widgets without using tables!
I’d like to especially thank Matthias Clasen for reviewing the beast, it was over 6500 lines in the end! Henrique Romano helped me to implement parts of it and Tristan Van Berkom, Tim Janik, Kalle Vahlman, Christian Perch, Dan Winship, Owen Taylor, Behdad Esfahbod and Havoc Pennington also helped out with suggestions and improvements to the patch.There are a couple of things that needs to be done to simplify the transition from libglade to gtkbuilder though:
- Add support in UI designers. Gazpacho mostly supports it already, it’ll be easy to fix. glade-2 is out of the question and I expect glade-3 to at least partially support GtkBuilder before GNOME 2.20 is released
- Improve migration from libglade files. There’s a script in bugzilla which converts old libglade files to files which gtkbuilder can load. It needs to be improved and tested, especially menus and toolbars
- Some libglade features are not supported yet, such as loading only a part of a glade file and pixbuf properties. These will be fixed before the final Gtk+ 2.12 release
Now, time to party!