diff options
author | fiaxh <git@mx.ax.lt> | 2017-04-11 18:06:01 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-04-11 21:25:33 +0200 |
commit | a37b5ac823cc5daefac6ab33a16d6f44c747ba9c (patch) | |
tree | 8a8784914680672f15cf67a4bb946fe31cb89742 /main/src/ui/conversation_titlebar.vala | |
parent | 71dc4b80edf75c144c3d2146e85a8e0285594feb (diff) | |
download | dino-a37b5ac823cc5daefac6ab33a16d6f44c747ba9c.tar.gz dino-a37b5ac823cc5daefac6ab33a16d6f44c747ba9c.zip |
MUC improvements
Diffstat (limited to 'main/src/ui/conversation_titlebar.vala')
-rw-r--r-- | main/src/ui/conversation_titlebar.vala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/main/src/ui/conversation_titlebar.vala b/main/src/ui/conversation_titlebar.vala index 70a376f1..b1db3604 100644 --- a/main/src/ui/conversation_titlebar.vala +++ b/main/src/ui/conversation_titlebar.vala @@ -20,11 +20,17 @@ public class ConversationTitlebar : Gtk.HeaderBar { public ConversationTitlebar(StreamInteractor stream_interactor) { this.stream_interactor = stream_interactor; - stream_interactor.get_module(MucManager.IDENTITY).groupchat_subject_set.connect((account, jid, subject) => { - Idle.add(() => { on_groupchat_subject_set(account, jid, subject); return false; }); - }); create_conversation_menu(); create_encryption_menu(); + + stream_interactor.get_module(MucManager.IDENTITY).subject_set.connect((account, jid, subject) => { + Idle.add(() => { + if (conversation != null && conversation.counterpart.equals_bare(jid) && conversation.account.equals(account)) { + update_subtitle(subject); + } + return false; + }); + }); } public void initialize_for_conversation(Conversation conversation) { @@ -118,12 +124,6 @@ public class ConversationTitlebar : Gtk.HeaderBar { encryption_button.set_popover(menu); encryption_button.set_image(new Image.from_icon_name("changes-allow-symbolic", IconSize.BUTTON)); } - - private void on_groupchat_subject_set(Account account, Jid jid, string subject) { - if (conversation != null && conversation.counterpart.equals_bare(jid) && conversation.account.equals(account)) { - update_subtitle(subject); - } - } } }
\ No newline at end of file |