diff options
-rw-r--r-- | src/ephy-tab.c | 54 | ||||
-rw-r--r-- | src/ephy-tab.h | 2 | ||||
-rw-r--r-- | src/ephy-window.c | 33 | ||||
-rw-r--r-- | src/epiphany.defs | 6 |
4 files changed, 0 insertions, 95 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c index 702e18505..e09fc268c 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -103,7 +103,6 @@ struct _EphyTabPrivate gint8 load_percent; /* Flags */ guint is_blank : 1; - guint visibility : 1; guint is_loading : 1; guint is_setting_zoom : 1; EphyEmbedSecurityLevel security_level; @@ -138,7 +137,6 @@ enum PROP_POPUPS_ALLOWED, PROP_TITLE, PROP_TYPED_ADDRESS, - PROP_VISIBLE, PROP_ZOOM }; @@ -253,7 +251,6 @@ ephy_tab_set_property (GObject *object, case PROP_SECURITY: case PROP_HIDDEN_POPUP_COUNT: case PROP_TITLE: - case PROP_VISIBLE: case PROP_ZOOM: /* read only */ break; @@ -311,9 +308,6 @@ ephy_tab_get_property (GObject *object, case PROP_TYPED_ADDRESS: g_value_set_string (value, ephy_tab_get_typed_address (tab)); break; - case PROP_VISIBLE: - g_value_set_boolean (value, priv->visibility); - break; case PROP_ZOOM: g_value_set_float (value, priv->zoom); break; @@ -521,14 +515,6 @@ ephy_tab_class_init (EphyTabClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); g_object_class_install_property (object_class, - PROP_VISIBLE, - g_param_spec_boolean ("visibility", - "Visibility", - "The tab's visibility", - TRUE, - G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); - - g_object_class_install_property (object_class, PROP_ZOOM, g_param_spec_float ("zoom", "Zoom", @@ -1237,22 +1223,6 @@ ephy_tab_set_size (EphyTab *tab, } } -/** - * ephy_tab_get_visibility: - * @tab: an #EphyTab - * - * FIXME: Nobody really knows what this does. Someone must investigate. - * - * Return value; %TRUE if @tab's "visibility" property is set - **/ -gboolean -ephy_tab_get_visibility (EphyTab *tab) -{ - g_return_val_if_fail (EPHY_IS_TAB (tab), FALSE); - - return tab->priv->visibility; -} - static void ephy_tab_load_icon (EphyTab *tab) { @@ -1916,27 +1886,6 @@ ephy_tab_popup_blocked_cb (EphyEmbed *embed, popups_manager_add (tab, url, name, features); } -static void -ephy_tab_visibility_cb (EphyEmbed *embed, gboolean visibility, - EphyTab *tab) -{ - LOG ("ephy_tab_visibility_cb tab %p visibility %d", - tab, visibility); - - if (visibility) - { - gtk_widget_show (GTK_WIDGET (tab)); - } - else - { - gtk_widget_hide (GTK_WIDGET (tab)); - } - - tab->priv->visibility = visibility; - - g_object_notify (G_OBJECT (tab), "visibility"); -} - static gboolean open_link_in_new (EphyTab *tab, const char *link_address, @@ -2208,9 +2157,6 @@ ephy_tab_init (EphyTab *tab) g_signal_connect_object (embed, "ge_popup_blocked", G_CALLBACK (ephy_tab_popup_blocked_cb), tab, 0); - g_signal_connect_object (embed, "visibility", - G_CALLBACK (ephy_tab_visibility_cb), - tab, 0); g_signal_connect_object (embed, "ge_dom_mouse_click", G_CALLBACK (ephy_tab_dom_mouse_click_cb), tab, 0); diff --git a/src/ephy-tab.h b/src/ephy-tab.h index 1993ba2f5..425afc796 100644 --- a/src/ephy-tab.h +++ b/src/ephy-tab.h @@ -117,8 +117,6 @@ const char *ephy_tab_get_title (EphyTab *tab); const char *ephy_tab_get_title_composite (EphyTab *tab); -gboolean ephy_tab_get_visibility (EphyTab *tab); - float ephy_tab_get_zoom (EphyTab *tab); /* private */ 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); diff --git a/src/epiphany.defs b/src/epiphany.defs index 51f7c176f..695b4a273 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -3440,12 +3440,6 @@ (return-type "const-char*") ) -(define-method get_visibility - (of-object "EphyTab") - (c-name "ephy_tab_get_visibility") - (return-type "gboolean") -) - (define-method get_zoom (of-object "EphyTab") (c-name "ephy_tab_get_zoom") |