[epiphany/in-tab-overview: 32/56] ephy-home-action: don't assume this will only be used for "NewTab"
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/in-tab-overview: 32/56] ephy-home-action: don't assume this will only be used for "NewTab"
- Date: Fri, 31 Aug 2012 12:53:16 +0000 (UTC)
commit ddddf777a03a2f6fb219dc6eafed85cb0b15ff6e
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]