[empathy] inline set_alias_on_account()



commit aaa8d50fa75585a71d61332a8109916099ce35a4
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Mar 10 11:59:46 2011 +0100

    inline set_alias_on_account()

 libempathy-gtk/empathy-contact-widget.c |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 3524767..b82ad16 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
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]