[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 11/24] playlists: Add is_smart property to Playlist



commit e0a34065444c3f4719f85c446581b3b69a3438ca
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Nov 28 18:31:55 2016 +0100

    playlists: Add is_smart property to Playlist
    
    So in the future we'll be able to know if the playlist
    is smart or not without having to ask any other classes
    besides the playlist itself.

 gnomemusic/playlists.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 7f323f8a..4c207b48 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -41,6 +41,7 @@ logger = logging.getLogger(__name__)
 class Playlist(GObject.GObject):
     """ Base class of all playlists """
 
+    is_smart = GObject.Property(type=bool, default=False)
     pl_id = GObject.Property(type=str, default=None)
     query = GObject.Property(type=str, default=None)
     tag_text = GObject.Property(type=str, default=None)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]