diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | src/statusbar.c | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -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); |