From af1b92ab347b134e63e406a98a373d9b409e3516 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 13 Feb 2013 00:32:25 +0100 Subject: Remove EphyWebView::visibility This once was likely used to toggle the visibility of popups, but it's now a no-op. When we re-introduce that feature we can do something similar again. --- src/ephy-window.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src') diff --git a/src/ephy-window.c b/src/ephy-window.c index ea183594e..86503aeb1 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2186,19 +2186,6 @@ ephy_window_mouse_target_changed_cb (WebKitWebView *web_view, } #endif -static void -ephy_window_visibility_cb (EphyEmbed *embed, GParamSpec *pspec, EphyWindow *window) -{ - gboolean visibility; - - visibility = ephy_web_view_get_visibility (ephy_embed_get_web_view (embed)); - - if (visibility) - gtk_widget_show (GTK_WIDGET (window)); - else - gtk_widget_hide (GTK_WIDGET (window)); -} - static void sync_embed_is_overview (EphyEmbed *embed, GParamSpec *pspec, EphyWindow *window) { @@ -2795,10 +2782,6 @@ ephy_window_connect_active_embed (EphyWindow *window) G_CALLBACK (ephy_window_dom_mouse_click_cb), window, G_CONNECT_AFTER); #endif - g_signal_connect_object (view, "notify::visibility", - G_CALLBACK (ephy_window_visibility_cb), - window, 0); - g_signal_connect_object (embed, "notify::overview-mode", G_CALLBACK (sync_embed_is_overview), window, 0); @@ -2887,9 +2870,6 @@ ephy_window_disconnect_active_embed (EphyWindow *window) g_signal_handlers_disconnect_by_func (view, G_CALLBACK (sync_tab_icon), window); - g_signal_handlers_disconnect_by_func (view, - G_CALLBACK (ephy_window_visibility_cb), - window); g_signal_handlers_disconnect_by_func (embed, G_CALLBACK (sync_embed_is_overview), -- cgit v1.2.3