gtk+ r19950 - trunk/modules/other/gail



Author: liyuan
Date: Mon Mar 31 08:48:16 2008
New Revision: 19950
URL: http://svn.gnome.org/viewvc/gtk+?rev=19950&view=rev

Log:
2008-03-31  Li Yuan  <li yuan sun com>

        * gailbutton.c: (gail_button_ref_state_set):
        Bug #433324. add/remove selectable state depand on if the button can
        be focused.


Modified:
   trunk/modules/other/gail/ChangeLog
   trunk/modules/other/gail/gailbutton.c

Modified: trunk/modules/other/gail/gailbutton.c
==============================================================================
--- trunk/modules/other/gail/gailbutton.c	(original)
+++ trunk/modules/other/gail/gailbutton.c	Mon Mar 31 08:48:16 2008
@@ -861,6 +861,12 @@
   if (GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE)
     atk_state_set_add_state (state_set, ATK_STATE_ARMED);
 
+  if (GTK_WIDGET_CAN_FOCUS(widget))
+    atk_state_set_add_state (state_set, ATK_STATE_SELECTABLE);
+  else
+    atk_state_set_remove_state (state_set, ATK_STATE_SELECTABLE);
+
+
   return state_set;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]