[epiphany] ephy-shell: avoid useless call to ephy_embed_shell_get_default



commit ae27048386eec40d288100c83df6905b9c259d1a
Author: Xan Lopez <xan igalia com>
Date:   Sat Feb 9 18:03:57 2013 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 29f7d79..85a92eb 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]