[gtk/a11y/atcontext-realize] gtk-demo: Simplify the run button



commit d2a7ecf72c47eedb489c52c45182cbaca39bef11
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 4 12:54:48 2020 -0500

    gtk-demo: Simplify the run button
    
    Don't create the label manually. It is not necessary,
    and letting the button do it also improves the
    accessibility setup.

 demos/gtk-demo/main.ui | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/demos/gtk-demo/main.ui b/demos/gtk-demo/main.ui
index 9dc7aba86c..60f2d7e0a5 100644
--- a/demos/gtk-demo/main.ui
+++ b/demos/gtk-demo/main.ui
@@ -28,14 +28,7 @@
           <object class="GtkButton">
             <property name="valign">center</property>
             <property name="action-name">win.run</property>
-            <style>
-              <class name="text-button"/>
-            </style>
-            <child>
-              <object class="GtkLabel">
-                <property name="label" translatable="yes">Run</property>
-              </object>
-            </child>
+            <property name="label" translatable="yes">Run</property>
           </object>
         </child>
         <child type="end">


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