http://mail.gnome.org/archives/gnome-accessibility-devel/2011-June/msg00020.html
has some details about this.
The main problem is that the internal button states get fiddled with and
that is not a good idea to do from an AT.
Also update tests to reflect that.
*/
g_signal_emit_by_name (button, "leave");
break;
- case 1:
- /* FIXME: Do not access public member
- button->in_button = TRUE;
- */
- g_signal_emit_by_name (button, "enter");
- /*
- * Simulate a button press event. calling gtk_button_pressed() does
- * not get the job done for a GtkOptionMenu.
- */
- tmp_event.button.type = GDK_BUTTON_PRESS;
- tmp_event.button.window = window;
- tmp_event.button.button = 1;
- tmp_event.button.send_event = TRUE;
- tmp_event.button.time = GDK_CURRENT_TIME;
- tmp_event.button.axes = NULL;
-
- gtk_widget_event (widget, &tmp_event);
- break;
- case 2:
- /* FIXME: Do not access public member
- button->in_button = FALSE;
- */
- g_signal_emit_by_name (button, "leave");
- break;
default:
g_assert_not_reached ();
break;
static gint
gail_button_get_n_actions (AtkAction *action)
{
- return 3;
+ return 1;
}
static const gchar*
*/
return_value = "click";
break;
- case 1:
- /*
- * This action simulates a button press by simulating moving the
- * mouse into the button followed by pressing the left mouse button.
- */
- return_value = "press";
- break;
- case 2:
- /*
- * This action simulates releasing the left mouse button outside the
- * button.
- *
- * To simulate releasing the left mouse button inside the button use
- * the click action.
- */
- return_value = "release";
- break;
default:
return_value = NULL;
break;
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>l
- action 1 name: press
- action 2 name: release
Credits
"toggle button"
parent: unnamed-GailContainer-7
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>r
- action 1 name: press
- action 2 name: release
Close
"push button"
parent: unnamed-GailContainer-7
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>c
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
"table column header"
parent: unnamed-GailTreeView-5
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
unnamed-GailContainerCell-6
"table cell"
parent: unnamed-GailTreeView-5
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
unnamed-GailContainer-10
"filler"
parent: unnamed-GailContainer-0
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>s
- action 1 name: press
- action 2 name: release
Cancel
"push button"
parent: unnamed-GailContainer-10
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>c
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
button2
"push button"
index: 1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
unnamed-GailContainer-0
"filler"
parent: unnamed-GailContainer-1
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>c
- action 1 name: press
- action 2 name: release
Cancel
"push button"
parent: unnamed-GailContainer-0
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>c
- action 1 name: press
- action 2 name: release
Finish
"push button"
parent: unnamed-GailContainer-0
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>f
- action 1 name: press
- action 2 name: release
Go Back
"push button"
parent: unnamed-GailContainer-0
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>b
- action 1 name: press
- action 2 name: release
Continue
"push button"
parent: unnamed-GailContainer-0
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>o
- action 1 name: press
- action 2 name: release
Apply
"push button"
parent: unnamed-GailContainer-0
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>a
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
button3
"radio button"
parent: grid1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
button2
"check box"
parent: grid1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
button1
"toggle button"
parent: grid1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
unnamed-GailContainer-11
"filler"
parent: unnamed-GailContainer-2
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>h
- action 1 name: press
- action 2 name: release
OK
"push button"
parent: unnamed-GailContainer-57
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>o
- action 1 name: press
- action 2 name: release
Cancel
"push button"
parent: unnamed-GailContainer-57
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>c
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
<AtkHyperlinkImpl>
anchors: http://www.gtk.org
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
Lock
"label"
parent: button1
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>y
- action 1 name: press
- action 2 name: release
Tab 2
"page tab"
parent: notebook1
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>n
- action 1 name: press
- action 2 name: release
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
unnamed-GailComboBox-0
"combo box"
parent: button4
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
Sans
"label"
parent: button3
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
button1
"combo box"
parent: grid1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
column 1 description: Column 2
<column 1 header>
Column 2
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
Column 1
"table column header"
parent: tree1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
Column 2
"table column header"
parent: tree1
image description: (null)
<AtkAction>
action 0 name: click
- action 1 name: press
- action 2 name: release
One
"table cell"
parent: tree1