Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
2d655446
Commit
2d655446
authored
Jul 01, 2011
by
Matthias Clasen
Browse files
Add a test for menus
parent
896769df
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/a11y/menus.txt
0 → 100644
View file @
2d655446
window1
"frame"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gail
<AtkComponent>
layer: window
alpha: 1
menubar1
"menu bar"
parent: window1
index: 0
state: enabled sensitive showing visible
toolkit: gail
<AtkComponent>
layer: widget
alpha: 1
<AtkSelection>
menuitem1
"menu"
parent: menubar1
index: 0
name: File
state: enabled selectable sensitive showing visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>f;<Alt>f;
<AtkSelection>
imagemenuitem1
"menu item"
parent: menuitem1
index: 0
name: New
state: enabled selectable sensitive visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 keybinding: n;<Alt>f:n;
imagemenuitem2
"menu item"
parent: menuitem1
index: 1
name: bla
state: enabled selectable sensitive visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
separatormenuitem1
"separator"
parent: menuitem1
index: 2
state: enabled selectable sensitive visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
menuitem3
"check menu item"
parent: menuitem1
index: 3
name: check item
state: enabled selectable sensitive visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
menuitem2
"menu"
parent: menubar1
index: 1
name: Edit
state: enabled selectable sensitive showing visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 keybinding: <Alt>e;<Alt>e;
<AtkSelection>
menuitem4
"radio menu item"
parent: menuitem2
index: 0
name: radio1
member-of: menuitem5
menuitem4
state: enabled selectable sensitive visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
menuitem5
"radio menu item"
parent: menuitem2
index: 1
name: radio2
member-of: menuitem5
menuitem4
state: enabled selectable sensitive visible
toolkit: gail
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
tests/a11y/menus.ui
0 → 100644
View file @
2d655446
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkImage"
id=
"image1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"stock"
>
gtk-go-up
</property>
<property
name=
"icon-size"
>
5
</property>
</object>
<object
class=
"GtkWindow"
id=
"window1"
>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkMenuBar"
id=
"menubar1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkMenuItem"
id=
"menuitem1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
_File
</property>
<property
name=
"use_underline"
>
True
</property>
<child
type=
"submenu"
>
<object
class=
"GtkMenu"
id=
"menu1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkImageMenuItem"
id=
"imagemenuitem1"
>
<property
name=
"label"
>
gtk-new
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkImageMenuItem"
id=
"imagemenuitem2"
>
<property
name=
"label"
translatable=
"yes"
>
bla
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"image"
>
image1
</property>
<property
name=
"use_stock"
>
False
</property>
</object>
</child>
<child>
<object
class=
"GtkSeparatorMenuItem"
id=
"separatormenuitem1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
</object>
</child>
<child>
<object
class=
"GtkCheckMenuItem"
id=
"menuitem3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
check item
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"menuitem2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
_Edit
</property>
<property
name=
"use_underline"
>
True
</property>
<child
type=
"submenu"
>
<object
class=
"GtkMenu"
id=
"menu2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkRadioMenuItem"
id=
"menuitem4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
radio1
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"draw_as_radio"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkRadioMenuItem"
id=
"menuitem5"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
radio2
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"draw_as_radio"
>
True
</property>
<property
name=
"group"
>
menuitem4
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment