[epiphany] ephy-shell: move variable to the only scope where it's used
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-shell: move variable to the only scope where it's used
- Date: Fri, 15 Jun 2012 06:50:48 +0000 (UTC)
commit 57e1bece15f78b6372e57f51937ab42e9f77fe07
Author: Xan Lopez <xan igalia com>
Date: Fri Jun 15 08:49:35 2012 +0200
ephy-shell: move variable to the only scope where it's used
src/ephy-shell.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 08dbc15..caa3c84 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]