forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
779bd67a29
commit
22a47c3dbd
@ -1,3 +1,9 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user