aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-02-10 01:03:57 +0800
committerXan Lopez <xan@igalia.com>2013-02-10 01:03:57 +0800
commitae27048386eec40d288100c83df6905b9c259d1a (patch)
tree37ad5c5f827cc360b6ccc6584c8ad030d61d02b6 /src
parentdc593512ec224f24a6b7a3b1f67812498f4e7db2 (diff)
downloadgsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.tar
gsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.tar.gz
gsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.tar.bz2
gsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.tar.lz
gsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.tar.xz
gsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.tar.zst
gsoc2013-epiphany-ae27048386eec40d288100c83df6905b9c259d1a.zip
ephy-shell: avoid useless call to ephy_embed_shell_get_default
There's only one shell, which we already get in the first parameter. No need to ask for the shell again.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 29f7d79a3..85a92eb83 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -736,7 +736,7 @@ ephy_shell_new_tab_full (EphyShell *shell,
gboolean is_empty = FALSE;
int position = -1;
- embed_shell = ephy_embed_shell_get_default ();
+ embed_shell = EPHY_EMBED_SHELL (shell);
if (flags & EPHY_NEW_TAB_OPEN_PAGE) open_page = TRUE;
if (flags & EPHY_NEW_TAB_IN_NEW_WINDOW) in_new_window = TRUE;