Skip to content

Commit

Permalink
Server Info: Remove list header
Browse files Browse the repository at this point in the history
Information is already provided by tab title.
  • Loading branch information
André Apitzsch committed May 30, 2020
1 parent e096557 commit 69a0456
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions gajim/gtk/server_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 69a0456

Please sign in to comment.