[epiphany] ephy-toolbar: undo this hack



commit c044acd19e68216221a157cfa884f90f5d3739a2
Author: Xan Lopez <xlopez igalia com>
Date:   Thu Sep 8 17:53:51 2011 +0200

    ephy-toolbar: undo this hack
    
    We'll do things properly now.

 src/ephy-toolbar.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 5879c08..ed67a70 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");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]