diff options
Diffstat (limited to 'src/ephy-statusbar.c')
-rwxr-xr-x | src/ephy-statusbar.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c index 74ea81226..d45942d97 100755 --- a/src/ephy-statusbar.c +++ b/src/ephy-statusbar.c @@ -300,12 +300,12 @@ ephy_statusbar_set_progress (EphyStatusbar *statusbar, /** * ephy_statusbar_add_widget: - * @statusbar: a #EphyStatusbar + * @statusbar: an #EphyStatusbar * @widget: a #GtkWidget * * Adds the @widget to the statusbar. Use this function whenever you want to * add a widget to the statusbar. You can remove the widget again with - * gtk_container_remove(). + * ephy_statusbar_remove_widget(). **/ void ephy_statusbar_add_widget (EphyStatusbar *statusbar, @@ -326,3 +326,22 @@ ephy_statusbar_add_widget (EphyStatusbar *statusbar, gtk_frame_set_shadow_type (GTK_FRAME (widget), shadow); } } + +/** + * ephy_statusbar_remove_widget: + * @statusbar: an #EphyStatusbar + * @widget: a #GtkWidget + * + * Removes @widget, which must have been added to @statusbar using + * ephy_statusbar_add_widget (). + */ +void +ephy_statusbar_remove_widget (EphyStatusbar *statusbar, + GtkWidget *widget) +{ + g_return_if_fail (EPHY_IS_STATUSBAR (statusbar)); + g_return_if_fail (GTK_IS_WIDGET (widget)); + + gtk_container_remove (GTK_CONTAINER (statusbar->priv->icon_container), + widget); +} |