[gnome-games] ui: Use CollectionThumbnail in CollectionIconView
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Use CollectionThumbnail in CollectionIconView
- Date: Thu, 16 Jul 2020 14:51:29 +0000 (UTC)
commit e175f7ed9e4f029450df693b983d8315ca823de0
Author: Neville <nevilleantony98 gmail com>
Date: Mon Jun 29 19:14:59 2020 +0530
ui: Use CollectionThumbnail in CollectionIconView
data/ui/collection-icon-view.ui | 9 +--------
src/ui/collection-icon-view.vala | 2 ++
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/data/ui/collection-icon-view.ui b/data/ui/collection-icon-view.ui
index e62a1120..c73cead4 100644
--- a/data/ui/collection-icon-view.ui
+++ b/data/ui/collection-icon-view.ui
@@ -9,15 +9,8 @@
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
- <object class="GtkImage">
+ <object class="GamesCollectionThumbnail" id="thumbnail">
<property name="visible">True</property>
- <property name="icon-name">starred-symbolic</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="pixel-size">64</property>
- <style>
- <class name="favorite-placeholder"/>
- </style>
</object>
</child>
<child>
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index 900352ef..a76af205 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -4,6 +4,8 @@
private class Games.CollectionIconView : Gtk.FlowBoxChild {
[GtkChild]
private Gtk.Label title;
+ [GtkChild]
+ private CollectionThumbnail thumbnail;
private Collection _collection;
public Collection collection {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]