diff options
author | fiaxh <git@lightrise.org> | 2019-09-30 02:11:23 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-10-01 17:03:24 +0200 |
commit | df3716622a37cded9e3754da77497ca6d2f2baeb (patch) | |
tree | 079e18e51ea54723c5b1209173f8d3f75b54d102 /main/src/ui/conversation_titlebar/menu_entry.vala | |
parent | 5d65f047d0fd1a1ed4a3bbe076d5cb4df76e7d5f (diff) | |
download | dino-df3716622a37cded9e3754da77497ca6d2f2baeb.tar.gz dino-df3716622a37cded9e3754da77497ca6d2f2baeb.zip |
Rework no-open-conversation placeholder
Diffstat (limited to 'main/src/ui/conversation_titlebar/menu_entry.vala')
-rw-r--r-- | main/src/ui/conversation_titlebar/menu_entry.vala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/ui/conversation_titlebar/menu_entry.vala b/main/src/ui/conversation_titlebar/menu_entry.vala index daee48c2..e72cb629 100644 --- a/main/src/ui/conversation_titlebar/menu_entry.vala +++ b/main/src/ui/conversation_titlebar/menu_entry.vala @@ -18,7 +18,7 @@ class MenuEntry : Plugins.ConversationTitlebarEntry, Object { public Plugins.ConversationTitlebarWidget? get_widget(Plugins.WidgetType type) { if (type == Plugins.WidgetType.GTK) { if (widget == null) { - widget = new MenuWidget(stream_interactor) { visible=true }; + widget = new MenuWidget(stream_interactor) { visible=true, sensitive=false }; } return widget; } @@ -41,6 +41,7 @@ class MenuWidget : Button, Plugins.ConversationTitlebarWidget { } public new void set_conversation(Conversation conversation) { + this.sensitive = true; this.conversation = conversation; if (conversation.type_ == Conversation.Type.GROUPCHAT) { tooltip_text = "Channel details"; @@ -48,6 +49,11 @@ class MenuWidget : Button, Plugins.ConversationTitlebarWidget { tooltip_text = "Conversation details"; } } + + public new void unset_conversation() { + this.sensitive = false; + } + } } |