[gtk/wip/baedert/for-master: 25/29] iconbrowser: Stop using radio buttons




commit 1125a4379cf2e5e01aecae0499d8ab9a58642e15
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 30 21:51:20 2020 -0400

    iconbrowser: Stop using radio buttons
    
    Replace them with grouped toggle buttons.

 demos/icon-browser/window.ui | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/demos/icon-browser/window.ui b/demos/icon-browser/window.ui
index 14cb63e1ba..2c80b254a7 100644
--- a/demos/icon-browser/window.ui
+++ b/demos/icon-browser/window.ui
@@ -27,12 +27,13 @@
               <class name="linked"/>
             </style>
             <child>
-              <object class="GtkRadioButton" id="normal_radio">
+              <object class="GtkToggleButton" id="normal_radio">
                 <property name="label" translatable="yes">Normal</property>
+                <property name="active">1</property>
               </object>
             </child>
             <child>
-              <object class="GtkRadioButton" id="symbolic_radio">
+              <object class="GtkToggleButton" id="symbolic_radio">
                 <property name="label" translatable="yes">Symbolic</property>
                 <property name="group">normal_radio</property>
                 <signal name="notify::active" handler="symbolic_toggled" swapped="yes" after="yes"/>


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