From db7eec51a3275709815c6b53932d82823e9ed7f9 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 29 Aug 2019 20:22:41 -0600 Subject: [PATCH] Removed More panel --- libremsonic/ui/main.py | 3 +-- libremsonic/ui/more.py | 44 ------------------------------------------ 2 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 libremsonic/ui/more.py diff --git a/libremsonic/ui/main.py b/libremsonic/ui/main.py index dfbcd7b..6ad70a8 100644 --- a/libremsonic/ui/main.py +++ b/libremsonic/ui/main.py @@ -4,7 +4,7 @@ import gi gi.require_version('Gtk', '3.0') from gi.repository import Gio, Gtk, GObject -from . import albums, artists, playlists, more, player_controls +from . import albums, artists, playlists, player_controls from libremsonic.server import Server from libremsonic.state_manager import ApplicationState @@ -25,7 +25,6 @@ class MainWindow(Gtk.ApplicationWindow): Albums=albums.AlbumsPanel(), Artists=artists.ArtistsPanel(), Playlists=playlists.PlaylistsPanel(), - More=more.MorePanel(), ) self.stack.set_transition_type( Gtk.StackTransitionType.SLIDE_LEFT_RIGHT) diff --git a/libremsonic/ui/more.py b/libremsonic/ui/more.py deleted file mode 100644 index 7c6b936..0000000 --- a/libremsonic/ui/more.py +++ /dev/null @@ -1,44 +0,0 @@ -import gi -import sys - -gi.require_version('Gtk', '3.0') -from gi.repository import Gio, Gtk, GObject - -from libremsonic.state_manager import ApplicationState - - -class MorePanel(Gtk.ScrolledWindow): - __gsignals__ = { - 'song-clicked': (GObject.SignalFlags.RUN_FIRST, GObject.TYPE_NONE, - (str, object)), - } - - def __init__(self): - Gtk.ScrolledWindow.__init__(self) - self.child = MoreGrid() - self.add(self.child) - - def update(self, state: ApplicationState): - self.child.update(state) - - -class MoreGrid(Gtk.FlowBox): - """Defines the albums panel.""" - - def __init__(self): - Gtk.FlowBox.__init__( - self, - vexpand=True, - hexpand=True, - row_spacing=12, - column_spacing=12, - margin_top=12, - margin_bottom=12, - homogeneous=True, - valign=Gtk.Align.START, - halign=Gtk.Align.CENTER, - selection_mode=Gtk.SelectionMode.NONE, - ) - - def update(self, state: ApplicationState): - pass