From 5c348a15f9f635626811d2b70460f68f2fa8bc93 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 11 Mar 2013 10:11:24 +0100 Subject: ephy-navigation-history-action: fix compiler warnings --- src/ephy-navigation-history-action.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ephy-navigation-history-action.c b/src/ephy-navigation-history-action.c index ebb86e4cb..ce53df929 100644 --- a/src/ephy-navigation-history-action.c +++ b/src/ephy-navigation-history-action.c @@ -389,21 +389,21 @@ middle_click_handle_on_history_menu_item (EphyNavigationHistoryAction *action, #endif { EphyEmbed *new_embed = NULL; - WebKitWebView *web_view; #ifndef HAVE_WEBKIT2 + WebKitWebView *web_view; WebKitWebBackForwardList *history; -#endif GList *list; - const gchar *url; guint current; +#endif + const gchar *url; gint offset; - web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); - #ifdef HAVE_WEBKIT2 /* TODO: WebKitBackForwardList is read-only in WebKit2 */ offset = 0; #else + web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); + /* Save old history and item's offset from current */ history = webkit_web_view_get_back_forward_list (web_view); if (action->priv->direction == EPHY_NAVIGATION_HISTORY_DIRECTION_BACK) { -- cgit v1.2.3