Removed More panel

This commit is contained in:
Sumner Evans
2019-08-29 20:22:41 -06:00
parent 313ee31e61
commit db7eec51a3
2 changed files with 1 additions and 46 deletions

View File

@@ -4,7 +4,7 @@ import gi
gi.require_version('Gtk', '3.0') gi.require_version('Gtk', '3.0')
from gi.repository import Gio, Gtk, GObject 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.server import Server
from libremsonic.state_manager import ApplicationState from libremsonic.state_manager import ApplicationState
@@ -25,7 +25,6 @@ class MainWindow(Gtk.ApplicationWindow):
Albums=albums.AlbumsPanel(), Albums=albums.AlbumsPanel(),
Artists=artists.ArtistsPanel(), Artists=artists.ArtistsPanel(),
Playlists=playlists.PlaylistsPanel(), Playlists=playlists.PlaylistsPanel(),
More=more.MorePanel(),
) )
self.stack.set_transition_type( self.stack.set_transition_type(
Gtk.StackTransitionType.SLIDE_LEFT_RIGHT) Gtk.StackTransitionType.SLIDE_LEFT_RIGHT)

View File

@@ -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