Fixed warnings
This commit is contained in:
@@ -15,7 +15,7 @@ from libremsonic.server.api_objects import Child
|
||||
class AlbumsPanel(Gtk.ScrolledWindow):
|
||||
__gsignals__ = {
|
||||
'song-clicked': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(str, object),
|
||||
),
|
||||
|
@@ -26,7 +26,7 @@ class ArtistsPanel(Gtk.Paned):
|
||||
|
||||
__gsignals__ = {
|
||||
'song-clicked': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(str, object),
|
||||
),
|
||||
@@ -65,7 +65,7 @@ class ArtistsPanel(Gtk.Paned):
|
||||
class ArtistList(Gtk.Box):
|
||||
__gsignals__ = {
|
||||
'selection-changed': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(object, ),
|
||||
),
|
||||
@@ -157,7 +157,7 @@ class ArtistDetailPanel(Gtk.Box):
|
||||
|
||||
__gsignals__ = {
|
||||
'song-clicked': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(str, object),
|
||||
),
|
||||
@@ -351,7 +351,7 @@ class ArtistDetailPanel(Gtk.Box):
|
||||
class AlbumsListWithSongs(Gtk.Overlay):
|
||||
__gsignals__ = {
|
||||
'song-clicked': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(str, object),
|
||||
),
|
||||
@@ -396,12 +396,12 @@ class AlbumsListWithSongs(Gtk.Overlay):
|
||||
class AlbumWithSongs(Gtk.Box):
|
||||
__gsignals__ = {
|
||||
'song-selected': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(),
|
||||
),
|
||||
'song-clicked': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(str, object),
|
||||
),
|
||||
@@ -481,6 +481,7 @@ class AlbumWithSongs(Gtk.Box):
|
||||
self.album_songs = Gtk.TreeView(
|
||||
model=self.album_songs_model,
|
||||
name='album-songs-list',
|
||||
headers_visible=False,
|
||||
margin_top=15,
|
||||
margin_left=10,
|
||||
margin_right=10,
|
||||
|
@@ -13,7 +13,7 @@ class CoverArtGrid(Gtk.ScrolledWindow):
|
||||
"""Defines a grid with cover art."""
|
||||
__gsignals__ = {
|
||||
'item-clicked': (
|
||||
GObject.SIGNAL_RUN_FIRST,
|
||||
GObject.SignalFlags.RUN_FIRST,
|
||||
GObject.TYPE_NONE,
|
||||
(object, ),
|
||||
)
|
||||
|
@@ -336,6 +336,7 @@ class PlaylistsPanel(Gtk.Paned):
|
||||
self.playlist_list.get_selected_row().get_index()]
|
||||
|
||||
def download_state_change(*args):
|
||||
# TODO: Only do this if it's the current playlist.
|
||||
GLib.idle_add(self.update_playlist_view, playlist.id)
|
||||
|
||||
song_ids = [s[-1] for s in self.playlist_song_model]
|
||||
@@ -369,6 +370,7 @@ class PlaylistsPanel(Gtk.Paned):
|
||||
self.playlist_list.get_selected_row().get_index()]
|
||||
|
||||
def on_download_state_change(song_id=None):
|
||||
# TODO: Only do this if it's the current playlist.
|
||||
GLib.idle_add(self.update_playlist_song_list, playlist.id)
|
||||
|
||||
# Use the new selection instead of the old one for calculating what
|
||||
|
Reference in New Issue
Block a user