diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-08-28 23:52:20 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-01 02:34:01 +0800 |
commit | bab19d14a7714bc7929cc7d51699e59127fa921e (patch) | |
tree | 17ca29465f914dc6b9955b0db611f1a8361d0535 /src | |
parent | dadd9beeff69b082e81f9c4833b06c842cb54927 (diff) | |
download | gsoc2013-epiphany-bab19d14a7714bc7929cc7d51699e59127fa921e.tar.gz gsoc2013-epiphany-bab19d14a7714bc7929cc7d51699e59127fa921e.tar.zst gsoc2013-epiphany-bab19d14a7714bc7929cc7d51699e59127fa921e.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | 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 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 |