Resolves #58: Added ability to right click on songs in Play Queue

This commit is contained in:
Sumner Evans
2019-12-11 21:48:11 -07:00
parent 25375b8155
commit 006ccbac48
3 changed files with 66 additions and 13 deletions

View File

@@ -14,6 +14,11 @@ class MainWindow(Gtk.ApplicationWindow):
GObject.TYPE_NONE,
(int, object, object),
),
'songs-removed': (
GObject.SignalFlags.RUN_FIRST,
GObject.TYPE_NONE,
(object, ),
),
'refresh-window': (
GObject.SignalFlags.RUN_FIRST,
GObject.TYPE_NONE,
@@ -40,6 +45,8 @@ class MainWindow(Gtk.ApplicationWindow):
self.player_controls = player_controls.PlayerControls()
self.player_controls.connect(
'song-clicked', lambda _, *a: self.emit('song-clicked', *a))
self.player_controls.connect(
'songs-removed', lambda _, *a: self.emit('songs-removed', *a))
flowbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
flowbox.pack_start(self.stack, True, True, 0)