From cece4687ac9fed887e0775c2914df1ddfc571fcf Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 1 Mar 2004 15:53:44 +0000 Subject: Export ephy_statusbar_add_widget() for use by extensions. 2004-03-01 Christian Persch * src/ephy-statusbar.c: (create_statusbar_security_icon), (ephy_statusbar_add_widget): * src/ephy-statusbar.h: Export ephy_statusbar_add_widget() for use by extensions. --- src/ephy-statusbar.c | 16 +++++++++++++--- src/ephy-statusbar.h | 3 +++ 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c index 016ac5044..310244f80 100755 --- a/src/ephy-statusbar.c +++ b/src/ephy-statusbar.c @@ -111,9 +111,9 @@ create_statusbar_security_icon (EphyStatusbar *s) gtk_widget_show_all (s->security_frame); - gtk_box_pack_start (GTK_BOX (s), - GTK_WIDGET (s->security_frame), - FALSE, TRUE, 0); + gtk_box_pack_end (GTK_BOX (s), + GTK_WIDGET (s->security_frame), + FALSE, TRUE, 0); } static void @@ -190,3 +190,13 @@ ephy_statusbar_set_progress (EphyStatusbar *t, fraction); } } + +void +ephy_statusbar_add_widget (EphyStatusbar *statusbar, + GtkWidget *widget) +{ + g_return_if_fail (EPHY_IS_STATUSBAR (statusbar)); + g_return_if_fail (GTK_IS_WIDGET (widget)); + + gtk_box_pack_start (GTK_BOX (statusbar), widget, FALSE, FALSE, 0); +} diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h index de382fd05..34ad88ef5 100644 --- a/src/ephy-statusbar.h +++ b/src/ephy-statusbar.h @@ -65,6 +65,9 @@ void ephy_statusbar_set_security_state (EphyStatusbar *statusbar, void ephy_statusbar_set_progress (EphyStatusbar *statusbar, int progress); +void ephy_statusbar_add_widget (EphyStatusbar *statusbar, + GtkWidget *widget); + G_END_DECLS #endif -- cgit v1.2.3