aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-statusbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-09-13 18:24:56 +0800
committerChristian Persch <chpe@src.gnome.org>2004-09-13 18:24:56 +0800
commit2606279995f614634062e0aeb9833c482db5d083 (patch)
tree625e6ae5d03052e753c3322397b41f4174ca3926 /src/ephy-statusbar.c
parent79ec35d68d698710604fd4e9682188ae28ba1ae0 (diff)
downloadgsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.tar
gsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.tar.gz
gsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.tar.bz2
gsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.tar.lz
gsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.tar.xz
gsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.tar.zst
gsoc2013-epiphany-2606279995f614634062e0aeb9833c482db5d083.zip
Merging pre-gnome-2-10 branch to HEAD.
2004-09-13 Christian Persch <chpe@cvs.gnome.org> Merging pre-gnome-2-10 branch to HEAD. Splitting ChangeLog.
Diffstat (limited to 'src/ephy-statusbar.c')
-rwxr-xr-xsrc/ephy-statusbar.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c
index 8e2e8c475..697af416d 100755
--- a/src/ephy-statusbar.c
+++ b/src/ephy-statusbar.c
@@ -236,22 +236,18 @@ ephy_statusbar_new (void)
/**
* ephy_statusbar_set_security_state:
* @statusbar: an #EphyStatusbar
- * @secure: whether to set the icon to show secure or insecure
+ * @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,
- gboolean secure,
+ const char *stock_id,
const char *tooltip)
{
- const char *stock;
-
- stock = secure ? EPHY_STOCK_SECURE : EPHY_STOCK_UNSECURE;
-
- gtk_image_set_from_stock (GTK_IMAGE (statusbar->priv->security_icon), stock,
- GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_stock (GTK_IMAGE (statusbar->priv->security_icon),
+ stock_id, GTK_ICON_SIZE_MENU);
gtk_tooltips_set_tip (statusbar->tooltips, statusbar->priv->security_evbox,
tooltip, NULL);