summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMike Gorse <mgorse@boston.site>2009-04-23 14:36:51 +0100
committerMike Gorse <mgorse@boston.site>2009-04-23 14:36:51 +0100
commit3f00129e17fe9443e3ecd50aeac291b7fdc74ec3 (patch)
tree7cd5f2956a967e1e443b8d3df061d1bc2408f93a /modules
parent5b4855d40ea0d95f8d0193de6a5a43c96b311695 (diff)
downloadgdk-pixbuf-3f00129e17fe9443e3ecd50aeac291b7fdc74ec3.tar.gz
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/other/gail/gailbutton.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 01c6778f4..b8ab7cd77 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);