We weren't using the persona we just created for some reason.
TpAccount *account;
TpfPersonaStore *store;
FolksIndividual *individual;
TpAccount *account;
TpfPersonaStore *store;
FolksIndividual *individual;
- TpfPersona *persona_new;
GeeSet *personas;
if (self->priv->add_temp_ctx != ctx)
GeeSet *personas;
if (self->priv->add_temp_ctx != ctx)
personas = GEE_SET (
gee_hash_set_new (FOLKS_TYPE_PERSONA, g_object_ref, g_object_unref,
g_direct_hash, g_direct_equal));
personas = GEE_SET (
gee_hash_set_new (FOLKS_TYPE_PERSONA, g_object_ref, g_object_unref,
g_direct_hash, g_direct_equal));
- persona_new = tpf_persona_new (contacts[0], store);
- gee_collection_add (GEE_COLLECTION (personas),
- tpf_persona_new (contacts[0], store));
+
+ persona = tpf_persona_new (contacts[0], store);
+
+ gee_collection_add (GEE_COLLECTION (personas), persona);
individual = folks_individual_new (personas);
individual = folks_individual_new (personas);
NULL, NULL))
empathy_individual_view_select_first (self->priv->view);
NULL, NULL))
empathy_individual_view_select_first (self->priv->view);
- g_clear_object (&persona_new);
+ g_clear_object (&persona);
g_clear_object (&personas);
g_object_unref (store);
}
g_clear_object (&personas);
g_object_unref (store);
}