GNOME Bugzilla – Bug 160586
meld 0.9.4.1 wont display buttons when using libglade 2.4.1
Last modified: 2009-08-15 18:40:50 UTC
/usr/lib/meld/gnomeglade.py:46: GtkWarning: file gtklabel.c: line 2792 (gtk_label_set_use_underline): assertion `GTK_IS_LABEL (label)' failed self.xml = gtk.glade.XML(file, root, gettext.textdomain() ) /usr/lib/meld/gnomeglade.py:46: GtkWarning: gtkwidget.c:3076: widget `GtkToolButton' has no activatable signal "clicked" without arguments self.xml = gtk.glade.XML(file, root, gettext.textdomain() ) (meld:15124): GLib-GObject-WARNING **: gsignal.c:1657: signal `pressed' is invalid for instance `0x8271d58'
I'd suggest this is a bug in libglade as it works for me with libglade2.4.0
it was working for me too when i was using libglade 2.4.0 could this be because 2.4.1 is more strict ? adding libglade people to Cc perhaps a dupe of : http://bugzilla.gnome.org/show_bug.cgi?id=160967 got libglade 2.4.1, gtk+ 2.4.13
libglade-2.4.1 is building toolbars using the new GtkToolbar API. Meld is then adding some buttons to the toolbar with the old API (append_element). If you use the new toolbar APIs, things should work fine. You might need to open/save your project in a new version of glade to upgrade the toolbars to use GtkToolButtons.
Won't resaving make the glade file unusable with anything but libglade-2.4.x? Unfortunately thats not really a solution. Meld (0.9 stable branch) uses the old api because it works almost any version of pygtk. Back to pygtk-2.0 afaik.
It could be an option to ship two versions of the glade files and choose which to load, depending on gtk version (assuming gtk version matches glade version) James, is there a programmatic way to update the glade files without having to manually load/save each one?
I've added a command line switch to glade to update its project bug 163716. Also there doesn't seem to be a workaround for the 2.4.0->2.4.1 change so I'm just going to bite the bullet and require 2.4.1 for the next release. I've udpated cvs branch-0_9.
Batch close of old bugs.