diff options
author | Marvin W <git@larma.de> | 2022-07-27 19:41:05 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-07-27 20:55:54 +0200 |
commit | e51b55432fe98e0fbc036fe785ef50fbf1589034 (patch) | |
tree | 3f4737de32d1c9ef4f68b397394a0d7ac1f89d2a /main/src/ui/conversation_content_view/conversation_view.vala | |
parent | f44cbe02c17df1f02ad49c63cd784fec0ea02d85 (diff) | |
download | dino-e51b55432fe98e0fbc036fe785ef50fbf1589034.tar.gz dino-e51b55432fe98e0fbc036fe785ef50fbf1589034.zip |
Gtk4 bug fixes and improvements
Diffstat (limited to 'main/src/ui/conversation_content_view/conversation_view.vala')
-rw-r--r-- | main/src/ui/conversation_content_view/conversation_view.vala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala index bfee3cbb..4babbdb4 100644 --- a/main/src/ui/conversation_content_view/conversation_view.vala +++ b/main/src/ui/conversation_content_view/conversation_view.vala @@ -51,6 +51,7 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug public ConversationView init(StreamInteractor stream_interactor) { this.stream_interactor = stream_interactor; scrolled.vadjustment.notify["upper"].connect_after(on_upper_notify); + scrolled.vadjustment.notify["page-size"].connect(on_upper_notify); scrolled.vadjustment.notify["value"].connect(on_value_notify); content_populator = new ContentProvider(stream_interactor); @@ -363,7 +364,6 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug if (can_merge(item, lower_item)) { ConversationItemSkeleton lower_skeleton = item_item_skeletons[lower_item]; item_skeleton.show_skeleton = false; - lower_skeleton.last_group_item = false; } else { item_skeleton.show_skeleton = true; } @@ -414,7 +414,6 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug }); } } else if (scrolled.vadjustment.value < scrolled.vadjustment.upper - scrolled.vadjustment.page_size - 1) { - print("move!\n"); scrolled.vadjustment.value = scrolled.vadjustment.upper - was_upper + scrolled.vadjustment.value; // stay at same content } was_upper = scrolled.vadjustment.upper; |