[gnome-games/wip/exalm/gtk4: 38/38] 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: 38/38] ui: Stop using stack child properties and migrate to GtkStackPage
- Date: Mon, 11 Mar 2019 18:14:38 +0000 (UTC)
commit f5ec934d0153c1be5fed2f0df80ace7775f5278f
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Feb 17 15:34:50 2019 +0500
ui: Stop using stack child properties and migrate to GtkStackPage
data/ui/collection-box.ui | 44 ++++++++++++++++++++++++++------------------
data/ui/display-box.ui | 6 ------
2 files changed, 26 insertions(+), 24 deletions(-)
---
diff --git a/data/ui/collection-box.ui b/data/ui/collection-box.ui
index 420e1ba2..3dd01194 100644
--- a/data/ui/collection-box.ui
+++ b/data/ui/collection-box.ui
@@ -22,37 +22,45 @@
<property name="transition-type">crossfade</property>
<signal name="notify::visible-child" handler="on_visible_child_changed"/>
<child>
- <object class="GamesEmptyCollection" id="empty_collection"/>
- <packing>
+ <object class="GtkStackPage">
<property name="name">empty</property>
- </packing>
+ <property name="child">
+ <object class="GamesEmptyCollection" id="empty_collection"/>
+ </property>
+ </object>
</child>
<child>
- <object class="GamesCollectionIconView" id="collection_view">
- <signal name="game-activated" handler="on_game_activated"/>
- </object>
- <packing>
+ <object class="GtkStackPage">
<property name="name">games</property>
<property name="title" translatable="yes">Games</property>
- </packing>
+ <property name="child">
+ <object class="GamesCollectionIconView" id="collection_view">
+ <signal name="game-activated" handler="on_game_activated"/>
+ </object>
+ </property>
+ </object>
</child>
<child>
- <object class="GamesDevelopersView" id="developer_view">
- <signal name="game-activated" handler="on_game_activated"/>
- </object>
- <packing>
+ <object class="GtkStackPage">
<property name="name">developer</property>
<property name="title" translatable="yes">Developers</property>
- </packing>
+ <property name="child">
+ <object class="GamesDevelopersView" id="developer_view">
+ <signal name="game-activated" handler="on_game_activated"/>
+ </object>
+ </property>
+ </object>
</child>
<child>
- <object class="GamesPlatformsView" id="platform_view">
- <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">
+ <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 47827150..6e33a5e3 100644
--- a/data/ui/display-box.ui
+++ b/data/ui/display-box.ui
@@ -14,17 +14,11 @@
<object class="GtkStack" id="stack">
<child>
<object class="GamesErrorDisplay" id="error_display"/>
- <packing>
- <property name="name">error</property>
- </packing>
</child>
<child>
<object class="GtkFrame" id="display_bin">
<property name="shadow-type">none</property>
</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]