[empathy] account-settings: use TpAccount's functions for schemes instead of Empathy's



commit c07fb4e3252593b3be0b7d7b1a802a0639334c10
Author: Marco Barisione <marco barisione collabora co uk>
Date:   Wed May 8 14:49:45 2013 +0100

    account-settings: use TpAccount's functions for schemes instead of Empathy's
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699492

 tp-account-widgets/tpaw-account-settings.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/tp-account-widgets/tpaw-account-settings.c b/tp-account-widgets/tpaw-account-settings.c
index 23c2ab9..3d27a99 100644
--- a/tp-account-widgets/tpaw-account-settings.c
+++ b/tp-account-widgets/tpaw-account-settings.c
@@ -458,6 +458,12 @@ tpaw_account_settings_get_password_cb (GObject *source,
   g_signal_emit (self, signals[PASSWORD_RETRIEVED], 0);
 }
 
+static gboolean
+account_has_uri_scheme_tel (TpAccount *account)
+{
+  return tp_account_associated_with_uri_scheme (account, "tel");
+}
+
 static GVariant * tpaw_account_settings_dup (
     TpawAccountSettings *settings,
     const gchar *param);
@@ -499,7 +505,7 @@ tpaw_account_settings_check_readyness (TpawAccountSettings *self)
       priv->icon_name =
         g_strdup (tp_account_get_icon_name (priv->account));
 
-      priv->uri_scheme_tel = empathy_account_has_uri_scheme_tel (priv->account);
+      priv->uri_scheme_tel = account_has_uri_scheme_tel (priv->account);
     }
 
   if (priv->protocol_obj == NULL)
@@ -846,7 +852,7 @@ tpaw_account_settings_discard_changes (TpawAccountSettings *settings)
   priv->password = g_strdup (priv->password_original);
 
   if (priv->account != NULL)
-    priv->uri_scheme_tel = empathy_account_has_uri_scheme_tel (priv->account);
+    priv->uri_scheme_tel = account_has_uri_scheme_tel (priv->account);
   else
     priv->uri_scheme_tel = FALSE;
 }
@@ -1269,7 +1275,7 @@ update_account_uri_schemes (TpawAccountSettings *self)
 {
   TpawAccountSettingsPriv *priv = GET_PRIV (self);
 
-  if (priv->uri_scheme_tel == empathy_account_has_uri_scheme_tel (
+  if (priv->uri_scheme_tel == account_has_uri_scheme_tel (
         priv->account))
     return;
 


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