gtk+ r19350 - trunk/modules/other/gail
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19350 - trunk/modules/other/gail
- Date: Fri, 11 Jan 2008 09:48:23 +0000 (GMT)
Author: liyuan
Date: Fri Jan 11 09:48:23 2008
New Revision: 19350
URL: http://svn.gnome.org/viewvc/gtk+?rev=19350&view=rev
Log:
2008-01-11 Li Yuan <li yuan sun com>
* gailtreeview.c: (gail_tree_view_ref_child),
(idle_cursor_changed):
Bug #497218. Emit "active-descendant-changed" when focus first comes
into treeview. Add/remove ATK_STATE_FOCUSED when cursor changes.
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 Fri Jan 11 09:48:23 2008
@@ -987,6 +987,9 @@
{
gailview->focus_cell = g_object_ref (cell);
gail_cell_add_state (cell, ATK_STATE_FOCUSED, FALSE);
+ g_signal_emit_by_name (gailview,
+ "active-descendant-changed",
+ cell);
}
}
g_list_free (renderer_list);
@@ -2625,12 +2628,16 @@
if (gail_tree_view->focus_cell)
{
gail_cell_remove_state (GAIL_CELL (gail_tree_view->focus_cell), ATK_STATE_ACTIVE, FALSE);
+ gail_cell_remove_state (GAIL_CELL (gail_tree_view->focus_cell), ATK_STATE_FOCUSED, FALSE);
g_object_unref (gail_tree_view->focus_cell);
}
gail_tree_view->focus_cell = cell;
if (GTK_WIDGET_HAS_FOCUS (widget))
- gail_cell_add_state (GAIL_CELL (cell), ATK_STATE_ACTIVE, FALSE);
+ {
+ gail_cell_add_state (GAIL_CELL (cell), ATK_STATE_ACTIVE, FALSE);
+ gail_cell_add_state (GAIL_CELL (cell), ATK_STATE_FOCUSED, FALSE);
+ }
g_signal_emit_by_name (gail_tree_view,
"active-descendant-changed",
cell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]