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



commit 3d84fc15714fca453ac38148df921c76ca0a22bc
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 bfa30dfd..8b388430 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]