GNOME Bugzilla – Bug 74814
table caption property doesn't seem to work
Last modified: 2004-12-22 21:47:04 UTC
In Glade I have this code to get the table caption from a GtkTreeView's AtkObject: g_object_get (G_OBJECT (atko), "AtkObject::accessible-table-caption", &table_caption, NULL); This results in a warning: glade-2 (pid:1744): ** WARNING **: atkobject.c:919:atk_object_real_get_property(): invalid property id 8 for "accessible-table-caption" of type `GParamString' in `GailTreeView' It also happens when I try to set the property.
I have noticed that the trype of this property is defined incorrectly, in that it is inconsistent with atk_table_get_caption(). Would fixing this count as an API change? There are other properties in AtkObject which are not supported for setting and getting: accessible-table-column-description accessible-table-column-header accessible-table-row-description accessible-table-row-header accessible-table-summary Will you also want to use these properties?
Is it acceptable to you to call atk_table_get_caption() instead?
Why is the table caption an AtkObject? What properties will it have that should be set in Glade? I thought the table caption was just a string. Using atk_table_get_caption() is probably OK. Changing the property type probably would count as an API change, I think.
One reason to have it as an AtkObject is to allow for something other than a string be the caption.
*** Bug 75953 has been marked as a duplicate of this bug. ***
Created attachment 13577 [details] [review] Proposed patch
The proposed patch adds a new property accessible-table-caption-object. I suggest that this property be used instead of the broken accessible-table-caption. This patch will be applied after we branch after GNOME 2.2.
time to apply this patch now?
I see you just did :-)
I have applied the patch to add a new property accessible-table-caption-object. I need to change GAIL to use that property before closing this bug.
I have committed changes to gailtreeview.c to use accessible-tabkle-caption-object and added support for setting and getting accessible-table-caption-object to atkobject.c.