aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/component/select-names/e-select-names-manager.c11
2 files changed, 16 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 4274bd02c1..a3a2fccd69 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-06 Jon Trowbridge <trow@ximian.com>
+
+ * gui/component/select-names/e-select-names-manager.c
+ (e_select_names_manager_new): db isn't a BonoboObject, so don't
+ bonobo_object_unref it!
+
2001-10-05 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names.c
diff --git a/addressbook/gui/component/select-names/e-select-names-manager.c b/addressbook/gui/component/select-names/e-select-names-manager.c
index 2d8501411b..0a53e989d7 100644
--- a/addressbook/gui/component/select-names/e-select-names-manager.c
+++ b/addressbook/gui/component/select-names/e-select-names-manager.c
@@ -134,7 +134,9 @@ e_select_names_manager_new (void)
else
manager->completion_book = NULL;
- bonobo_object_unref (BONOBO_OBJECT (db));
+ CORBA_exception_init (&ev);
+ bonobo_object_release_unref (db, &ev);
+ CORBA_exception_free (&ev);
return manager;
}
@@ -178,6 +180,13 @@ e_select_names_manager_destroy (GtkObject *object)
gtk_object_unref(GTK_OBJECT(manager->sections));
gtk_object_unref(GTK_OBJECT(manager->entries));
+
+#ifdef E_SELECT_NAMES_MANAGERS_EVER_START_DYING
+ if (manager->names) {
+ gtk_widget_destroy (GTK_WIDGET (manager->names));
+ manager->names = NULL;
+ }
+#endif
}