[iagno/arnaudb/wip/gtk4: 21/54] Bug with ModelButton.



commit 8bf0a67ccf3dc9c30901f2121ed2030cd719660f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 14 19:09:27 2020 +0100

    Bug with ModelButton.

 data/ui/new-game-screen.ui | 12 ++++++------
 data/ui/overlayed-list.ui  |  4 ++--
 src/new-game-screen.vala   |  4 ++--
 3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/data/ui/new-game-screen.ui b/data/ui/new-game-screen.ui
index 8806647..9f999da 100644
--- a/data/ui/new-game-screen.ui
+++ b/data/ui/new-game-screen.ui
@@ -41,27 +41,27 @@
         <property name="homogeneous">True</property>
         <property name="spacing">6</property>
         <child>
-          <object class="GtkModelButton" id="modelbutton_one">
+          <object class="GtkButton" id="modelbutton_one">
             <property name="name">radio-one</property>
             <style>
               <class name="radio-like-toggle"/>
               <class name="flat"/>
             </style>
             <property name="focus-on-click">False</property>
-            <property name="iconic">True</property>
-            <property name="centered">True</property>
+<!--            <property name="iconic">True</property>-->
+<!--            <property name="centered">True</property>-->
           </object>
         </child>
         <child>
-          <object class="GtkModelButton" id="modelbutton_two">
+          <object class="GtkButton" id="modelbutton_two">
             <property name="name">radio-two</property>
             <style>
               <class name="radio-like-toggle"/>
               <class name="flat"/>
             </style>
             <property name="focus-on-click">False</property>
-            <property name="iconic">True</property>
-            <property name="centered">True</property>
+<!--            <property name="iconic">True</property>-->
+<!--            <property name="centered">True</property>-->
           </object>
         </child>
       </object>
diff --git a/data/ui/overlayed-list.ui b/data/ui/overlayed-list.ui
index 4076538..24b8532 100644
--- a/data/ui/overlayed-list.ui
+++ b/data/ui/overlayed-list.ui
@@ -48,7 +48,7 @@
           <class name="linked-circular"/>
         </style>
         <child>
-          <object class="GtkModelButton" id="leave_edit_mode_button">
+          <object class="GtkButton" id="leave_edit_mode_button">
             <property name="hexpand">True</property>
             <property name="centered">True</property>
             <property name="iconic">True</property>
@@ -59,7 +59,7 @@
           </object>
         </child>
         <child>
-          <object class="GtkModelButton" id="enter_edit_mode_button">
+          <object class="GtkButton" id="enter_edit_mode_button">
             <property name="hexpand">True</property>
             <property name="centered">True</property>
             <property name="iconic">True</property>
diff --git a/src/new-game-screen.vala b/src/new-game-screen.vala
index 3b00434..e98bcb8 100644
--- a/src/new-game-screen.vala
+++ b/src/new-game-screen.vala
@@ -45,8 +45,8 @@ private class NewGameScreen : Box, AdaptativeWidget
                             string modelbutton_two_label,
                             string modelbutton_two_action)
     {
-        modelbutton_one.text = modelbutton_one_label;
-        modelbutton_two.text = modelbutton_two_label;
+        modelbutton_one.label = modelbutton_one_label;
+        modelbutton_two.label = modelbutton_two_label;
 
         modelbutton_one.set_detailed_action_name (modelbutton_one_action);
         modelbutton_two.set_detailed_action_name (modelbutton_two_action);


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