aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rwxr-xr-xsrc/statusbar.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 51cae5dc3..8a52077f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-11 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
+
+ * src/statusbar.c: (statusbar_init), (statusbar_finalize):
+
+ Correct ref-counting of tooltips.
+
2003-05-10 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
* src/ephy-notebook.c: (ephy_notebook_init), (tab_get_label),
diff --git a/src/statusbar.c b/src/statusbar.c
index 71a97274d..50542f9f7 100755
--- a/src/statusbar.c
+++ b/src/statusbar.c
@@ -123,6 +123,8 @@ statusbar_init (Statusbar *t)
t->priv = g_new0 (StatusbarPrivate, 1);
t->priv->tooltips = gtk_tooltips_new ();
+ g_object_ref (G_OBJECT (t->priv->tooltips));
+ gtk_object_sink (GTK_OBJECT (t->priv->tooltips));
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (t), FALSE);
@@ -142,7 +144,7 @@ statusbar_finalize (GObject *object)
g_return_if_fail (t->priv != NULL);
- gtk_object_destroy (GTK_OBJECT (t->priv->tooltips));
+ g_object_unref (t->priv->tooltips);
g_free (t->priv);