[gnome-nibbles/arnaudb/wip/gtk4: 38/62] GtkModelButton is gone.



commit 7497b3363afa9cef192f6e63b4020a312d57c57e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Jun 15 19:20:51 2020 +0200

    GtkModelButton is gone.

 data/ui/speed.ui | 2 +-
 src/speed.vala   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/speed.ui b/data/ui/speed.ui
index 8fe6cb5..f3a6fb9 100644
--- a/data/ui/speed.ui
+++ b/data/ui/speed.ui
@@ -116,7 +116,7 @@
               </object>
             </child>
             <child>
-              <object class="GtkModelButton" id="fakes_modelbutton">
+              <object class="GtkCheckButton" id="fakes_button">
                 <property name="hexpand">True</property>
                 <property name="halign">fill</property>
                 <property name="use-underline">True</property>
diff --git a/src/speed.vala b/src/speed.vala
index b8737d4..9dad527 100644
--- a/src/speed.vala
+++ b/src/speed.vala
@@ -24,7 +24,7 @@ private class Speed : Box
 {
     private SimpleAction speed_action;
 
-    [GtkChild] private ModelButton fakes_modelbutton;
+    [GtkChild] private CheckButton fakes_button;
     private bool fakes;
 
     private const GLib.ActionEntry [] players_action_entries =
@@ -46,7 +46,7 @@ private class Speed : Box
     {
         speed_action.set_state (speed);
 
-        fakes_modelbutton.active = fakes;
+        fakes_button.active = fakes;
         this.fakes = fakes;
     }
 
@@ -67,6 +67,6 @@ private class Speed : Box
 
     private void allow_fakes (/* SimpleAction _speed_action, Variant? variant */)
     {
-        fakes = fakes_modelbutton.active;
+        fakes = fakes_button.active;
     }
 }


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