[iagno/arnaudb/wip/gtk4: 34/54] Use ToggleButton instead of ModelButton.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno/arnaudb/wip/gtk4: 34/54] Use ToggleButton instead of ModelButton.
- Date: Thu, 30 Apr 2020 13:20:17 +0000 (UTC)
commit 8146588c908a6bee5f1d50c595f2d102c63a9b25
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Feb 19 04:32:08 2020 +0100
Use ToggleButton instead of ModelButton.
data/ui/new-game-screen.ui | 4 ++--
src/new-game-screen.vala | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/new-game-screen.ui b/data/ui/new-game-screen.ui
index d08fa95..6192a2d 100644
--- a/data/ui/new-game-screen.ui
+++ b/data/ui/new-game-screen.ui
@@ -41,7 +41,7 @@
<property name="homogeneous">True</property>
<property name="spacing">6</property>
<child>
- <object class="GtkButton" id="modelbutton_one">
+ <object class="GtkToggleButton" id="modelbutton_one">
<property name="name">radio-one</property>
<style>
<class name="radio-like-toggle"/>
@@ -53,7 +53,7 @@
</object>
</child>
<child>
- <object class="GtkButton" id="modelbutton_two">
+ <object class="GtkToggleButton" id="modelbutton_two">
<property name="name">radio-two</property>
<style>
<class name="radio-like-toggle"/>
diff --git a/src/new-game-screen.vala b/src/new-game-screen.vala
index b8034af..0ec5bce 100644
--- a/src/new-game-screen.vala
+++ b/src/new-game-screen.vala
@@ -23,8 +23,8 @@ using Gtk;
[GtkTemplate (ui = "/org/gnome/Reversi/ui/new-game-screen.ui")]
private class NewGameScreen : Box, AdaptativeWidget
{
- [GtkChild] private ModelButton modelbutton_one;
- [GtkChild] private ModelButton modelbutton_two;
+ [GtkChild] private ToggleButton modelbutton_one;
+ [GtkChild] private ToggleButton modelbutton_two;
[GtkChild] private Gtk.MenuButton menubutton_one;
[GtkChild] private Gtk.MenuButton menubutton_two;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]