GtkTreeStore doesn't handle GtkBuildable <data> tag.

Bug #345989 reported by Luca Livraghi
6
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Medium
glade-3 (Ubuntu)
Fix Released
Low
Unassigned
Jaunty
Fix Released
Undecided
Robert Ancell

Bug Description

Binary package hint: glade-3

Hi, I'm on Ubuntu 9.04 and I'm testing the new Glade 3.6 using python. When I implement a treeview widget using gtk.Builder(), I get a message: glib.GError: Unhandled tag: 'data'
I tried to investigate on this, and I discovered that in the glade file there a part that is currently having problems. It's the code inside the <data></data> tag.
You can reproduce this bug just by extracting the tar archive I attached and typing on the terminal python Gui.py

Related branches

Revision history for this message
Luca Livraghi (luca91) wrote :
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Thanks for your bug report. I'm reassigning to GTK+ as Glade 3.6 is able to load this UI file correctly - It is when loading in GTK+ where the problem occurs.

The problem appears to be in:
gtk/gtktreestore.c: gtk_tree_store_buildable_custom_tag_start()
Where it doesn't handle the <data> tag.

Compare to:
gtk/gtkliststore.c: gtk_list_store_buildable_custom_tag_start()
Which does handle this tag (it ignores it).

Changed in glade-3:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Robert Ancell (robert-ancell) wrote :
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Upstream bug created:
http://bugzilla.gnome.org/show_bug.cgi?id=577685

GTK+ does not currently support setting data for treestores. As a workaround remove all data for any treestores (by hand or in Glade) until this feature is supported.

Changed in gtk+2.0 (Ubuntu):
importance: Medium → Low
status: Confirmed → Triaged
Changed in gtk:
status: Unknown → New
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Upstream has confirmed this is a bug in Glade 3 (the data for TreeStore GtkBuildable has yet to be defined). This feature will be removed in Glade 3.6.1.

affects: gtk+2.0 (Ubuntu) → glade-3 (Ubuntu)
Changed in gtk:
status: New → Fix Released
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in Glade 3.6.2 (by removing support for treestore data)

Changed in glade-3 (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in glade-3 (Ubuntu Jaunty):
assignee: nobody → Robert Ancell (robert-ancell)
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glade-3 - 3.6.3-0ubuntu1

---------------
glade-3 (3.6.3-0ubuntu1) jaunty-proposed; urgency=low

  * New upstream version (LP: #368390)
    - Fixed crash configuring button content (LP: #356013)
    - Fixed crash adding related action to button (LP: #358467)
    - Fixed allowing invalid data for GtkTreeStore (LP: #345989)
  * debian/patches/02_spinbutton-adjustment.patch:
    - Fix default generation of GtkSpinButtons. Patch by Adam Buchbinder.
      (LP: #323228)

 -- Robert Ancell <email address hidden> Tue, 28 Apr 2009 15:29:16 +1000

Changed in glade-3 (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to karmic as well.

Changed in glade-3 (Ubuntu):
status: Fix Committed → Fix Released
Changed in gtk:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.