[gtk/wip/exalm/buttons: 2/4] widget-factory: Use standard API for the record button




commit 302c3c884388b968051c9f34c5dd68f1abe00d0d
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Aug 30 17:38:30 2021 +0500

    widget-factory: Use standard API for the record button
    
    Now that it's possible, we can stop constructing it manually.

 demos/widget-factory/widget-factory.ui | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 1f2258d06d..ac0c274a7e 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -2246,29 +2246,12 @@ microphone-sensitivity-medium-symbolic</property>
                                 <child>
                                   <object class="GtkToggleButton" id="record_button">
                                     <property name="halign">center</property>
+                                    <property name="icon-name">media-record-symbolic</property>
+                                    <property name="label">Record</property>
                                     <signal name="toggled" handler="on_record_button_toggled"/>
                                     <style>
-                                      <class name="text-button"/>
-                                      <class name="image-button"/>
                                       <class name="destructive-action"/>
                                     </style>
-                                    <child>
-                                      <object class="GtkBox">
-                                        <property name="spacing">6</property>
-                                        <child>
-                                          <object class="GtkImage">
-                                            <property name="valign">baseline</property>
-                                            <property name="icon-name">media-record-symbolic</property>
-                                          </object>
-                                        </child>
-                                        <child>
-                                          <object class="GtkLabel">
-                                            <property name="valign">baseline</property>
-                                            <property name="label">Record</property>
-                                          </object>
-                                        </child>
-                                      </object>
-                                    </child>
                                   </object>
                                 </child>
                                 <child>


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