aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 3c4efa827..b16b2b743 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1721,34 +1721,6 @@ sync_tab_title (EphyTab *tab,
}
static void
-sync_tab_visibility (EphyTab *tab,
- GParamSpec *pspec,
- EphyWindow *window)
-{
- EphyWindowPrivate *priv = window->priv;
- GList *l, *tabs;
- gboolean visible = FALSE;
-
- if (priv->closing) return;
-
- tabs = ephy_window_get_tabs (window);
- for (l = tabs; l != NULL; l = l->next)
- {
- EphyTab *tab = EPHY_TAB(l->data);
- g_return_if_fail (EPHY_IS_TAB(tab));
-
- if (ephy_tab_get_visibility (tab))
- {
- visible = TRUE;
- break;
- }
- }
- g_list_free (tabs);
-
- g_object_set (window, "visible", visible, NULL);
-}
-
-static void
sync_tab_zoom (EphyTab *tab, GParamSpec *pspec, EphyWindow *window)
{
GtkActionGroup *action_group;
@@ -2504,8 +2476,6 @@ notebook_page_added_cb (EphyNotebook *notebook,
update_tabs_menu_sensitivity (window);
- g_signal_connect_object (tab, "notify::visibility",
- G_CALLBACK (sync_tab_visibility), window, 0);
g_signal_connect_object (tab, "open-link",
G_CALLBACK (ephy_link_open), window,
G_CONNECT_SWAPPED);
@@ -2548,9 +2518,6 @@ notebook_page_removed_cb (EphyNotebook *notebook,
ephy_extension_detach_tab (manager, window, tab);
g_signal_handlers_disconnect_by_func (G_OBJECT (tab),
- G_CALLBACK (sync_tab_visibility),
- window);
- g_signal_handlers_disconnect_by_func (G_OBJECT (tab),
G_CALLBACK (ephy_link_open),
window);