aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-view.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index c757d464f5..752865b4c9 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2004-10-18 Not Zed <NotZed@Ximian.com>
+
+ ** See bug #68006.
+
+ * em-folder-view.c (emfv_init): dont ref/sink the invisible.
+ (emfv_destroy): just destroy it here.
+
2004-10-15 Not Zed <NotZed@Ximian.com>
* em-composer-utils.c (create_new_composer):
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index ff53fa4eb0..a87dc02dba 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -190,8 +190,6 @@ emfv_init(GObject *o)
g_signal_connect (emfv->preview, "on_url", G_CALLBACK (emfv_on_url_cb), emfv);
p->invisible = gtk_invisible_new();
- g_object_ref(p->invisible);
- gtk_object_sink((GtkObject *)p->invisible);
g_signal_connect(p->invisible, "selection_get", G_CALLBACK(emfv_selection_get), emfv);
g_signal_connect(p->invisible, "selection_clear_event", G_CALLBACK(emfv_selection_clear_event), emfv);
gtk_selection_add_target(p->invisible, GDK_SELECTION_PRIMARY, GDK_SELECTION_TYPE_STRING, 0);
@@ -252,7 +250,7 @@ emfv_destroy (GtkObject *o)
}
if (p->invisible) {
- g_object_unref(p->invisible);
+ gtk_object_destroy(p->invisible);
p->invisible = NULL;
}