[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 4/20] playlists: Make Playlist a GObject subclass
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 4/20] playlists: Make Playlist a GObject subclass
- Date: Mon, 1 Jul 2019 22:30:48 +0000 (UTC)
commit 6eff9f5834196cb994e121eb40fb57d5dcd2eac4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Nov 28 18:11:07 2016 +0100
playlists: Make Playlist a GObject subclass
This will allow to be able to use GObject capabilities with the
Playlist class, like signals and properties.
gnomemusic/playlists.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 86327f3d..1b44854c 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -39,13 +39,15 @@ import logging
logger = logging.getLogger(__name__)
-class Playlist:
+class Playlist(GObject.Object):
""" Base class of all playlists """
ID = None
QUERY = None
TAG_TEXT = ""
TITLE = ""
+ def __init__(self):
+ super().__init()
class SmartPlaylists:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]