Commit 129c717a authored by Li Yuan's avatar Li Yuan Committed by Li Yuan

Bug #433324. add/remove selectable state depand on if the button can be

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.

svn path=/trunk/; revision=19950
parent a5bddf0b
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.
2008-03-20 Li Yuan <li.yuan@sun.com>
* gailcell.c: (gail_cell_object_finalize):
......
......@@ -861,6 +861,12 @@ 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
atk_state_set_remove_state (state_set, ATK_STATE_SELECTABLE);
return state_set;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment