mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed visibility of AudioFormat
This commit is contained in:
parent
528c9b1e1e
commit
6854439b80
16
bin/mpdevil
16
bin/mpdevil
@ -3153,10 +3153,10 @@ class AudioFormat(Gtk.Box):
|
|||||||
super().__init__(spacing=6)
|
super().__init__(spacing=6)
|
||||||
self._client=client
|
self._client=client
|
||||||
self._settings=settings
|
self._settings=settings
|
||||||
self._file_type_label=Gtk.Label(xalign=1)
|
self._file_type_label=Gtk.Label(xalign=1, visible=True)
|
||||||
self._separator_label=Gtk.Label(xalign=1)
|
self._separator_label=Gtk.Label(xalign=1, visible=True)
|
||||||
self._brate_label=Gtk.Label(xalign=1, width_chars=5)
|
self._brate_label=Gtk.Label(xalign=1, width_chars=5, visible=True)
|
||||||
self._format_label=Gtk.Label()
|
self._format_label=Gtk.Label(visible=True)
|
||||||
|
|
||||||
# connect
|
# connect
|
||||||
self._settings.connect("changed::mini-player", self._mini_player)
|
self._settings.connect("changed::mini-player", self._mini_player)
|
||||||
@ -3168,16 +3168,16 @@ class AudioFormat(Gtk.Box):
|
|||||||
self._client.emitter.connect("reconnected", self._on_reconnected)
|
self._client.emitter.connect("reconnected", self._on_reconnected)
|
||||||
|
|
||||||
# packing
|
# packing
|
||||||
hbox=Gtk.Box(halign=Gtk.Align.END)
|
hbox=Gtk.Box(halign=Gtk.Align.END, visible=True)
|
||||||
hbox.pack_start(self._brate_label, False, False, 0)
|
hbox.pack_start(self._brate_label, False, False, 0)
|
||||||
hbox.pack_start(self._separator_label, False, False, 0)
|
hbox.pack_start(self._separator_label, False, False, 0)
|
||||||
hbox.pack_start(self._file_type_label, False, False, 0)
|
hbox.pack_start(self._file_type_label, False, False, 0)
|
||||||
vbox=Gtk.Box(orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER)
|
vbox=Gtk.Box(orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER, visible=True)
|
||||||
vbox.pack_start(hbox, False, False, 0)
|
vbox.pack_start(hbox, False, False, 0)
|
||||||
vbox.pack_start(self._format_label, False, False, 0)
|
vbox.pack_start(self._format_label, False, False, 0)
|
||||||
self.pack_start(Gtk.Separator(), False, False, 0)
|
self.pack_start(Gtk.Separator(visible=True), False, False, 0)
|
||||||
self.pack_start(vbox, False, False, 0)
|
self.pack_start(vbox, False, False, 0)
|
||||||
self.pack_start(Gtk.Separator(), False, False, 0)
|
self.pack_start(Gtk.Separator(visible=True), False, False, 0)
|
||||||
self._mini_player()
|
self._mini_player()
|
||||||
|
|
||||||
def _mini_player(self, *args):
|
def _mini_player(self, *args):
|
||||||
|
Loading…
Reference in New Issue
Block a user