[gnome-sudoku/arnaudb/wip/gtk4: 42/47] RadioButton is gone.




commit e975e013524e60956871af77c2014839729922aa
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Sep 2 17:37:34 2020 +0200

    RadioButton is gone.
    
    TODO test after vapi update.

 data/print-dialog.ui  | 8 ++++----
 src/print-dialog.vala | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/data/print-dialog.ui b/data/print-dialog.ui
index dfe7a7f..cd0d586 100644
--- a/data/print-dialog.ui
+++ b/data/print-dialog.ui
@@ -153,7 +153,7 @@
                 <property name="halign">center</property>
                 <property name="valign">start</property>
                 <child>
-                  <object class="GtkRadioButton" id="easy_radio_button">
+                  <object class="GtkCheckButton" id="easy_radio_button">
                     <property name="label" translatable="yes">_Easy</property>
                     <property name="visible">True</property>
                     <property name="can-focus">True</property>
@@ -168,7 +168,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkRadioButton" id="medium_radio_button">
+                  <object class="GtkCheckButton" id="medium_radio_button">
                     <property name="label" translatable="yes">_Medium</property>
                     <property name="visible">True</property>
                     <property name="can-focus">True</property>
@@ -184,7 +184,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkRadioButton" id="hard_radio_button">
+                  <object class="GtkCheckButton" id="hard_radio_button">
                     <property name="label" translatable="yes">_Hard</property>
                     <property name="visible">True</property>
                     <property name="can-focus">True</property>
@@ -200,7 +200,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkRadioButton" id="very_hard_radio_button">
+                  <object class="GtkCheckButton" id="very_hard_radio_button">
                     <property name="label" translatable="yes">_Very Hard</property>
                     <property name="visible">True</property>
                     <property name="can-focus">True</property>
diff --git a/src/print-dialog.vala b/src/print-dialog.vala
index 509c6b6..b476094 100644
--- a/src/print-dialog.vala
+++ b/src/print-dialog.vala
@@ -31,10 +31,10 @@ public class PrintDialog : Dialog
     [GtkChild] private Grid print_grid;
     [GtkChild] private SpinButton n_sudokus_button;
     [GtkChild] private SpinButton n_sudokus_per_page_button;
-    [GtkChild] private RadioButton easy_radio_button;
-    [GtkChild] private RadioButton medium_radio_button;
-    [GtkChild] private RadioButton hard_radio_button;
-    [GtkChild] private RadioButton very_hard_radio_button;
+    [GtkChild] private CheckButton easy_radio_button;
+    [GtkChild] private CheckButton medium_radio_button;
+    [GtkChild] private CheckButton hard_radio_button;
+    [GtkChild] private CheckButton very_hard_radio_button;
 
     private Revealer revealer;
     private Spinner spinner;


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