Commit 4048cbb4 authored by James Henstridge's avatar James Henstridge Committed by James Henstridge
Browse files

add news items.

2004-11-29  James Henstridge  <james@jamesh.id.au>

	* NEWS: add news items.

	* glade/glade-xml.c (add_relation): apply Padraig O'brian's patch
	to fix up AtkRelation creation.  Fixes bug #158708.
parent a3c3132f
2004-11-29 James Henstridge <james@jamesh.id.au>
* NEWS: add news items.
* glade/glade-xml.c (add_relation): apply Padraig O'brian's patch
to fix up AtkRelation creation. Fixes bug #158708.
2004-05-19 Daniel Elstner <daniel.elstner@gmx.net>
* glade/glade-gtk.c (combo_box_entry_find_internal_child): New
......
libglade-2.5.0: 29-November-2004
- Add support for GtkFileChooserButton, GtkIconView,
GtkAboutDialog and GtkMenuToolButton.
- Register GtkFileChooserDialog correctly.
- Fix a number of bugs in the libglade-convert utility.
- Fix some memory leaks in the XML parsing code.
- Handle tooltips on GtkToolItems properly, and get rid of uses of
the old toolbar API.
- Fix some bugs in setting up ATK relations.
- Various other bug fixes (see ChangeLog).
libglade-2.4.0: 17-May-2004
- Stable release.
......
......@@ -788,14 +788,22 @@ add_relation(AtkRelationSet *relations, AtkRelationType relation_type,
if (relation) {
/* add new target accessible to relation */
GPtrArray* target_array = atk_relation_get_target (relation);
GPtrArray* new_target_array;
AtkRelation *new_relation;
guint i;
/* first check if target occurs in array ... */
for (i = 0; i < target_array->len; i++)
if (g_ptr_array_index(target_array, i) == target_accessible)
return;
g_object_ref(target_accessible);
g_ptr_array_add (target_array, target_accessible);
new_target_array = g_ptr_array_sized_new (target_array->len + 1);
for (i = 0; i < target_array->len; i++)
g_ptr_array_add (new_target_array, g_ptr_array_index (target_array, i));
g_ptr_array_add (new_target_array, target_accessible);
new_relation = atk_relation_new (&g_ptr_array_index (new_target_array, 0), new_target_array->len, relation_type);
atk_relation_set_remove (relations, relation);
atk_relation_set_add (relations, new_relation);
g_ptr_array_free (new_target_array, TRUE);
} else {
/* the relation hasn't been created yet ... */
relation = atk_relation_new(&target_accessible, 1, relation_type);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment