diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-07-02 19:00:55 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:36 +0800 |
commit | ac58a4101765c64d94c18d10c59fde7fa67ea4ae (patch) | |
tree | 81336df626e7dd0e5642bdc7259ef4435f71ae90 /libempathy-gtk/empathy-contact-widget.c | |
parent | 265ea7ef4abb3df7cf6d8e1c9f4c5bfe68763179 (diff) | |
download | gsoc2013-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.c | 9 |
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); + } } } |