aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-06-15 14:49:35 +0800
committerXan Lopez <xan@igalia.com>2012-06-15 14:49:35 +0800
commit57e1bece15f78b6372e57f51937ab42e9f77fe07 (patch)
tree138cf082384d5cabc4588c65ef211fc7b95c378e /src
parenta279d7c8316c3a21d4000c45b38e25f55b339b43 (diff)
downloadgsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.tar
gsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.tar.gz
gsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.tar.bz2
gsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.tar.lz
gsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.tar.xz
gsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.tar.zst
gsoc2013-epiphany-57e1bece15f78b6372e57f51937ab42e9f77fe07.zip
ephy-shell: move variable to the only scope where it's used
Diffstat (limited to 'src')
-rw-r--r--src/ephy-shell.c5
1 files changed, 2 insertions, 3 deletions
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;