[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 6/23] 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: 6/23] playlists: Make Playlist a GObject subclass
- Date: Tue, 2 Jul 2019 13:04:52 +0000 (UTC)
commit 5aad02269a51df436c2c828137e697a23701949a
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 b9a20978..900d4dc8 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]