diff options
-rw-r--r-- | src/ephy-navigation-history-action.c | 10 |
1 files 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) { |