[epiphany/overview] ephy-window: open links in a new tab when typed in the overview
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-window: open links in a new tab when typed in the overview
- Date: Wed, 8 Aug 2012 10:58:57 +0000 (UTC)
commit e978aabcca387e2d9e03742036bc71fc220f974e
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 8 13:57:02 2012 +0300
ephy-window: open links in a new tab when typed in the overview
src/ephy-window.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 1975625..5c09790 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -513,7 +513,10 @@ ephy_window_open_link (EphyLink *link,
else if (flags & EPHY_LINK_TYPED)
ephy_web_view_set_visit_type (ephy_embed_get_web_view (embed),
EPHY_PAGE_VISIT_TYPED);
-
+
+ if (priv->overview_mode)
+ flags |= EPHY_LINK_NEW_TAB | EPHY_LINK_JUMP_TO;
+
if (flags & (EPHY_LINK_JUMP_TO |
EPHY_LINK_NEW_TAB |
EPHY_LINK_NEW_WINDOW |
@@ -545,6 +548,9 @@ ephy_window_open_link (EphyLink *link,
ntflags |= EPHY_NEW_TAB_DONT_COPY_HISTORY;
}
+ if (priv->overview_mode)
+ ntflags |= EPHY_NEW_TAB_DONT_COPY_HISTORY;
+
new_embed = ephy_shell_new_tab
(ephy_shell,
EPHY_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (embed))),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]