aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-09-08 23:53:51 +0800
committerXan Lopez <xlopez@igalia.com>2011-09-09 04:53:12 +0800
commitc044acd19e68216221a157cfa884f90f5d3739a2 (patch)
tree1a28ed94b372f916821183da9fce014c43bf289b
parent5ff57f9a474ee163133231dc2f8e3fde223b4e7d (diff)
downloadgsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.tar
gsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.tar.gz
gsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.tar.bz2
gsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.tar.lz
gsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.tar.xz
gsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.tar.zst
gsoc2013-epiphany-c044acd19e68216221a157cfa884f90f5d3739a2.zip
ephy-toolbar: undo this hack
We'll do things properly now.
-rw-r--r--src/ephy-toolbar.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 5879c082b..ed67a70f9 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -331,10 +331,8 @@ ephy_toolbar_set_window (EphyToolbar *toolbar,
"stock_id", STOCK_NEW_TAB,
"tooltip", _("Open a new tab"),
NULL);
-
- if (ephy_embed_shell_get_mode (embed_shell) != EPHY_EMBED_SHELL_MODE_APPLICATION)
- g_signal_connect_swapped (action, "open-link",
- G_CALLBACK (ephy_link_open), toolbar);
+ g_signal_connect_swapped (action, "open-link",
+ G_CALLBACK (ephy_link_open), toolbar);
gtk_action_group_add_action_with_accel (priv->action_group, action, "<control>T");
@@ -346,9 +344,8 @@ ephy_toolbar_set_window (EphyToolbar *toolbar,
"stock_id", STOCK_NEW_WINDOW,
"tooltip", _("Open a new window"),
NULL);
- if (ephy_embed_shell_get_mode (embed_shell) != EPHY_EMBED_SHELL_MODE_APPLICATION)
- g_signal_connect_swapped (action, "open-link",
- G_CALLBACK (ephy_link_open), toolbar);
+ g_signal_connect_swapped (action, "open-link",
+ G_CALLBACK (ephy_link_open), toolbar);
gtk_action_group_add_action_with_accel (priv->action_group, action, "<control>N");