[gnome-photos/wip/rishi/collection: 9/23] source: Offer symbolic icons, if possible
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 9/23] source: Offer symbolic icons, if possible
- Date: Tue, 16 Jan 2018 18:27:47 +0000 (UTC)
commit 04313e74ea0fb6bf16cfb5500041bc128ec70892
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jan 12 07:52:14 2018 +0100
source: Offer symbolic icons, if possible
A subsequent commit will add support for GMount-backed Sources, which
need to be represented by symbolic icons in the UI.
https://bugzilla.gnome.org/show_bug.cgi?id=751212
src/photos-source.c | 9 +++++++++
src/photos-source.h | 2 ++
2 files changed, 11 insertions(+)
---
diff --git a/src/photos-source.c b/src/photos-source.c
index 17af48a6..a938e7e7 100644
--- a/src/photos-source.c
+++ b/src/photos-source.c
@@ -37,6 +37,7 @@ struct _PhotosSource
{
GObject parent_instance;
GIcon *icon;
+ GIcon *symbolic_icon;
GoaObject *object;
gboolean builtin;
gchar *id;
@@ -112,6 +113,7 @@ photos_source_dispose (GObject *object)
g_clear_object (&self->icon);
g_clear_object (&self->object);
+ g_clear_object (&self->symbolic_icon);
G_OBJECT_CLASS (photos_source_parent_class)->dispose (object);
}
@@ -323,3 +325,10 @@ photos_source_get_icon (PhotosSource *self)
{
return self->icon;
}
+
+
+GIcon *
+photos_source_get_symbolic_icon (PhotosSource *self)
+{
+ return self->symbolic_icon;
+}
diff --git a/src/photos-source.h b/src/photos-source.h
index b037d496..dfbcfca9 100644
--- a/src/photos-source.h
+++ b/src/photos-source.h
@@ -46,6 +46,8 @@ GoaObject *photos_source_get_goa_object (PhotosSource *self);
GIcon *photos_source_get_icon (PhotosSource *self);
+GIcon *photos_source_get_symbolic_icon (PhotosSource *self);
+
G_END_DECLS
#endif /* PHOTOS_SOURCE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]