[gtk/a11y/atcontext-realize] gtk-demo: Set an accessible role



commit bb24b350ac1a308310fde5c6c489b23de9d36a49
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 4 11:36:52 2020 -0500

    gtk-demo: Set an accessible role
    
    Set an accessible role for the toolbar in the
    builder demo. This tests accessibility support
    in GtkBuilder.

 demos/gtk-demo/demo.ui | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/demo.ui b/demos/gtk-demo/demo.ui
index 22eccc535e..dcbef3d04f 100644
--- a/demos/gtk-demo/demo.ui
+++ b/demos/gtk-demo/demo.ui
@@ -100,9 +100,8 @@
         </child>
         <child>
           <object class="GtkBox" id="toolbar1">
-            <style>
-              <class name="toolbar"/>
-            </style>
+            <property name="accessible-role">toolbar</property>
+            <property name="css-classes">toolbar</property>
             <child>
               <object class="GtkButton">
                 <property name="label" translatable="yes">New</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]