[geary/mjog/558-webkit-shared-process: 11/11] Minor code and doc comment cleanup



commit 4927409848021e3411644b5c2b42d7ca9a995d0f
Author: Michael Gratton <mike vee net>
Date:   Tue Nov 26 19:37:04 2019 +1100

    Minor code and doc comment cleanup

 .../conversation-viewer/conversation-message.vala      | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-message.vala 
b/src/client/conversation-viewer/conversation-message.vala
index da0a57e4..4e9e3195 100644
--- a/src/client/conversation-viewer/conversation-message.vala
+++ b/src/client/conversation-viewer/conversation-message.vala
@@ -222,15 +222,20 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
     [GtkChild]
     internal Gtk.Grid infobars;
 
-    /** HTML view that displays the message body. */
-    private ConversationWebView? web_view { get; private set; }
-
-    public bool is_content_loaded {
+    /**
+     * Emitted when web_view's content has finished loaded.
+     *
+     * See {@link Components.WebView.is_content_loaded} for details.
+     */
+    internal bool is_content_loaded {
         get {
-            return (web_view == null)? false : web_view.is_content_loaded;
+            return this.web_view != null && this.web_view.is_content_loaded;
         }
     }
 
+    /** HTML view that displays the message body. */
+    private ConversationWebView? web_view { get; private set; }
+
     // The message headers represented by this view
     private Geary.EmailHeaderSet headers;
 
@@ -361,8 +366,7 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
     /**
      * Emitted when web_view's content has finished loaded.
      *
-     * See {@link is_content_loaded} for detail about when this is
-     * emitted.
+     * See {@link Components.WebView.is_content_loaded} for details.
      */
     public signal void content_loaded();
 


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