Commit bcd15212 authored by Philipp Hörist's avatar Philipp Hörist

Groupchat: Fix hide_groupchat_banner option

parent 61fce039
...@@ -99,12 +99,13 @@ ...@@ -99,12 +99,13 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_right">4</property> <property name="margin_right">4</property>
<property name="hexpand">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkEventBox" id="banner_eventbox"> <object class="GtkEventBox" id="banner_eventbox">
<property name="name">GroupChatControl-BannerEventBox</property> <property name="name">GroupChatControl-BannerEventBox</property>
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="no_show_all">True</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property> <property name="visible">True</property>
......
...@@ -122,8 +122,8 @@ class GroupchatControl(ChatControlBase): ...@@ -122,8 +122,8 @@ class GroupchatControl(ChatControlBase):
else: else:
self.scale_factor = app.interface.roster.scale_factor self.scale_factor = app.interface.roster.scale_factor
self.widget_set_visible(self.xml.get_object('banner_eventbox'), if not app.config.get('hide_groupchat_banner'):
app.config.get('hide_groupchat_banner')) self.xml.banner_eventbox.set_no_show_all(False)
# muc attention flag (when we are mentioned in a muc) # muc attention flag (when we are mentioned in a muc)
# if True, the room has mentioned us # if True, the room has mentioned us
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment