From aaa8d50fa75585a71d61332a8109916099ce35a4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 10 Mar 2011 11:59:46 +0100 Subject: inline set_alias_on_account() --- libempathy-gtk/empathy-contact-widget.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 352476711..b82ad1665 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -1214,15 +1214,6 @@ set_nickname_cb (GObject *source, } } -static void -set_alias_on_account (TpAccount *account, - const gchar *alias) -{ - DEBUG ("Set Account.Nickname to %s", alias); - - tp_account_set_nickname_async (account, alias, set_nickname_cb, NULL); -} - static gboolean contact_widget_entry_alias_focus_event_cb (GtkEditable *editable, GdkEventFocus *event, @@ -1239,7 +1230,9 @@ contact_widget_entry_alias_focus_event_cb (GtkEditable *editable, TpAccount * account; account = empathy_contact_get_account (information->contact); - set_alias_on_account (account, alias); + + DEBUG ("Set Account.Nickname to %s", alias); + tp_account_set_nickname_async (account, alias, set_nickname_cb, NULL); } else { -- cgit v1.2.3