[gnome-games/wip/exalm/views: 8/14] application-window: Handle 'loading-notification' in CollectionView
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/views: 8/14] application-window: Handle 'loading-notification' in CollectionView
- Date: Thu, 4 Oct 2018 16:44:52 +0000 (UTC)
commit 042c0210d549f97c674775117ed3b5077f766204
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Oct 4 19:59:38 2018 +0500
application-window: Handle 'loading-notification' in CollectionView
src/ui/application-window.vala | 4 +++-
src/ui/collection-view.vala | 7 +++++++
2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 59b30dbd..0fc0a521 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -116,7 +116,9 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
if (settings.get_boolean ("window-maximized"))
maximize ();
- loading_notification_binding = bind_property ("loading-notification",
collection_view.collection_box, "loading-notification",
+ loading_notification_binding = bind_property ("loading-notification",
+ collection_view,
+ "loading-notification",
BindingFlags.DEFAULT);
box_fullscreen_binding = bind_property ("is-fullscreen", display_view.display_box,
"is-fullscreen",
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index cc0b3590..33dcdf18 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -44,9 +44,11 @@ private class Games.CollectionView: Gtk.Bin, ApplicationView {
}
}
+ public bool loading_notification { get; set; }
public bool search_mode { get; set; }
public bool is_collection_empty { get; set; }
+ private Binding loading_notification_binding;
private Binding box_search_binding;
private Binding box_empty_collection_binding;
private Binding header_bar_search_binding;
@@ -56,6 +58,11 @@ private class Games.CollectionView: Gtk.Bin, ApplicationView {
collection_header_bar.viewstack = collection_box.viewstack;
is_collection_empty = true;
+ loading_notification_binding = bind_property ("loading-notification",
+ collection_box,
+ "loading-notification",
+ BindingFlags.DEFAULT);
+
box_search_binding = bind_property ("search-mode", collection_box,
"search-mode",
BindingFlags.BIDIRECTIONAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]