[lightsoff/arnaudb/wip/gtk4: 10/28] Adapt old Container API.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/arnaudb/wip/gtk4: 10/28] Adapt old Container API.
- Date: Sat, 28 Nov 2020 14:29:47 +0000 (UTC)
commit 08aef2267a01749c455e7053cab2a919719a6ead
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Nov 27 15:37:03 2020 +0100
Adapt old Container API.
src/game-view-gtk.vala | 4 ++--
src/lightsoff-window.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/game-view-gtk.vala b/src/game-view-gtk.vala
index 18d5c10..d6ca93f 100644
--- a/src/game-view-gtk.vala
+++ b/src/game-view-gtk.vala
@@ -38,7 +38,7 @@ private class GtkGameView : Stack, GameView
assert_not_reached ();
}
- add ((Widget)new_board);
+ add_child ((Widget)new_board);
set_visible_child ((Widget)new_board);
if (Gtk.Settings.get_for_screen (((Widget)new_board).get_screen ()).gtk_enable_animations)
handlers.push_tail(notify["transition-running"].connect(() => board_replaced
((BoardViewGtk)old_board, (BoardViewGtk)new_board)));
@@ -82,7 +82,7 @@ private class GtkGameView : Stack, GameView
{
board_view = (BoardViewGtk)create_board_view (level);
board_view.sensitive = true;
- add (board_view);
+ add_child (board_view);
}
internal BoardView create_board_view (int level)
diff --git a/src/lightsoff-window.vala b/src/lightsoff-window.vala
index b0b2348..7b9d3e4 100644
--- a/src/lightsoff-window.vala
+++ b/src/lightsoff-window.vala
@@ -54,7 +54,7 @@ private class LightsoffWindow : ManagedWindow
gtk_game_view.hexpand = true;
gtk_game_view.vexpand = true;
- aspect_frame.add (gtk_game_view);
+ aspect_frame.set_child (gtk_game_view);
game_view = gtk_game_view;
var provider = new Gtk.CssProvider ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]