[geary/gnumdk/stable: 2/2] Add debug messages




commit f792dd4881e79556ac08b87f14dd429dcfa3671a
Author: Cédric Bellegarde <cedric bellegarde adishatz org>
Date:   Wed Sep 21 16:51:07 2022 +0200

    Add debug messages

 src/client/conversation-viewer/conversation-list-box.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/client/conversation-viewer/conversation-list-box.vala 
b/src/client/conversation-viewer/conversation-list-box.vala
index b8a7c0643..ba940c790 100644
--- a/src/client/conversation-viewer/conversation-list-box.vala
+++ b/src/client/conversation-viewer/conversation-list-box.vala
@@ -1275,6 +1275,7 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
             EmailRow? row = child as EmailRow;
             ConversationEmail? view = (row != null) ? row.view : null;
             Geary.Email? email = (view != null) ? view.email : null;
+            print("check_mark_read: %b, %d==%d, %b, %b\n", row.is_expanded, view.message_body_state, 
ConversationEmail.LoadState.COMPLETED, !view.is_manually_read, email.is_unread().is_certain());
             if (row != null &&
                 row.is_expanded &&
                 view.message_body_state == COMPLETED &&
@@ -1291,7 +1292,8 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
 
                  int body_height = conversation_message.web_view_get_allocated_height();
                  int body_bottom = body_top + body_height;
-
+                 print("check_mark_read2: %d, %d, %d, %d, %d\n", body_height, body_bottom, body_top, 
top_bound, bottom_bound);
+                 print("check_mark_read3: %b, %b, %b\n", body_height > 0, body_bottom > top_bound, body_top 
+ MARK_READ_PADDING < bottom_bound);
                  // Only mark the email as read if it's actually visible
                  if (body_height > 0 &&
                      body_bottom > top_bound &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]