[epiphany] ephy-navigation-history-action: fix compiler warnings



commit 5c348a15f9f635626811d2b70460f68f2fa8bc93
Author: Xan Lopez <xan igalia com>
Date:   Mon Mar 11 10:11:24 2013 +0100

    ephy-navigation-history-action: fix compiler warnings

 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 ebb86e4..ce53df9 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]