From 97f589c9500324e55fb162cf815ec37a4a96ac63 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 12 May 2010 14:46:48 +0200 Subject: Do not show the security status in the statusbar It's already shown in the URL entry, so it's redundant. First step towards getting rid of the statusbar for good... --- doc/reference/epiphany-sections.txt | 2 -- src/ephy-statusbar.c | 45 ------------------------------------- src/ephy-statusbar.h | 6 ----- src/ephy-window.c | 3 --- 4 files changed, 56 deletions(-) diff --git a/doc/reference/epiphany-sections.txt b/doc/reference/epiphany-sections.txt index cb470fede..4757957dc 100644 --- a/doc/reference/epiphany-sections.txt +++ b/doc/reference/epiphany-sections.txt @@ -219,9 +219,7 @@ ephy_location_action_set_address EphyStatusbar EphyStatusbar ephy_statusbar_new -ephy_statusbar_get_security_frame ephy_statusbar_set_caret_mode -ephy_statusbar_set_security_state ephy_statusbar_set_popups_state ephy_statusbar_add_widget ephy_statusbar_remove_widget diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c index dfcd85b2d..4798d5d8e 100644 --- a/src/ephy-statusbar.c +++ b/src/ephy-statusbar.c @@ -46,8 +46,6 @@ struct _EphyStatusbarPrivate GtkWidget *icon_container; GtkWidget *caret_indicator; - GtkWidget *security_icon; - GtkWidget *security_evbox; GtkWidget *popups_manager_icon; GtkWidget *popups_manager_evbox; }; @@ -183,14 +181,6 @@ ephy_statusbar_init (EphyStatusbar *t) gtk_widget_show (priv->hbox); #endif - /* Create security icon */ - create_icon_frame (t, - NULL, - G_CALLBACK (padlock_button_press_cb), - &priv->security_evbox, - &priv->security_icon); - gtk_widget_show (priv->security_evbox); - /* Create popup-blocked icon */ create_icon_frame (t, EPHY_STOCK_POPUPS, @@ -233,27 +223,6 @@ ephy_statusbar_set_caret_mode (EphyStatusbar *statusbar, g_object_set (priv->caret_indicator, "visible", enabled, NULL); } -/** - * ephy_statusbar_set_security_state: - * @statusbar: an #EphyStatusbar - * @stock_id: stock-id of the icon showing the security state - * @tooltip: a string detailing the security state - * - * Sets the statusbar's security icon and its tooltip. - **/ -void -ephy_statusbar_set_security_state (EphyStatusbar *statusbar, - const char *stock_id, - const char *tooltip) -{ - EphyStatusbarPrivate *priv = statusbar->priv; - - gtk_image_set_from_stock (GTK_IMAGE (priv->security_icon), - stock_id, GTK_ICON_SIZE_MENU); - - gtk_widget_set_tooltip_text (priv->security_icon, tooltip); -} - /** * ephy_statusbar_set_popups_state: * @statusbar: an #EphyStatusbar @@ -358,17 +327,3 @@ ephy_statusbar_remove_widget (EphyStatusbar *statusbar, gtk_container_remove (GTK_CONTAINER (priv->icon_container), vsep); gtk_container_remove (GTK_CONTAINER (priv->icon_container), widget); } - -/** - * ephy_statusbar_get_security_frame: - * @statusbar: an #EphyStatusbar - * - * Return value: (transfer none): the statusbar's lock icon frame - */ -GtkWidget * -ephy_statusbar_get_security_frame (EphyStatusbar *statusbar) -{ - g_return_val_if_fail (EPHY_IS_STATUSBAR (statusbar), NULL); - - return statusbar->priv->security_evbox; -} diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h index f6b387977..48eaafc7a 100644 --- a/src/ephy-statusbar.h +++ b/src/ephy-statusbar.h @@ -61,15 +61,9 @@ GType ephy_statusbar_get_type (void); GtkWidget *ephy_statusbar_new (void); -GtkWidget *ephy_statusbar_get_security_frame (EphyStatusbar *statusbar); - void ephy_statusbar_set_caret_mode (EphyStatusbar *statusbar, gboolean enabled); -void ephy_statusbar_set_security_state (EphyStatusbar *statusbar, - const char *stock_id, - const char *tooltip); - void ephy_statusbar_set_popups_state (EphyStatusbar *statusbar, gboolean hidden, const char *tooltip); diff --git a/src/ephy-window.c b/src/ephy-window.c index f3125d625..b65ff2055 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1741,9 +1741,6 @@ sync_tab_security (EphyWebView *view, g_free (tmp); } - ephy_statusbar_set_security_state (EPHY_STATUSBAR (priv->statusbar), - stock_id, tooltip); - ephy_toolbar_set_security_state (priv->toolbar, is_secure, show_lock, stock_id, tooltip); -- cgit