[geary/wip/728002-webkit2] Fix conversation message link tooltips appearing in the wrong place.



commit b41d9de559ca8ceff46b8bd10598e78930183f27
Author: Michael James Gratton <mike vee net>
Date:   Fri Jan 20 00:05:48 2017 +1100

    Fix conversation message link tooltips appearing in the wrong place.
    
    * src/client/conversation-viewer/conversation-message.vala
      (ConversationMessage::on_mouse_target_changed): Unset the tooltip text
      when pointer exits a link.

 .../conversation-viewer/conversation-message.vala  |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-message.vala 
b/src/client/conversation-viewer/conversation-message.vala
index 86fb187..f432a60 100644
--- a/src/client/conversation-viewer/conversation-message.vala
+++ b/src/client/conversation-viewer/conversation-message.vala
@@ -930,10 +930,10 @@ public class ConversationMessage : Gtk.Grid {
     private void on_mouse_target_changed(WebKit.WebView web_view,
                                          WebKit.HitTestResult hit_test,
                                          uint modifiers) {
-        if (hit_test.context_is_link()) {
-            this.body_container.set_tooltip_text(hit_test.get_link_uri());
-            this.body_container.trigger_tooltip_query();
-        }
+        this.body_container.set_tooltip_text(
+            hit_test.context_is_link() ? hit_test.get_link_uri() : null
+        );
+        this.body_container.trigger_tooltip_query();
     }
 
     // // Check for possible phishing links, displays a popover if found.


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