aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-manager.c')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-manager.c6
1 files changed, 4 insertions, 2 deletions
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 2ba538b63f..a4b61def7e 100644
--- a/addressbook/gui/component/select-names/e-select-names-manager.c
+++ b/addressbook/gui/component/select-names/e-select-names-manager.c
@@ -394,7 +394,6 @@ entry_destroyed(EEntry *entry, ESelectNamesManager *manager)
}
}
}
- gtk_object_unref(GTK_OBJECT(manager));
}
static void
@@ -502,6 +501,8 @@ e_select_names_manager_create_entry (ESelectNamesManager *manager, const char *i
entry->entry = eentry;
entry->id = (char *)id;
+ gtk_object_ref (GTK_OBJECT (entry->entry));
+
model = e_select_names_text_model_new (section->model);
e_list_append (manager->entries, entry);
g_free(entry);
@@ -520,9 +521,10 @@ e_select_names_manager_create_entry (ESelectNamesManager *manager, const char *i
"use_ellipsis", TRUE,
"allow_newlines", FALSE,
NULL);
+
gtk_signal_connect(GTK_OBJECT(eentry), "destroy",
GTK_SIGNAL_FUNC(entry_destroyed), manager);
- gtk_object_ref(GTK_OBJECT(manager));
+
return GTK_WIDGET(eentry);
}
}