From bab19d14a7714bc7929cc7d51699e59127fa921e Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Tue, 28 Aug 2012 18:52:20 +0300 Subject: 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 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ephy-home-action.c b/src/ephy-home-action.c index f6d03491b..2d8e02d8e 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 -- cgit