Porting widgets to the new template API… the LAZY way!

First of all I want to thanks everyone involved in GUADEC organization specially to the GNOME foundation for sponsoring me once again. It is been great meeting with old friends and making new ones! So after Tristan’s talk UI developer experience with Glade/GtkBuilder where he talked about the new template API some good friend of …

GtkBuilder and external objects

What if you want to reference an object you created from a GtkBuilder script? or even more add children to a container created outside the scope of GtkBuilder? You can not! But do not worry, a simple API like the following will allow us to reference any external object from builder. void gtk_builder_expose_object (GtkBuilder *builder, …

Embeding GtkBuilder UI definitions into GObject classes!

Wait, what? Back in the day Glade used to generate code which was messy if was not handled properly, eventually everyone agreed it was better to use libglade instead and load the UI interface from a xml file, something that got consolidated with the advent of GtkBuilder in GTK+ So if it’s better for applications, …

SVG && cairo_path_t fun!

For all of those of you who usually program with cairo: How do you include a somewhat complex path in your code? Let’s take GIMP as an example… Wilber figure shows ups in a few places and the cairo code to draw it is in one place http://git.gnome.org/browse/gimp/tree/app/widgets/gimpcairo-wilber.c The important function here is gimp_cairo_wilber() which …

Hacking Glade in Glade: A recursion exercise

Last week, inspired by Tristan’s GtkComposite branch idea of embedding builder xml into widget classes together with the old eagernessĀ  of implementing Glade UI with Glade itself I started hacking Glade in glade! The first step was to recreate GladeWindow widget hierarchy in Glade, that was quick and easy. Then I started replacing the hard …

New Glade edit modes!

I am happy to announce two new Glade features that should make UI designers life a little bit easier. As you probably know Gtk+ 3 introduced new widget properties to control margins and its alignments which where only accessible in GladeĀ  through the common tab in the property editor… until now!. Margins and Alignment edit …