Fix some comments and remove German ones
This commit is contained in:
parent
bcfd17a8ae
commit
99958eabc9
5 changed files with 4 additions and 14 deletions
|
|
@ -542,8 +542,6 @@ class Client(Base):
|
||||||
|
|
||||||
def _playpause(self):
|
def _playpause(self):
|
||||||
"""Action: Perform the real play/pause command."""
|
"""Action: Perform the real play/pause command."""
|
||||||
#status = self._parse_dict(self._call('status'))
|
|
||||||
#if 'state' in status:
|
|
||||||
if self._state == 'play':
|
if self._state == 'play':
|
||||||
self._call('pause')
|
self._call('pause')
|
||||||
else:
|
else:
|
||||||
|
|
@ -653,7 +651,7 @@ class Client(Base):
|
||||||
return future
|
return future
|
||||||
|
|
||||||
def _add_action_future(self, future, method, *args):
|
def _add_action_future(self, future, method, *args):
|
||||||
"""Add an action to the action list based on a futre."""
|
"""Add an action to the action list based on a future."""
|
||||||
self._logger.debug("add action future %r (%r)", method.__name__, args)
|
self._logger.debug("add action future %r (%r)", method.__name__, args)
|
||||||
action = (future, method, args)
|
action = (future, method, args)
|
||||||
self._actions.put(action)
|
self._actions.put(action)
|
||||||
|
|
@ -787,7 +785,7 @@ class Client(Base):
|
||||||
# Read actual bytes
|
# Read actual bytes
|
||||||
self._read_bytes(data_view, binary)
|
self._read_bytes(data_view, binary)
|
||||||
offset += binary
|
offset += binary
|
||||||
# Read line break to complete previous repsonse
|
# Read line break to complete previous response
|
||||||
self._read_line()
|
self._read_line()
|
||||||
# Read command completion
|
# Read command completion
|
||||||
end = self._read_line()
|
end = self._read_line()
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ class CoverPanel(Gtk.Overlay):
|
||||||
return self.toolbar
|
return self.toolbar
|
||||||
|
|
||||||
def set_selected(self, selected):
|
def set_selected(self, selected):
|
||||||
|
"""The cover panel does not use selections"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_cover_box_pressed(self, widget, npress, x, y):
|
def on_cover_box_pressed(self, widget, npress, x, y):
|
||||||
|
|
@ -203,9 +204,6 @@ class CoverPanel(Gtk.Overlay):
|
||||||
self.cover_spinner.stop()
|
self.cover_spinner.stop()
|
||||||
|
|
||||||
def _resize_image(self):
|
def _resize_image(self):
|
||||||
"""Diese Methode skaliert das geladene Bild aus dem Pixelpuffer
|
|
||||||
auf die Größe des Fensters unter Beibehalt der Seitenverhältnisse
|
|
||||||
"""
|
|
||||||
# Get size
|
# Get size
|
||||||
size_width = self.cover_stack.get_size(Gtk.Orientation.HORIZONTAL)
|
size_width = self.cover_stack.get_size(Gtk.Orientation.HORIZONTAL)
|
||||||
size_height = self.cover_stack.get_size(Gtk.Orientation.HORIZONTAL)
|
size_height = self.cover_stack.get_size(Gtk.Orientation.HORIZONTAL)
|
||||||
|
|
|
||||||
|
|
@ -431,9 +431,6 @@ class LibraryPanel(Adw.Bin):
|
||||||
self.emit('close-standalone')
|
self.emit('close-standalone')
|
||||||
|
|
||||||
def _resize_standalone_image(self):
|
def _resize_standalone_image(self):
|
||||||
"""Diese Methode skaliert das geladene Bild aus dem Pixelpuffer
|
|
||||||
auf die Größe des Fensters unter Beibehalt der Seitenverhältnisse
|
|
||||||
"""
|
|
||||||
# Get size
|
# Get size
|
||||||
size_width = self.standalone_stack.get_width()
|
size_width = self.standalone_stack.get_width()
|
||||||
size_height = self.standalone_stack.get_height()
|
size_height = self.standalone_stack.get_height()
|
||||||
|
|
|
||||||
|
|
@ -239,9 +239,6 @@ class PlaylistPanel(Adw.Bin):
|
||||||
self.emit('close-standalone')
|
self.emit('close-standalone')
|
||||||
|
|
||||||
def _resize_standalone_image(self):
|
def _resize_standalone_image(self):
|
||||||
"""Diese Methode skaliert das geladene Bild aus dem Pixelpuffer
|
|
||||||
auf die Größe des Fensters unter Beibehalt der Seitenverhältnisse
|
|
||||||
"""
|
|
||||||
# Get size
|
# Get size
|
||||||
size_width = self.standalone_stack.get_width()
|
size_width = self.standalone_stack.get_width()
|
||||||
size_height = self.standalone_stack.get_height()
|
size_height = self.standalone_stack.get_height()
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class ServerPanel(Adw.Bin):
|
||||||
stats_dbplaytime = Gtk.Template.Child()
|
stats_dbplaytime = Gtk.Template.Child()
|
||||||
stats_playtime = Gtk.Template.Child()
|
stats_playtime = Gtk.Template.Child()
|
||||||
stats_uptime = Gtk.Template.Child()
|
stats_uptime = Gtk.Template.Child()
|
||||||
# Audio ouptut devices widgets
|
# Audio output devices widgets
|
||||||
output_devices = Gtk.Template.Child()
|
output_devices = Gtk.Template.Child()
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue