Commit 22a47c3d authored by Li Yuan's avatar Li Yuan Committed by Li Yuan

Bug #548782. Emit children-changed::remove signal when a row is deleted in

2008-08-21  Li Yuan  <li.yuan@sun.com>

        * gailtreeview.c: (model_row_deleted):
        Bug #548782. Emit children-changed::remove signal when a row is
        deleted in gtktreeview.

svn path=/trunk/; revision=21173
parent 779bd67a
2008-08-21 Li Yuan <li.yuan@sun.com>
* gailtreeview.c: (model_row_deleted):
Bug #548782. Emit children-changed::remove signal when a row is
deleted in gtktreeview.
2008-08-15 Michael Natterer <mitch@imendio.com>
* gailbooleancell.c
......
......@@ -2920,7 +2920,7 @@ model_row_deleted (GtkTreeModel *tree_model,
GtkTreePath *path_copy;
AtkObject *atk_obj;
GailTreeView *gailview;
gint row;
gint row, col, n_cols;
tree_view = (GtkTreeView *)user_data;
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (tree_view));
......@@ -2959,6 +2959,17 @@ model_row_deleted (GtkTreeModel *tree_model,
g_signal_emit_by_name (atk_obj, "row_deleted", row,
gailview->n_children_deleted + 1);
gailview->n_children_deleted = 0;
/* Generate children-changed signals */
n_cols = get_n_actual_columns (tree_view);
for (col = 0; col < n_cols; col++)
{
/*
* Pass NULL as the child object, 4th argument.
*/
g_signal_emit_by_name (atk_obj, "children_changed::remove",
((row * n_cols) + col), NULL, NULL);
}
}
/*
......
Markdown is supported
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