aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2024-03-21 13:34:04 +0100
committerfiaxh <git@lightrise.org>2024-03-21 13:52:39 +0100
commitbd8e03b7ea8edd3114423e3426b766d78ccd0724 (patch)
tree99a0bf16894df22bd924d7cf97a7458c65439756 /main/src/ui/conversation_selector
parent2f1b806dfe43a6323d8331a70172f01da88034d7 (diff)
downloaddino-bd8e03b7ea8edd3114423e3426b766d78ccd0724.tar.gz
dino-bd8e03b7ea8edd3114423e3426b766d78ccd0724.zip
Remove conversation closing via hover button
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_selector_row.vala20
1 files changed, 0 insertions, 20 deletions
diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala
index 1bcf6962..c180b6b3 100644
--- a/main/src/ui/conversation_selector/conversation_selector_row.vala
+++ b/main/src/ui/conversation_selector/conversation_selector_row.vala
@@ -18,10 +18,6 @@ public class ConversationSelectorRow : ListBoxRow {
[GtkChild] protected unowned Label nick_label;
[GtkChild] protected unowned Label message_label;
[GtkChild] protected unowned Label unread_count_label;
- [GtkChild] protected unowned Button x_button;
- [GtkChild] protected unowned Revealer time_revealer;
- [GtkChild] protected unowned Revealer xbutton_revealer;
- [GtkChild] protected unowned Revealer top_row_revealer;
[GtkChild] protected unowned Image pinned_image;
[GtkChild] public unowned Revealer main_revealer;
@@ -98,9 +94,6 @@ public class ConversationSelectorRow : ListBoxRow {
last_content_item = stream_interactor.get_module(ContentItemStore.IDENTITY).get_latest(conversation);
- x_button.clicked.connect(() => {
- stream_interactor.get_module(ConversationManager.IDENTITY).close_conversation(conversation);
- });
picture.model = new ViewModel.CompatAvatarPictureModel(stream_interactor).set_conversation(conversation);
conversation.notify["read-up-to-item"].connect(() => update_read());
conversation.notify["pinned"].connect(() => { update_pinned_icon(); });
@@ -270,19 +263,6 @@ public class ConversationSelectorRow : ListBoxRow {
}
}
- public override void state_flags_changed(StateFlags flags) {
- StateFlags curr_flags = get_state_flags();
- if ((curr_flags & StateFlags.PRELIGHT) != 0) {
- time_revealer.set_reveal_child(false);
- top_row_revealer.set_reveal_child(false);
- xbutton_revealer.set_reveal_child(true);
- } else {
- time_revealer.set_reveal_child(true);
- top_row_revealer.set_reveal_child(true);
- xbutton_revealer.set_reveal_child(false);
- }
- }
-
private static Regex dino_resource_regex = /^dino\.[a-f0-9]{8}$/;
private Widget generate_tooltip() {