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



commit 1d166cdeb270a822471d9d13880802378e3af9db
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 496476e4..fc4432a1 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -42,6 +42,7 @@ class Playlist(GObject.Object):
     """ Base class of all playlists """
 
     id_ = GObject.Property(type=str, default=None)
+    is_smart = GObject.Property(type=bool, default=False)
     query = GObject.Property(type=str, default=None)
     tag_text = GObject.Property(type=str, default=None)
     title = GObject.Property(type=str, default=None)


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