[gnome-games/wip/exalm/statuspage: 2/6] collection-empty: Replace with HdyStatusPage
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/statuspage: 2/6] collection-empty: Replace with HdyStatusPage
- Date: Mon, 28 Dec 2020 22:17:07 +0000 (UTC)
commit 42a11f32a1855713503f4d33ae91636eca3424c8
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Dec 29 02:45:45 2020 +0500
collection-empty: Replace with HdyStatusPage
src/meson.build | 1 -
src/org.gnome.Games.gresource.xml | 1 -
src/ui/collection-empty.ui | 48 ---------------------------------------
src/ui/collection-empty.vala | 5 ----
src/ui/collections-page.ui | 9 ++++++--
src/ui/collections-page.vala | 2 +-
6 files changed, 8 insertions(+), 58 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 0cffba16..004b4864 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -133,7 +133,6 @@ vala_sources = [
'ui/application-window.vala',
'ui/checkmark-item.vala',
'ui/collection-action-window.vala',
- 'ui/collection-empty.vala',
'ui/collection-icon-view.vala',
'ui/collection-list-item.vala',
'ui/collection-thumbnail.vala',
diff --git a/src/org.gnome.Games.gresource.xml b/src/org.gnome.Games.gresource.xml
index 5c5d9828..9ac98fe3 100644
--- a/src/org.gnome.Games.gresource.xml
+++ b/src/org.gnome.Games.gresource.xml
@@ -40,7 +40,6 @@
<file preprocess="xml-stripblanks">ui/application-window.ui</file>
<file preprocess="xml-stripblanks">ui/checkmark-item.ui</file>
<file preprocess="xml-stripblanks">ui/collection-action-window.ui</file>
- <file preprocess="xml-stripblanks">ui/collection-empty.ui</file>
<file preprocess="xml-stripblanks">ui/collection-icon-view.ui</file>
<file preprocess="xml-stripblanks">ui/collection-list-item.ui</file>
<file preprocess="xml-stripblanks">ui/collection-thumbnail.ui</file>
diff --git a/src/ui/collections-page.ui b/src/ui/collections-page.ui
index 4ae37f23..257f0383 100644
--- a/src/ui/collections-page.ui
+++ b/src/ui/collections-page.ui
@@ -36,11 +36,16 @@
</object>
</child>
<child>
- <object class="GamesCollectionEmpty" id="collection_empty_subpage"/>
+ <object class="HdyStatusPage" id="collection_empty_subpage">
+ <property name="visible">True</property>
+ <property name="icon-name">folder-symbolic</property>
+ <property name="title" translatable="yes">This collection is empty</property>
+ <property name="description" translatable="yes">Add some games to this collection to see
them here.</property>
+ </object>
</child>
</object>
</child>
</object>
</child>
</template>
-</interface>
\ No newline at end of file
+</interface>
diff --git a/src/ui/collections-page.vala b/src/ui/collections-page.vala
index b11a1b5c..a43a0837 100644
--- a/src/ui/collections-page.vala
+++ b/src/ui/collections-page.vala
@@ -14,7 +14,7 @@ private class Games.CollectionsPage : Gtk.Bin {
[GtkChild]
private GamesPage collections_subpage;
[GtkChild]
- private CollectionEmpty collection_empty_subpage;
+ private Hdy.StatusPage collection_empty_subpage;
private UserCollection[]? last_removed_collections;
private CollectionManager collection_manager;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]