[gnome-tetravex/arnaudb/wip/gtk4: 57/60] Adapt to Container disparition.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex/arnaudb/wip/gtk4: 57/60] Adapt to Container disparition.
- Date: Tue, 4 Aug 2020 14:23:43 +0000 (UTC)
commit 81ec2e4f475c22f3ef23aab5705a2ba3277b9e66
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Aug 4 16:03:30 2020 +0200
Adapt to Container disparition.
src/gnome-tetravex.vala | 12 ++++++------
src/score-dialog.vala | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index a25b8d2..455750e 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -350,8 +350,8 @@ private class Tetravex : Gtk.Application
Box undo_redo_box = new Box (Orientation.HORIZONTAL, /* spacing */ 0);
undo_redo_box.get_style_context ().add_class ("linked");
- undo_redo_box.add (undo_button);
- undo_redo_box.add (redo_button);
+ undo_redo_box.append (undo_button);
+ undo_redo_box.append (redo_button);
undo_redo_box.show ();
if (can_restore && !restore_on_start)
@@ -368,7 +368,7 @@ private class Tetravex : Gtk.Application
restore_button.valign = Align.CENTER;
restore_button.show ();
- restore_stack.add (restore_button);
+ restore_button.insert_before (restore_stack, /* insert last */ null);
restore_stack.set_visible_child (restore_button);
restore_stack.visible = true;
headerbar.pack_start (restore_stack);
@@ -390,7 +390,7 @@ private class Tetravex : Gtk.Application
settings.bind ("theme", view, "theme-id", SettingsBindFlags.GET | SettingsBindFlags.NO_SENSITIVITY);
Overlay overlay = new Overlay ();
- overlay.add (view);
+ overlay.set_child (view);
overlay.show ();
score_overlay = new ScoreOverlay ();
@@ -468,10 +468,10 @@ private class Tetravex : Gtk.Application
clock_box = new Box (Orientation.HORIZONTAL, /* spacing */ 8);
Image image = new Image.from_icon_name ("preferences-system-time-symbolic");
image.show ();
- clock_box.add (image);
+ clock_box.append (image);
clock_label = new Label ("");
clock_label.show ();
- clock_box.add (clock_label);
+ clock_box.append (clock_label);
clock_box.halign = Align.CENTER;
clock_box.valign = Align.BASELINE;
clock_box.set_margin_top (20);
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index 8aa8738..f2ef72f 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -59,7 +59,7 @@ private class ScoreDialog : Dialog
scroll.show ();
Box content_area = get_content_area ();
- content_area.add (scroll);
+ content_area.append (scroll);
score_model = new Gtk.ListStore (3, typeof (string), typeof (string), typeof (int));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]