From 57e1bece15f78b6372e57f51937ab42e9f77fe07 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Fri, 15 Jun 2012 08:49:35 +0200 Subject: ephy-shell: move variable to the only scope where it's used --- src/ephy-shell.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 08dbc15c4..caa3c843d 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -683,9 +683,8 @@ ephy_shell_new_tab_full (EphyShell *shell, gboolean jump_to = FALSE; gboolean active_is_blank = FALSE; gboolean copy_history = TRUE; - GtkWidget *nb; - int position = -1; gboolean is_empty = FALSE; + int position = -1; if (flags & EPHY_NEW_TAB_OPEN_PAGE) open_page = TRUE; if (flags & EPHY_NEW_TAB_IN_NEW_WINDOW) in_new_window = TRUE; @@ -708,7 +707,7 @@ ephy_shell_new_tab_full (EphyShell *shell, if (flags & EPHY_NEW_TAB_APPEND_AFTER) { if (previous_embed) { - nb = ephy_window_get_notebook (window); + GtkWidget *nb = ephy_window_get_notebook (window); /* FIXME this assumes the tab is the direct notebook child */ position = gtk_notebook_page_num (GTK_NOTEBOOK (nb), GTK_WIDGET (previous_embed)) + 1; -- cgit v1.2.3