[gnome-music/wip/gbsneto/contained-playlists: 6/29] playlists: Add a new ::playlist-added signal
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/gbsneto/contained-playlists: 6/29] playlists: Add a new ::playlist-added signal
- Date: Thu, 1 Dec 2016 23:26:04 +0000 (UTC)
commit 902008ae7b0afcdd829daec4f88883d35dfd7f16
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Nov 28 19:09:27 2016 +0100
playlists: Add a new ::playlist-added signal
The current code relies on specific data for emiting
the ::playlist-created code, as the argument must be
a Grl.Media, which makes this code to be impossible to
be reused for static playlists.
To start moving the current code to a self-contained
Playlists class, add this new ::playlist-added signal
which will be used in the future to notify about any
new playlists (static or dynamic).
gnomemusic/playlists.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index a746784..82e8f5a 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -160,6 +160,7 @@ class StaticPlaylists:
class Playlists(GObject.GObject):
__gsignals__ = {
+ 'playlist-added': (GObject.SignalFlags.RUN_FIRST, None, (Playlist,)),
'playlist-created': (GObject.SignalFlags.RUN_FIRST, None, (Grl.Media,)),
'playlist-deleted': (GObject.SignalFlags.RUN_FIRST, None, (Grl.Media,)),
'playlist-updated': (GObject.SignalFlags.RUN_FIRST, None, (int,)),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]