diff options
| author | fiaxh <git@mx.ax.lt> | 2017-03-10 19:53:24 +0100 |
|---|---|---|
| committer | fiaxh <git@mx.ax.lt> | 2017-03-10 19:53:24 +0100 |
| commit | 24b55d83a1f9e21b028c8d5ac9778e75565f417d (patch) | |
| tree | 195b0f332e32d08e1a18fc3d8a5a6725c5ed11d7 /client/src/ui/conversation_selector/groupchat_row.vala | |
| parent | 4c48c5c16d5f5b010c2e5dfb1affcb59f937510c (diff) | |
| parent | 29ca70a6d534e1cd79963718c793ae740318cff1 (diff) | |
Merge branch 'master' of github.com:dino/dino
Diffstat (limited to 'client/src/ui/conversation_selector/groupchat_row.vala')
| -rw-r--r-- | client/src/ui/conversation_selector/groupchat_row.vala | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/client/src/ui/conversation_selector/groupchat_row.vala b/client/src/ui/conversation_selector/groupchat_row.vala deleted file mode 100644 index 7fe52d89..00000000 --- a/client/src/ui/conversation_selector/groupchat_row.vala +++ /dev/null @@ -1,35 +0,0 @@ -using Dino.Entities; - -namespace Dino.Ui.ConversationSelector { - -public class GroupchatRow : ConversationRow { - - public GroupchatRow(StreamInteractor stream_interactor, Conversation conversation) { - base(stream_interactor, conversation); - has_tooltip = true; - set_tooltip_text(conversation.counterpart.bare_jid.to_string()); - set_avatar((new AvatarGenerator(AVATAR_SIZE, AVATAR_SIZE, image.scale_factor)) - .set_greyscale(true) - .draw_conversation(stream_interactor, conversation), image.scale_factor); - x_button.clicked.connect(on_x_button_clicked); - } - - - public override void on_show_received(Show show) { - set_avatar((new AvatarGenerator(AVATAR_SIZE, AVATAR_SIZE, image.scale_factor)) - .draw_conversation(stream_interactor, conversation), image.scale_factor); - } - - public override void network_connection(bool connected) { - set_avatar((new AvatarGenerator(AVATAR_SIZE, AVATAR_SIZE, image.scale_factor)) - .set_greyscale(!connected || - MucManager.get_instance(stream_interactor).get_nick(conversation.counterpart, conversation.account) == null) // TODO better currently joined - .draw_conversation(stream_interactor, conversation), image.scale_factor); - } - - private void on_x_button_clicked() { - MucManager.get_instance(stream_interactor).part(conversation.account, conversation.counterpart); - } -} - -}
\ No newline at end of file |
