diff options
author | Xan Lopez <xan@igalia.com> | 2013-02-10 01:03:57 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-02-10 01:03:57 +0800 |
commit | ae27048386eec40d288100c83df6905b9c259d1a (patch) | |
tree | 37ad5c5f827cc360b6ccc6584c8ad030d61d02b6 | |
parent | dc593512ec224f24a6b7a3b1f67812498f4e7db2 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | src/ephy-shell.c | 2 |
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; |