[evolution/wip/webkit2] EWebView - uri can be used uninitialized
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EWebView - uri can be used uninitialized
- Date: Fri, 4 Mar 2016 08:00:30 +0000 (UTC)
commit 742b9722586712a3444ff813cb4cbb4c3c01a517
Author: Tomas Popela <tpopela redhat com>
Date: Fri Mar 4 08:59:22 2016 +0100
EWebView - uri can be used uninitialized
e-util/e-web-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 8e60d7d..5e4c0c4 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -563,6 +563,9 @@ web_view_mouse_target_changed_cb (EWebView *web_view,
EWebViewClass *class;
const gchar *title, *uri;
+ title = webkit_hit_test_result_get_link_title (hit_test_result);
+ uri = webkit_hit_test_result_get_link_uri (hit_test_result);
+
web_view->priv->has_hover_link = uri && *uri;
/* XXX WebKitWebView does not provide a class method for
@@ -572,9 +575,6 @@ web_view_mouse_target_changed_cb (EWebView *web_view,
class = E_WEB_VIEW_GET_CLASS (web_view);
g_return_if_fail (class->hovering_over_link != NULL);
- title = webkit_hit_test_result_get_link_title (hit_test_result);
- uri = webkit_hit_test_result_get_link_uri (hit_test_result);
-
class->hovering_over_link (web_view, title, uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]