GNOME Bugzilla – Bug 600688
Migrate from libglade to GtkBuilder
Last modified: 2011-06-06 06:38:08 UTC
In GNOME 2.27, libglade has been deprecated in favor of GtkBuilder (and will completely remove for GNOME 3 (2010)). See http://library.gnome.org/devel/gtk/stable/gtk-migrating-GtkBuilder.html for migration instructions. Also see http://live.gnome.org/GnomeGoals/RemoveLibGladeUseGtkBuilder. See http://www.gnome.org/~fpeters/299.html for automated statistics.
I'd actually support removing XML entirely.
GtkBuilder is also XML based. There's not much we can do about this (apart from hand-coding all those widgets/windows/dialogboxes) :( We should switch to GtkBuilder ASAP though.
removed from make pitivi work on non-GNOME systems tracker, this is about removing deprecated libraries.
Indeed, if you remove deprecated libraries and use only GTK+, your code is more portable (If not, you need libglade in all the other platforms)
true :)
I'm working on this bug. Stay tuned!
Created attachment 153799 [details] [review] GtkBuilder migration patch
Done. I removed ui/glade.py and created a new file ui/builder.py that provides the same functionality based on GtkBuilder. I following interface files are not tested, but should work: pitivi/ui/cam_capture.ui (My webcam was not detected) pitivi/ui/net_capture.ui (Where can I enable that?) pitivi/ui/screencast_manager.ui (Buggy) All other interface parts were tested and should work as before.
Created attachment 153801 [details] [review] GtkBuilder migration patch I missed POTFILES.in
Hello Simon, Thank you for working on this You should add [type: gettext/glade] before each .ui in POTFILES.in See http://live.gnome.org/GnomeGoals/RemoveLibGladeUseGtkBuilder
Created attachment 153802 [details] [review] updated patch Added [type: gettext/glade] before each .ui in POTFILES.in
Maintainers: ping - can this patch get a review/commit?
Just wanted to let you know that I see your patch, and merging it is on my "TODO" list. I really should apply this soon. The issue is that I was working on some changes to a few of the glade-based dialogs, and was hoping to complete those before merging this patch. That branch turned into a bit of a "powerplant", so I'm thinking I should try to merge first. Meanwhile I'll try and cut the other branch down to size.
Maintainers: ping2 ;) - can this patch get a review/commit?
This needs to be re-reviewed now that emdash's big UI changes have landed... I would doubt that the patch still applies cleanly. Interestingly enough, I also stumbled upon https://github.com/stephh/PiTiVi/commits/gtkbuilder today, which was not mentionned in this bug report...
Any progress on this?
stephh is currently working on this in the branch mentionned in comment 15 (he was previously blocked by the massive UI changes that landed a few months ago). This depends on some other branch being merged first (bug #650381). This is also a blocker for eventually migrating to PyGI and GTK3 (bug #632113). This summer, we fix this, once and for all.
commit d6ce97800c306d052a6acaff1ae43935292efb84 Author: Thibault Saunier <thibault.saunier@collabora.com> Date: Fri Jun 3 02:13:10 2011 -0400 Port PiTiVi to GtkBuilder!