aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-07-02 19:00:55 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commitac58a4101765c64d94c18d10c59fde7fa67ea4ae (patch)
tree81336df626e7dd0e5642bdc7259ef4435f71ae90 /libempathy-gtk/empathy-contact-widget.c
parent265ea7ef4abb3df7cf6d8e1c9f4c5bfe68763179 (diff)
downloadgsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.tar
gsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.tar.gz
gsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.tar.bz2
gsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.tar.lz
gsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.tar.xz
gsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.tar.zst
gsoc2013-empathy-ac58a4101765c64d94c18d10c59fde7fa67ea4ae.zip
Allow changing of individuals' aliases
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 82b638182..76271c6fc 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1336,7 +1336,14 @@ contact_widget_entry_alias_focus_event_cb (GtkEditable *editable,
}
else
{
- empathy_contact_set_alias (information->contact, alias);
+ FolksIndividual *individual = folks_individual_from_empathy_contact (
+ information->contact);
+
+ if (individual)
+ {
+ folks_alias_set_alias (FOLKS_ALIAS (individual), alias);
+ g_object_unref (individual);
+ }
}
}