aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-09 20:47:48 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-09 20:47:48 +0800
commitc36ed803c1d40b59e7b86051123f35b2062b95f7 (patch)
treee9013bdab1397d46c055bc8bdf0454b869499a29 /libempathy
parentb2fea5050c4b89ec3d9d8589948dd85adc757778 (diff)
downloadgsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.tar
gsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.tar.gz
gsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.tar.bz2
gsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.tar.lz
gsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.tar.xz
gsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.tar.zst
gsoc2013-empathy-c36ed803c1d40b59e7b86051123f35b2062b95f7.zip
We can now add a new contact. EmpathyContactWidget can change the contact
2007-06-09 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-contact-widget.glade: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-contact-dialogs.h: * libempathy-gtk/empathy-contact-widget.c: We can now add a new contact. EmpathyContactWidget can change the contact it's displaying on-the-fly, like that we can display info when typing the contact ID we want to add to our contact list. * libempathy/empathy-tp-contact-list.c: Fix a refcount bug. svn path=/trunk/; revision=134
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 97948a4f2..c81279043 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -562,7 +562,7 @@ empathy_tp_contact_list_get_from_id (EmpathyTpContactList *list,
contact = tp_contact_list_find (EMPATHY_CONTACT_LIST (list), id);
if (contact) {
- return contact;
+ return g_object_ref (contact);
}
/* The id is unknown, requests a new handle */
@@ -574,7 +574,7 @@ empathy_tp_contact_list_get_from_id (EmpathyTpContactList *list,
"RequestHandle for %s failed: %s", id,
error ? error->message : "No error given");
g_clear_error (&error);
- return 0;
+ return NULL;
}
handle = g_array_index(handles, guint, 0);