From 6fb6efa2850bda26532bd1318648fdf61436a804 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 1 May 2004 16:07:34 +0000 Subject: Make the statusbar's GtkTooltips publicly accessibly. 2004-05-01 Christian Persch * src/ephy-statusbar.c: (ephy_statusbar_init), (ephy_statusbar_finalize), (ephy_statusbar_set_security_state): * src/ephy-statusbar.h: Make the statusbar's GtkTooltips publicly accessibly. --- ChangeLog | 8 ++++++++ src/ephy-statusbar.c | 12 +++++------- src/ephy-statusbar.h | 2 ++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15bdc8f4c..d507b2677 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-05-01 Christian Persch + + * src/ephy-statusbar.c: (ephy_statusbar_init), + (ephy_statusbar_finalize), (ephy_statusbar_set_security_state): + * src/ephy-statusbar.h: + + Make the statusbar's GtkTooltips publicly accessibly. + 2004-04-30 Piers Cornwell * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c index 860627e13..5545e1378 100755 --- a/src/ephy-statusbar.c +++ b/src/ephy-statusbar.c @@ -33,7 +33,6 @@ #include #include #include -#include static void ephy_statusbar_class_init (EphyStatusbarClass *klass); static void ephy_statusbar_init (EphyStatusbar *t); @@ -47,7 +46,6 @@ struct EphyStatusbarPrivate { GtkWidget *security_icon; GtkWidget *progressbar; - GtkTooltips *tooltips; GtkWidget *security_evbox; }; @@ -132,9 +130,9 @@ ephy_statusbar_init (EphyStatusbar *t) { t->priv = EPHY_STATUSBAR_GET_PRIVATE (t); - t->priv->tooltips = gtk_tooltips_new (); - g_object_ref (G_OBJECT (t->priv->tooltips)); - gtk_object_sink (GTK_OBJECT (t->priv->tooltips)); + t->tooltips = gtk_tooltips_new (); + g_object_ref (G_OBJECT (t->tooltips)); + gtk_object_sink (GTK_OBJECT (t->tooltips)); gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (t), FALSE); @@ -147,7 +145,7 @@ ephy_statusbar_finalize (GObject *object) { EphyStatusbar *t = EPHY_STATUSBAR (object); - g_object_unref (t->priv->tooltips); + g_object_unref (t->tooltips); G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -185,7 +183,7 @@ ephy_statusbar_set_security_state (EphyStatusbar *statusbar, gtk_image_set_from_stock (GTK_IMAGE (statusbar->priv->security_icon), stock, GTK_ICON_SIZE_MENU); - gtk_tooltips_set_tip (statusbar->priv->tooltips, statusbar->priv->security_evbox, + gtk_tooltips_set_tip (statusbar->tooltips, statusbar->priv->security_evbox, tooltip, NULL); } diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h index 34ad88ef5..ed6c44844 100644 --- a/src/ephy-statusbar.h +++ b/src/ephy-statusbar.h @@ -24,6 +24,7 @@ #define EPHY_STATUSBAR_H #include +#include G_BEGIN_DECLS @@ -43,6 +44,7 @@ struct EphyStatusbar GtkStatusbar parent; /*< public >*/ + GtkTooltips *tooltips; GtkWidget *security_frame; /*< private >*/ -- cgit v1.2.3