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