diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-05-11 22:06:25 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-05-11 22:06:25 +0800 |
commit | 37b95eca0168c8542153c7bd2076a243b34fdb99 (patch) | |
tree | a9102380bc8ca38cda20f86a66255fc3bc339cc8 /src/statusbar.c | |
parent | 043f4445af1eed2b00695036c4c2ec1c6eb6ed87 (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'src/statusbar.c')
-rwxr-xr-x | src/statusbar.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |