aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_summary
diff options
context:
space:
mode:
authorbobufa <bobufa@users.noreply.github.com>2018-07-29 23:24:53 +0200
committerbobufa <bobufa@users.noreply.github.com>2018-08-13 22:39:18 +0200
commita6457286240700a83dbf4e3404e2a1180c95c8c0 (patch)
tree067f0d04807eca61b37db696673dca24a5eafef9 /main/src/ui/conversation_summary
parente376a577b6bfcdd9bdc0cc6ca283d99199a0197a (diff)
downloaddino-a6457286240700a83dbf4e3404e2a1180c95c8c0.tar.gz
dino-a6457286240700a83dbf4e3404e2a1180c95c8c0.zip
hide search bar when clicking outside of it, only reset search entry on conversation change
Diffstat (limited to 'main/src/ui/conversation_summary')
-rw-r--r--main/src/ui/conversation_summary/conversation_view.vala10
1 files changed, 0 insertions, 10 deletions
diff --git a/main/src/ui/conversation_summary/conversation_view.vala b/main/src/ui/conversation_summary/conversation_view.vala
index c74884a4..07259cc5 100644
--- a/main/src/ui/conversation_summary/conversation_view.vala
+++ b/main/src/ui/conversation_summary/conversation_view.vala
@@ -112,7 +112,6 @@ public class ConversationView : Box, Plugins.ConversationItemCollection {
widget.get_preferred_height_for_width(main.get_allocated_width() - 2 * main.margin, out minimum_height, out natural_height);
h += minimum_height + 15;
});
- print(@"height_for_w: $(h)\n");
}
reload_messages = false;
@@ -124,7 +123,6 @@ public class ConversationView : Box, Plugins.ConversationItemCollection {
i += sk != null ? sk.items.size : 1;
h += widget.get_allocated_height() + 15;
});
- print(@"timeout: $(h)\n");
scrolled.vadjustment.value = h - scrolled.vadjustment.page_size * 1/3;
w.get_style_context().add_class("highlight-once");
reload_messages = true;
@@ -334,15 +332,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection {
private void load_later_messages() {
if (!reloading_mutex.trylock()) return;
if (meta_items.size > 0 && !at_current_content) {
- foreach (Plugins.MetaConversationItem a in content_items) {
- ContentMetaItem b = a as ContentMetaItem;
- MessageItem c = b.content_item as MessageItem;
- }
Gee.List<ContentMetaItem> items = content_populator.populate_after(conversation, (content_items.last() as ContentMetaItem).content_item, 20);
-
- ContentMetaItem b = content_items.last() as ContentMetaItem;
- MessageItem c = b.content_item as MessageItem;
-
if (items.size == 0) {
at_current_content = true;
}