Migrate from libglade to gtkbuilder

Registered by Severin H

Starting with PyGTK 1.12, which was released in January 2008, GTKBuilder is supported in addition to libglade. According to http://www.micahcarrick.com/05-30-2008/gtk-builder-libglade-faq.html GTKBuilder will eventually replace libglade:

"You should use GtkBuilder if you can as GtkBuilder is expected to replace Libglade (Why?) and GtkBuilder is built right into GTK+ thus reducing your application's dependencies. However, you (and your end users) will need at least GTK+ 2.12 and you will have to run the files you create with Glade through a conversion script until Glade 3 supports saving in the GtkBuilder format directly.

The vast majority of tutorials and large projects out there will still be using Libglade. Being that Libglade and GtkBuilder are so very similar in terms of the API, you shouldn't have trouble using one or the other depending on what you're working on. You don't need to panic about using one or the other, just be aware that GtkBuilder is the future. If you have an application already using Libglade, you could switch now or wait until it's better supported. However, I would recommend using GtkBuilder in new applications to avoid having to migrate the code later. "

GTKBuilder support has been added to Kiwi in version 1.2.24 which has not shown up in common distributions like Debian, but it isn't that hard to monkeypatch Kiwi so that also older versions of Kiwi support it, although it's not good practise. ;-)

The major reason why migration has been considered now is because Kiwi doesn't accept the new glade files produced by recent versions of glade-3. Of course this could be monkeypatched as well. ^^

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
Severin H
Direction:
Needs approval
Assignee:
Severin H
Definition:
Approved
Series goal:
Accepted for 0.5
Implementation:
Implemented
Milestone target:
milestone icon 0.5
Started by
Severin H
Completed by
Severin H

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.