[gnome-games/wip/exalm/gtk4: 33/48] ui: Stop using stack child properties and migrate to GtkStackPage
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 33/48] ui: Stop using stack child properties and migrate to GtkStackPage
- Date: Wed, 21 Aug 2019 22:50:00 +0000 (UTC)
commit 27ee1604b826a211f9bd2a07c55e459b32b453fd
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat May 11 11:10:39 2019 +0500
ui: Stop using stack child properties and migrate to GtkStackPage
data/ui/collection-box.ui | 40 +++++++++++++++++++++++-----------------
data/ui/display-box.ui | 6 ------
2 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/data/ui/collection-box.ui b/data/ui/collection-box.ui
index 0da07e78..aa2290c5 100644
--- a/data/ui/collection-box.ui
+++ b/data/ui/collection-box.ui
@@ -31,32 +31,38 @@
<class name="solid-background"/>
</style>
<child>
- <object class="GamesEmptyCollection" id="empty_collection">
- <property name="visible">True</property>
- </object>
- <packing>
+ <object class="GtkStackPage">
<property name="name">empty</property>
- </packing>
+ <property name="child">
+ <object class="GamesEmptyCollection" id="empty_collection">
+ <property name="visible">True</property>
+ </object>
+ </property>
+ </object>
</child>
<child>
- <object class="GamesCollectionIconView" id="collection_view">
- <property name="visible">True</property>
- <signal name="game-activated" handler="on_game_activated"/>
- </object>
- <packing>
+ <object class="GtkStackPage" id="games_page">
<property name="name">games</property>
<property name="title" translatable="yes">Games</property>
- </packing>
+ <property name="child">
+ <object class="GamesCollectionIconView" id="collection_view">
+ <property name="visible">True</property>
+ <signal name="game-activated" handler="on_game_activated"/>
+ </object>
+ </property>
+ </object>
</child>
<child>
- <object class="GamesPlatformsView" id="platform_view">
- <property name="visible">True</property>
- <signal name="game-activated" handler="on_game_activated"/>
- </object>
- <packing>
+ <object class="GtkStackPage">
<property name="name">platform</property>
<property name="title" translatable="yes">Platforms</property>
- </packing>
+ <property name="child">
+ <object class="GamesPlatformsView" id="platform_view">
+ <property name="visible">True</property>
+ <signal name="game-activated" handler="on_game_activated"/>
+ </object>
+ </property>
+ </object>
</child>
</object>
</child>
diff --git a/data/ui/display-box.ui b/data/ui/display-box.ui
index b288071d..9489746e 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -22,9 +22,6 @@
<object class="GamesErrorDisplay" id="error_display">
<property name="visible">True</property>
</object>
- <packing>
- <property name="name">error</property>
- </packing>
</child>
<child>
<object class="GtkOverlay" id="display_overlay">
@@ -48,9 +45,6 @@
</object>
</child>
</object>
- <packing>
- <property name="name">display</property>
- </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]