aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-02-17 22:48:14 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-22 18:21:10 +0800
commite4d54d6de30699fca0374e8b99f31c5ba1f70e78 (patch)
treeee5483ba48421341c1460b90afbc40563717887a
parent3e94eddc9304ffcc49b910c646bbff437fc5829d (diff)
downloadgsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.tar
gsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.tar.gz
gsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.tar.bz2
gsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.tar.lz
gsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.tar.xz
gsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.tar.zst
gsoc2013-empathy-e4d54d6de30699fca0374e8b99f31c5ba1f70e78.zip
Get the factory in _constructed because connection property is not set yet in _init
-rw-r--r--libempathy/empathy-tp-contact-list.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 4937f5657..876e356f4 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -701,6 +701,8 @@ tp_contact_list_constructed (GObject *list)
const gchar *protocol_name = NULL;
const gchar *names[] = {NULL, NULL};
+ priv->factory = empathy_tp_contact_factory_dup_singleton (priv->connection);
+
names[0] = "publish";
tp_cli_connection_call_request_handles (priv->connection,
-1,
@@ -732,7 +734,7 @@ tp_contact_list_constructed (GObject *list)
* put all contacts into a special group in that case.
* FIXME: Default group should be an information in the profile */
//protocol_name = tp_connection_get_protocol (priv->connection);
- if (!tp_strdiff (protocol_name, "local-xmpp") == 0) {
+ if (!tp_strdiff (protocol_name, "local-xmpp")) {
priv->protocol_group = _("People nearby");
}
}
@@ -802,7 +804,6 @@ empathy_tp_contact_list_init (EmpathyTpContactList *list)
EMPATHY_TYPE_TP_CONTACT_LIST, EmpathyTpContactListPriv);
list->priv = priv;
- priv->factory = empathy_tp_contact_factory_dup_singleton (priv->connection);
/* Map group's name to group's channel */
priv->groups = g_hash_table_new_full (g_str_hash, g_str_equal,