summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-19 14:11:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-19 18:07:06 +0100
commitbd986f95342ebf9c98ce87760c13d1bbafb26a7d (patch)
treef9eee62b9d1cf08524c06662fb573a0d437a49f1 /demos
parent1a1373779f87ce928a45a9371512d207445f615f (diff)
downloadgtk+-bd986f95342ebf9c98ce87760c13d1bbafb26a7d.tar.gz
gtkbuilder: add accessibility role declaration
This allows to override the role declared to the atk stack. For instance, <accessibility> <role type="static"/> </accessibility> allows to tell the accessibility stack that a label is just a message in a message box. Fixes #109
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/listbox.ui3
-rw-r--r--demos/widget-factory/widget-factory.ui6
2 files changed, 9 insertions, 0 deletions
diff --git a/demos/gtk-demo/listbox.ui b/demos/gtk-demo/listbox.ui
index 76b49b285d..606a520224 100644
--- a/demos/gtk-demo/listbox.ui
+++ b/demos/gtk-demo/listbox.ui
@@ -98,6 +98,9 @@
<property name="yalign">0</property>
<property name="label" translatable="0">Message</property>
<property name="wrap">1</property>
+ <accessibility>
+ <role type="static"/>
+ </accessibility>
</object>
<packing>
<property name="left-attach">1</property>
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 8474d08d76..f8ab748010 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3274,6 +3274,9 @@ bad things might happen.</property>
<object class="GtkLabel">
<property name="margin">20</property>
<property name="label" translatable="yes">To free the princess, you have to slay the dragon.</property>
+ <accessibility>
+ <role type="static"/>
+ </accessibility>
</object>
</child>
</object>
@@ -3551,6 +3554,9 @@ bad things might happen.</property>
<child>
<object class="GtkLabel" id="notebook_info_label">
<property name="label">No updates at this time</property>
+ <accessibility>
+ <role type="static"/>
+ </accessibility>
</object>
</child>
</object>