[gnome-music/wip/mschraal/slidebar-removal: 12/12] baseview: Shorten init arguments
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/slidebar-removal: 12/12] baseview: Shorten init arguments
- Date: Wed, 12 Sep 2018 11:55:35 +0000 (UTC)
commit 4486567b1f6611f79b57562f3ce3213a69d7a072
Author: Marinus Schraal <mschraal gnome org>
Date: Fri Aug 31 14:23:18 2018 +0200
baseview: Shorten init arguments
gnomemusic/views/artistsview.py | 3 +--
gnomemusic/views/baseview.py | 3 +--
gnomemusic/views/playlistview.py | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index fc63108a..baa86dfa 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -58,8 +58,7 @@ class ArtistsView(BaseView):
sidebar_container = Gtk.ScrolledWindow()
sidebar_container.add(self._sidebar)
- super().__init__(
- 'artists', _("Artists"), window, True, sidebar_container)
+ super().__init__('artists', _("Artists"), window, sidebar_container)
self.player = player
self._artists = {}
diff --git a/gnomemusic/views/baseview.py b/gnomemusic/views/baseview.py
index 3d1c3818..7c5a52ea 100644
--- a/gnomemusic/views/baseview.py
+++ b/gnomemusic/views/baseview.py
@@ -40,12 +40,11 @@ class BaseView(Gtk.Stack):
return '<BaseView>'
@log
- def __init__(self, name, title, window, use_sidebar=False, sidebar=None):
+ def __init__(self, name, title, window, sidebar=None):
"""Initialize
:param name: The view name
:param title: The view title
:param GtkWidget window: The main window
- :param use_sidebar: Whether to use sidebar
:param sidebar: The sidebar object (Default: Gtk.Box)
"""
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistview.py
index 3f4244c9..0c9c5b3b 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -64,7 +64,7 @@ class PlaylistView(BaseView):
sidebar_container.add(self._sidebar)
super().__init__(
- 'playlists', _("Playlists"), window, True, sidebar_container)
+ 'playlists', _("Playlists"), window, sidebar_container)
self._window = window
self.player = player
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]