From df3716622a37cded9e3754da77497ca6d2f2baeb Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 30 Sep 2019 02:11:23 +0200 Subject: Rework no-open-conversation placeholder --- main/src/ui/conversation_titlebar/occupants_entry.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/src/ui/conversation_titlebar/occupants_entry.vala') diff --git a/main/src/ui/conversation_titlebar/occupants_entry.vala b/main/src/ui/conversation_titlebar/occupants_entry.vala index b5c4c228..facaa50f 100644 --- a/main/src/ui/conversation_titlebar/occupants_entry.vala +++ b/main/src/ui/conversation_titlebar/occupants_entry.vala @@ -18,7 +18,7 @@ class OccupantsEntry : Plugins.ConversationTitlebarEntry, Object { public Plugins.ConversationTitlebarWidget? get_widget(Plugins.WidgetType type) { if (type == Plugins.WidgetType.GTK) { if (widget == null) { - widget = new OccupantsWidget(stream_interactor) { visible=true }; + widget = new OccupantsWidget(stream_interactor); } return widget; } @@ -51,6 +51,10 @@ class OccupantsWidget : MenuButton, Plugins.ConversationTitlebarWidget { menu = new_menu; } } + + public new void unset_conversation() { + visible = false; + } } } -- cgit v1.2.3-54-g00ecf