gtk+ r21173 - trunk/modules/other/gail
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21173 - trunk/modules/other/gail
- Date: Thu, 21 Aug 2008 05:28:58 +0000 (UTC)
Author: liyuan
Date: Thu Aug 21 05:28:58 2008
New Revision: 21173
URL: http://svn.gnome.org/viewvc/gtk+?rev=21173&view=rev
Log:
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.
Modified:
trunk/modules/other/gail/ChangeLog
trunk/modules/other/gail/gailtreeview.c
Modified: trunk/modules/other/gail/gailtreeview.c
==============================================================================
--- trunk/modules/other/gail/gailtreeview.c (original)
+++ trunk/modules/other/gail/gailtreeview.c Thu Aug 21 05:28:58 2008
@@ -2920,7 +2920,7 @@
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 @@
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);
+ }
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]