diff options
author | Xan Lopez <xan@igalia.com> | 2013-03-11 17:11:24 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-11 20:41:36 +0800 |
commit | 5c348a15f9f635626811d2b70460f68f2fa8bc93 (patch) | |
tree | 134bc03d4c9765f549e50e71d3a90fc04da594dc | |
parent | 4369ae9aa3cd7abeb03e156abb994616b4c11441 (diff) | |
download | gsoc2013-epiphany-5c348a15f9f635626811d2b70460f68f2fa8bc93.tar.gz gsoc2013-epiphany-5c348a15f9f635626811d2b70460f68f2fa8bc93.tar.zst gsoc2013-epiphany-5c348a15f9f635626811d2b70460f68f2fa8bc93.zip |
ephy-navigation-history-action: fix compiler warnings
-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) { |