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.
This commit is contained in:
@ -889,9 +889,7 @@ gail_button_ref_state_set (AtkObject *obj)
|
|||||||
if (GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE)
|
if (GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE)
|
||||||
atk_state_set_add_state (state_set, ATK_STATE_ARMED);
|
atk_state_set_add_state (state_set, ATK_STATE_ARMED);
|
||||||
|
|
||||||
if (GTK_WIDGET_CAN_FOCUS(widget))
|
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);
|
atk_state_set_remove_state (state_set, ATK_STATE_SELECTABLE);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user