[gnome-music/wip/jfelder/smartplaylists-ui-v2: 7/12] playlist: Add an icon_name property
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/smartplaylists-ui-v2: 7/12] playlist: Add an icon_name property
- Date: Wed, 22 Jan 2020 00:01:09 +0000 (UTC)
commit 0aa386437f2b40382707f16c8c8938a92c878407
Author: Jean Felder <jfelder src gnome org>
Date: Thu Sep 12 22:44:00 2019 +0200
playlist: Add an icon_name property
gnomemusic/grilowrappers/grltrackerplaylists.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gnomemusic/grilowrappers/grltrackerplaylists.py b/gnomemusic/grilowrappers/grltrackerplaylists.py
index a99a3da5..bc581705 100644
--- a/gnomemusic/grilowrappers/grltrackerplaylists.py
+++ b/gnomemusic/grilowrappers/grltrackerplaylists.py
@@ -709,6 +709,7 @@ class SmartPlaylist(Playlist):
"""Base class for smart playlists"""
color = GObject.Property(type=Gdk.RGBA)
+ icon_name = GObject.Property(type=str, default=None)
def __repr__(self):
return "<SmartPlaylist>"
@@ -759,6 +760,7 @@ class MostPlayed(SmartPlaylist):
# TRANSLATORS: this is a playlist name
self._title = _("Most Played")
self.props.color = Gdk.RGBA(0.96, 0.47, 0.0)
+ self.props.icon_name = "audio-speakers-symbolic"
self.props.query = """
SELECT
rdf:type(?song)
@@ -797,6 +799,7 @@ class NeverPlayed(SmartPlaylist):
# TRANSLATORS: this is a playlist name
self._title = _("Never Played")
self.props.color = Gdk.RGBA(0.45, 0.62, 0.81)
+ self.props.icon_name = "dialog-question-symbolic"
self.props.query = """
SELECT
rdf:type(?song)
@@ -834,6 +837,7 @@ class RecentlyPlayed(SmartPlaylist):
# TRANSLATORS: this is a playlist name
self._title = _("Recently Played")
self.props.color = Gdk.RGBA(0.68, 0.50, 0.66)
+ self.props.icon_name = "document-open-recent-symbolic"
sparql_midnight_dateTime_format = "%Y-%m-%dT00:00:00Z"
days_difference = 7
@@ -881,6 +885,7 @@ class RecentlyAdded(SmartPlaylist):
# TRANSLATORS: this is a playlist name
self._title = _("Recently Added")
self.props.color = Gdk.RGBA(0.31, 0.60, 0.02)
+ self.props.icon_name = "list-add-symbolic"
sparql_midnight_dateTime_format = "%Y-%m-%dT00:00:00Z"
days_difference = 7
@@ -927,6 +932,7 @@ class Favorites(SmartPlaylist):
# TRANSLATORS: this is a playlist name
self._title = _("Favorite Songs")
self.props.color = Gdk.RGBA(0.93, 0.83, 0.0)
+ self.props.icon_name = "starred-symbolic"
self.props.query = """
SELECT
rdf:type(?song)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]