[gnome-music/wip/mschraal/core: 67/208] disclistboxwidget: Connect selected & favorite
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core: 67/208] disclistboxwidget: Connect selected & favorite
- Date: Thu, 4 Jul 2019 15:39:14 +0000 (UTC)
commit 6513db67898bd8d8875e028a307cb4e7706a9584
Author: Marinus Schraal <mschraal gnome org>
Date: Fri May 31 18:11:51 2019 +0200
disclistboxwidget: Connect selected & favorite
gnomemusic/widgets/disclistboxwidget.py | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/gnomemusic/widgets/disclistboxwidget.py b/gnomemusic/widgets/disclistboxwidget.py
index 6c88ac13..bc40c68d 100644
--- a/gnomemusic/widgets/disclistboxwidget.py
+++ b/gnomemusic/widgets/disclistboxwidget.py
@@ -203,6 +203,15 @@ class DiscBox(Gtk.Box):
song_widget = SongWidget(song.props.media)
self._songs.append(song_widget)
+ song.bind_property(
+ "favorite", song_widget, "favorite",
+ GObject.BindingFlags.BIDIRECTIONAL
+ | GObject.BindingFlags.SYNC_CREATE)
+ song.bind_property(
+ "selected", song_widget, "selected",
+ GObject.BindingFlags.BIDIRECTIONAL
+ | GObject.BindingFlags.SYNC_CREATE)
+
return song_widget
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]