aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-new-message-dialog.c
diff options
context:
space:
mode:
authorJustin Forest <justin.forest@gmail.com>2009-11-02 22:54:01 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-03 20:23:12 +0800
commita97016255a79a5b26af59411eab907d2881bc63e (patch)
treed08e95277c607f7f2929863f4e5ddf7559a58dfd /libempathy-gtk/empathy-new-message-dialog.c
parentd06aae89f84d7bee74815879047e049aa99f39d7 (diff)
downloadgsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.tar
gsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.tar.gz
gsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.tar.bz2
gsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.tar.lz
gsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.tar.xz
gsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.tar.zst
gsoc2013-empathy-a97016255a79a5b26af59411eab907d2881bc63e.zip
Autocomplete for offline contacts. Closes bug #583919.
Diffstat (limited to 'libempathy-gtk/empathy-new-message-dialog.c')
-rw-r--r--libempathy-gtk/empathy-new-message-dialog.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c
index d39f71bcc..c1069f879 100644
--- a/libempathy-gtk/empathy-new-message-dialog.c
+++ b/libempathy-gtk/empathy-new-message-dialog.c
@@ -99,23 +99,21 @@ new_message_dialog_account_changed_cb (GtkWidget *widget,
while (members) {
EmpathyContact *contact = members->data;
- if (empathy_contact_is_online (contact)) {
- DEBUG ("Adding contact ID %s, Name %s",
- empathy_contact_get_id (contact),
- empathy_contact_get_name (contact));
-
- tmpstr = g_strdup_printf ("%s (%s)",
- empathy_contact_get_name (contact),
- empathy_contact_get_id (contact));
-
- gtk_list_store_insert_with_values (store, &iter, -1,
- COMPLETION_COL_TEXT, tmpstr,
- COMPLETION_COL_ID, empathy_contact_get_id (contact),
- COMPLETION_COL_NAME, empathy_contact_get_name (contact),
- -1);
-
- g_free (tmpstr);
- }
+ DEBUG ("Adding contact ID %s, Name %s",
+ empathy_contact_get_id (contact),
+ empathy_contact_get_name (contact));
+
+ tmpstr = g_strdup_printf ("%s (%s)",
+ empathy_contact_get_name (contact),
+ empathy_contact_get_id (contact));
+
+ gtk_list_store_insert_with_values (store, &iter, -1,
+ COMPLETION_COL_TEXT, tmpstr,
+ COMPLETION_COL_ID, empathy_contact_get_id (contact),
+ COMPLETION_COL_NAME, empathy_contact_get_name (contact),
+ -1);
+
+ g_free (tmpstr);
g_object_unref (contact);
members = g_list_delete_link (members, members);