Compare commits

..

1 commit

Author SHA1 Message Date
b57479f97a Port UI to GTK 4 (close #85) 2024-05-22 17:27:54 +02:00
2 changed files with 0 additions and 14 deletions

View file

@ -143,8 +143,6 @@ class Client(Base):
SIGNAL_LOAD_OUTPUT_DEVICES = 'load-output-devices'
# Signal: load albumart
SIGNAL_LOAD_ALBUMART = 'albumart'
# Signal: custom (dummy) event to trigger callback
SIGNAL_CUSTOM = 'custom'
# Signal: error
SIGNAL_ERROR = 'error'
# Buffer size for reading from socket
@ -319,11 +317,6 @@ class Client(Base):
return albumart
def get_custom(self, name):
self._logger.info("get custom \"%s\"", name)
self._add_action_signal(Client.SIGNAL_CUSTOM, self._get_custom, name)
# Private methods
def _connect(self, host, port, password):
@ -671,10 +664,6 @@ class Client(Base):
return (album, None)
def _get_custom(self, name):
return (name, )
def _start_worker(self):
"""Start the worker thread which waits for action to be performed."""
self._logger.debug("start worker")

View file

@ -57,7 +57,6 @@ class Window(Adw.ApplicationWindow):
SETTING_ITEM_SIZE = 'item-size'
SETTING_SORT_ORDER = 'sort-order'
SETTING_SORT_TYPE = 'sort-type'
_CUSTOM_STARTUP_COMPLETE = 'startup-complete'
# Widgets
toolbar_view = Gtk.Template.Child()
@ -163,7 +162,6 @@ class Window(Adw.ApplicationWindow):
self._mcg.connect_signal(client.Client.SIGNAL_INIT_ALBUMS, self.on_mcg_init_albums)
self._mcg.connect_signal(client.Client.SIGNAL_LOAD_ALBUMS, self.on_mcg_load_albums)
self._mcg.connect_signal(client.Client.SIGNAL_LOAD_ALBUMART, self.on_mcg_load_albumart)
self._mcg.connect_signal(client.Client.SIGNAL_CUSTOM, self.on_mcg_custom)
self._mcg.connect_signal(client.Client.SIGNAL_ERROR, self.on_mcg_error)
self._settings.connect('changed::'+Window.SETTING_PANEL, self.on_settings_panel_changed)
self._settings.connect('changed::'+Window.SETTING_ITEM_SIZE, self.on_settings_item_size_changed)
@ -393,7 +391,6 @@ class Window(Adw.ApplicationWindow):
GObject.idle_add(self._connect_connected)
self._mcg.load_playlist()
self._mcg.load_albums()
self._mcg.get_custom(Window._CUSTOM_STARTUP_COMPLETE)
self._mcg.get_status()
self._mcg.get_stats()
self._mcg.get_output_devices()