[epiphany/in-tab-overview] ephy-home-action: don't assume this will only be used for "NewTab"



commit 7e6aaf3257c1f6d3955e780cc7f745d996690211
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue Aug 28 18:52:20 2012 +0300

    ephy-home-action: don't assume this will only be used for "NewTab"
    
    If the action name is not "NewTab", just open the home page.

 src/ephy-home-action.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-home-action.c b/src/ephy-home-action.c
index f6d0349..2d8e02d 100644
--- a/src/ephy-home-action.c
+++ b/src/ephy-home-action.c
@@ -41,12 +41,12 @@ action_name_association (GtkAction *action,
 			 char *action_name,
 			 char *address)
 {
+	EphyLinkFlags flags = EPHY_LINK_HOME_PAGE;
+
 	if (g_str_equal (action_name, "FileNewTab"))
-	{
-		ephy_home_action_open (action, 
-				       address, 
-				       EPHY_LINK_NEW_TAB | EPHY_LINK_JUMP_TO | EPHY_LINK_HOME_PAGE);
-	}
+		flags |= EPHY_LINK_NEW_TAB | EPHY_LINK_JUMP_TO;
+
+	ephy_home_action_open (action, address, flags);
 }	
 
 static void



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