aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-05-11 22:06:25 +0800
committerXan Lopez <xan@src.gnome.org>2003-05-11 22:06:25 +0800
commit37b95eca0168c8542153c7bd2076a243b34fdb99 (patch)
treea9102380bc8ca38cda20f86a66255fc3bc339cc8
parent043f4445af1eed2b00695036c4c2ec1c6eb6ed87 (diff)
downloadgsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.tar
gsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.tar.gz
gsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.tar.bz2
gsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.tar.lz
gsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.tar.xz
gsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.tar.zst
gsoc2013-epiphany-37b95eca0168c8542153c7bd2076a243b34fdb99.zip
Fix refcount, patch by Christian.
Fix refcount, patch by Christian.
-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);