From ae27048386eec40d288100c83df6905b9c259d1a Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 9 Feb 2013 18:03:57 +0100 Subject: 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. --- src/ephy-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3