[gnome-games/wip/exalm/statuspage: 1/6] empty-collection: Replace with HdyStatusPage
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/statuspage: 1/6] empty-collection: Replace with HdyStatusPage
- Date: Mon, 28 Dec 2020 22:17:07 +0000 (UTC)
commit 10a6ed90ccea3dd554f7deb390e510cfcc895341
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Dec 29 02:41:46 2020 +0500
empty-collection: Replace with HdyStatusPage
src/meson.build | 1 -
src/org.gnome.Games.gresource.xml | 1 -
src/ui/collection-view.ui | 4 +++-
src/ui/collection-view.vala | 3 ++-
src/ui/empty-collection.ui | 47 ---------------------------------------
src/ui/empty-collection.vala | 11 ---------
6 files changed, 5 insertions(+), 62 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 8d833ce0..0cffba16 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -142,7 +142,6 @@ vala_sources = [
'ui/collections-page.vala',
'ui/display-bin.vala',
'ui/display-view.vala',
- 'ui/empty-collection.vala',
'ui/empty-search.vala',
'ui/error-display.vala',
'ui/error-info-bar.vala',
diff --git a/src/org.gnome.Games.gresource.xml b/src/org.gnome.Games.gresource.xml
index 6b91e83f..5c5d9828 100644
--- a/src/org.gnome.Games.gresource.xml
+++ b/src/org.gnome.Games.gresource.xml
@@ -48,7 +48,6 @@
<file preprocess="xml-stripblanks">ui/collections-main-page.ui</file>
<file preprocess="xml-stripblanks">ui/collections-page.ui</file>
<file preprocess="xml-stripblanks">ui/display-view.ui</file>
- <file preprocess="xml-stripblanks">ui/empty-collection.ui</file>
<file preprocess="xml-stripblanks">ui/empty-search.ui</file>
<file preprocess="xml-stripblanks">ui/error-display.ui</file>
<file preprocess="xml-stripblanks">ui/error-info-bar.ui</file>
diff --git a/src/ui/collection-view.ui b/src/ui/collection-view.ui
index 686f4fb2..719cb5f2 100644
--- a/src/ui/collection-view.ui
+++ b/src/ui/collection-view.ui
@@ -423,8 +423,10 @@
</object>
</child>
<child>
- <object class="GamesEmptyCollection" id="empty_collection">
+ <object class="HdyStatusPage" id="empty_collection">
<property name="visible">True</property>
+ <property name="title" translatable="yes" comments="Translators: This is displayed when the
games library is empty.">No games found</property>
+ <property name="description" translatable="yes" comments="Translators: This is displayed
when the games library is empty.">Install games or add directories containing games to your search
sources.</property>
</object>
<packing>
<property name="name">empty</property>
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index 2af67499..08a26ae4 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -25,7 +25,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
[GtkChild]
private SearchBar search_bar;
[GtkChild]
- private EmptyCollection empty_collection;
+ private Hdy.StatusPage empty_collection;
[GtkChild]
private EmptySearch empty_search;
[GtkChild]
@@ -164,6 +164,7 @@ private class Games.CollectionView : Gtk.Box, UiView {
var icon_name = Config.APPLICATION_ID + "-symbolic";
viewstack.child_set (games_page, "icon-name", icon_name);
+ empty_collection.icon_name = icon_name;
swipe_group.add_swipeable (platforms_page.get_leaflet ());
collections_swipe_group.add_swipeable (collections_page.get_collections_deck ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]