[gtk+] Fix Selectable state for gailButton
- From: Mike Gorse <mgorse src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Fix Selectable state for gailButton
- Date: Thu, 23 Apr 2009 09:39:22 -0400 (EDT)
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]