[devhelp] window: remove compilation warning when using webkit2
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] window: remove compilation warning when using webkit2
- Date: Fri, 1 Feb 2013 16:21:14 +0000 (UTC)
commit f6d74a15dfc510bc5a9acc9cba7b6d9d30a664c2
Author: Aleksander Morgado <aleksander lanedo com>
Date: Fri Feb 1 17:18:02 2013 +0100
window: remove compilation warning when using webkit2
src/dh-window.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index c5a3b05..b860069 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -800,13 +800,11 @@ window_web_view_navigation_policy_decision_requested (WebKitWebView
DhWindow *window)
#endif
{
- DhWindowPriv *priv;
const char *uri;
#ifdef HAVE_WEBKIT2
WebKitNavigationPolicyDecision *navigation_decision;
#endif
- priv = window->priv;
#ifdef HAVE_WEBKIT2
if (type != WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION)
@@ -863,6 +861,9 @@ window_web_view_navigation_policy_decision_requested (WebKitWebView
#ifndef HAVE_WEBKIT2
/* We already do this in load_changed_cb() for webkit2 */
if (web_view == window_get_active_web_view (window)) {
+ DhWindowPriv *priv;
+
+ priv = window->priv;
dh_sidebar_select_uri (DH_SIDEBAR (priv->sidebar), uri);
window_check_history (window, web_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]