diff options
author | Adam Hooper <adamh@src.gnome.org> | 2005-01-21 12:08:38 +0800 |
---|---|---|
committer | Adam Hooper <adamh@src.gnome.org> | 2005-01-21 12:08:38 +0800 |
commit | f1a8af524780cde0043f9c3a06461d7f5e0465a1 (patch) | |
tree | 0849369d31cebce860234dcfd8664d8f4bc72183 /src/ephy-statusbar.c | |
parent | 82dffea232ae41bdb21129490fec3a3a3e9c5bf6 (diff) | |
download | gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.tar gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.tar.gz gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.tar.bz2 gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.tar.lz gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.tar.xz gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.tar.zst gsoc2013-epiphany-f1a8af524780cde0043f9c3a06461d7f5e0465a1.zip |
Added ephy_statusbar_remove_widget().
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); +} |