Removed More panel
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
Reference in New Issue
Block a user