diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rwxr-xr-x | src/ephy-statusbar.c | 29 | ||||
-rw-r--r-- | src/ephy-statusbar.h | 4 |
3 files changed, 42 insertions, 0 deletions
@@ -1,5 +1,14 @@ 2005-07-29 Christian Persch <chpe@cvs.gnome.org> + * 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. + +2005-07-29 Christian Persch <chpe@cvs.gnome.org> + * data/epiphany.schemas.in: Remove long description where it differed from the short 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); |