[geary/bug/728002-webkit2: 103/140] Fix conversation message link tooltips appearing in the wrong place.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/bug/728002-webkit2: 103/140] Fix conversation message link tooltips appearing in the wrong place.
- Date: Tue, 31 Jan 2017 23:07:12 +0000 (UTC)
commit b47899ac69d29be7fab4c887c8e991d7d17903f2
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]