[gnome-music/wip/mschraal/window-selection-mode: 14/22] baseview: Remove duplicated functionality



commit 517013c6421a598a18f9bbe124aceb185d4b07e3
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Aug 31 00:06:05 2018 +0200

    baseview: Remove duplicated functionality

 gnomemusic/views/baseview.py     | 8 --------
 gnomemusic/views/playlistview.py | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/gnomemusic/views/baseview.py b/gnomemusic/views/baseview.py
index 85fc151f..92a59c31 100644
--- a/gnomemusic/views/baseview.py
+++ b/gnomemusic/views/baseview.py
@@ -187,11 +187,3 @@ class BaseView(Gtk.Stack):
         self._set_selection(False)
         self._selection_toolbar.props.items_selected = 0
         self._header_bar.props.items_selected = 0
-
-    @log
-    def set_player_visible(self, visible):
-        """Set PlayWidget action visibility
-
-        :param bool visible: Set actionbar visibility
-        """
-        self._window.player_toolbar.set_visible(visible)
diff --git a/gnomemusic/views/playlistview.py b/gnomemusic/views/playlistview.py
index 0c9c5b3b..3b7f307f 100644
--- a/gnomemusic/views/playlistview.py
+++ b/gnomemusic/views/playlistview.py
@@ -678,7 +678,7 @@ class PlaylistView(BaseView):
         if self.player.playing_playlist(
                 PlayerPlaylist.Type.PLAYLIST, playlist_id):
             self.player.stop()
-            self.set_player_visible(False)
+            self._window.set_player_visible(False)
 
         if row_next:
             self._sidebar.select_row(row_next)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]