diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-02 00:07:34 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-02 00:07:34 +0800 |
commit | 6fb6efa2850bda26532bd1318648fdf61436a804 (patch) | |
tree | 3cf025a3c96604fa3b7ca0a65dd9b5c5189ddd4a | |
parent | 72e67cfe0d23352fe6864b48ddc5a648f51ee80a (diff) | |
download | gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.tar gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.tar.gz gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.tar.bz2 gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.tar.lz gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.tar.xz gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.tar.zst gsoc2013-epiphany-6fb6efa2850bda26532bd1318648fdf61436a804.zip |
Make the statusbar's GtkTooltips publicly accessibly.
2004-05-01 Christian Persch <chpe@cvs.gnome.org>
* 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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rwxr-xr-x | src/ephy-statusbar.c | 12 | ||||
-rw-r--r-- | src/ephy-statusbar.h | 2 |
3 files changed, 15 insertions, 7 deletions
@@ -1,3 +1,11 @@ +2004-05-01 Christian Persch <chpe@cvs.gnome.org> + + * 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 <piers@gnome.org> * 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 <gtk/gtkeventbox.h> #include <gtk/gtkimage.h> #include <gtk/gtkframe.h> -#include <gtk/gtktooltips.h> 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 <gtk/gtkstatusbar.h> +#include <gtk/gtktooltips.h> G_BEGIN_DECLS @@ -43,6 +44,7 @@ struct EphyStatusbar GtkStatusbar parent; /*< public >*/ + GtkTooltips *tooltips; GtkWidget *security_frame; /*< private >*/ |