From e2cbc7c8a624845a93289945243348762c1b2893 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 29 Jul 2005 20:24:23 +0000 Subject: Add accessor functions for those instead of relying on using the struct 2005-07-29 Christian Persch * src/ephy-statusbar.c: (ephy_statusbar_get_tooltips), (ephy_statusbar_get_security_frame): * src/ephy-statusbar.h: Add accessor functions for those instead of relying on using the struct members directly. --- src/ephy-statusbar.c | 29 +++++++++++++++++++++++++++++ src/ephy-statusbar.h | 4 ++++ 2 files changed, 33 insertions(+) (limited to 'src') diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c index 85ea0581e..a01b81920 100755 --- a/src/ephy-statusbar.c +++ b/src/ephy-statusbar.c @@ -345,3 +345,32 @@ ephy_statusbar_remove_widget (EphyStatusbar *statusbar, gtk_container_remove (GTK_CONTAINER (statusbar->priv->icon_container), widget); } + + +/** + * ephy_statusbar_get_tooltips: + * @statusbar: an #EphyStatusbar + * + * Return value: the statusbar's #GtkTooltips object + */ +GtkTooltips * +ephy_statusbar_get_tooltips (EphyStatusbar *statusbar) +{ + g_return_val_if_fail (EPHY_IS_STATUSBAR (statusbar), NULL); + + return statusbar->tooltips; +} + +/** + * ephy_statusbar_get_security_frame: + * @statusbar: an #EphyStatusbar + * + * Return value: 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->security_frame; +} diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h index 209d8ceb7..92ceb3b5f 100644 --- a/src/ephy-statusbar.h +++ b/src/ephy-statusbar.h @@ -61,6 +61,10 @@ GType ephy_statusbar_get_type (void); GtkWidget *ephy_statusbar_new (void); +GtkTooltips *ephy_statusbar_get_tooltips (EphyStatusbar *statusbar); + +GtkWidget *ephy_statusbar_get_security_frame (EphyStatusbar *statusbar); + void ephy_statusbar_set_security_state (EphyStatusbar *statusbar, const char *stock_id, const char *tooltip); -- cgit v1.2.3