mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed OK-button in ServerStats
This commit is contained in:
parent
4c72085473
commit
ed067ed869
@ -1220,11 +1220,7 @@ class SettingsDialog(Gtk.Dialog):
|
|||||||
class ServerStats(Gtk.Dialog):
|
class ServerStats(Gtk.Dialog):
|
||||||
def __init__(self, parent, client, settings):
|
def __init__(self, parent, client, settings):
|
||||||
use_csd=settings.get_boolean("use-csd")
|
use_csd=settings.get_boolean("use-csd")
|
||||||
if use_csd:
|
super().__init__(title=_("Stats"), transient_for=parent, use_header_bar=use_csd)
|
||||||
super().__init__(title=_("Stats"), transient_for=parent, use_header_bar=True)
|
|
||||||
else:
|
|
||||||
super().__init__(title=_("Stats"), transient_for=parent)
|
|
||||||
self.add_button(Gtk.STOCK_OK, Gtk.ResponseType.OK)
|
|
||||||
self.set_resizable(False)
|
self.set_resizable(False)
|
||||||
|
|
||||||
# treeview
|
# treeview
|
||||||
@ -1256,7 +1252,6 @@ class ServerStats(Gtk.Dialog):
|
|||||||
|
|
||||||
# packing
|
# packing
|
||||||
vbox=self.get_content_area()
|
vbox=self.get_content_area()
|
||||||
vbox.set_spacing(6)
|
|
||||||
vbox.set_property("border-width", 0)
|
vbox.set_property("border-width", 0)
|
||||||
vbox.pack_start(treeview, True, True, 0)
|
vbox.pack_start(treeview, True, True, 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user