Skip to content
Snippets Groups Projects
Commit 69a0456d authored by André's avatar André
Browse files

Server Info: Remove list header

Information is already provided by tab title.
parent e096557e
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,6 @@ def __init__(self, account):
self.feature_listbox = Gtk.ListBox()
self.feature_listbox.set_name('ServerInfo')
self.feature_listbox.set_selection_mode(Gtk.SelectionMode.NONE)
self.feature_listbox.set_header_func(self.header_func, 'Features')
self._ui.features_scrolled.add(self.feature_listbox)
for feature in self.get_features():
self.add_feature(feature)
......@@ -90,15 +89,6 @@ def _on_key_press(self, _widget, event):
if event.keyval == Gdk.KEY_Escape:
self.destroy()
@staticmethod
def header_func(row, before, user_data):
if before:
row.set_header(None)
else:
label = Gtk.Label(label=user_data)
label.set_halign(Gtk.Align.START)
row.set_header(label)
def _add_connection_info(self):
# Connection type
client = app.connections[self.account].connection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment