[gtk+] Fix Selectable state for gailButton



commit 3f00129e17fe9443e3ecd50aeac291b7fdc74ec3
Author: Mike Gorse <mgorse boston site>
Date:   Thu Apr 23 14:36:51 2009 +0100

    Fix Selectable state for gailButton
    
    Only remove Selectable state from a GailButton if it is not Focusable (ie,
    a TreeView column header); do not add Selectable for all focusable
    buttons.  Fixes a bug introduced with the fix to 433324.
---
 modules/other/gail/gailbutton.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 01c6778..b8ab7cd 100644
--- a/modules/other/gail/gailbutton.c
+++ b/modules/other/gail/gailbutton.c
@@ -889,9 +889,7 @@ gail_button_ref_state_set (AtkObject *obj)
   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
+  if (!GTK_WIDGET_CAN_FOCUS(widget))
     atk_state_set_remove_state (state_set, ATK_STATE_SELECTABLE);
 
 



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