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



commit b4b2583403adc71fdcd40941bad4a0ba944e45e0
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 6a5260d3..a88b60d4 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -41,6 +41,7 @@ logger = logging.getLogger(__name__)
 class Playlist(GObject.Object):
     """ 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]