[Telepathy-commits] [telepathy-sofiasip/aliasing] Reverted the normalize context to be TpsipConnection

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Wed Oct 8 01:47:21 PDT 2008


---
 src/sip-connection-helpers.c |    4 +++-
 src/sip-connection.c         |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/sip-connection-helpers.c b/src/sip-connection-helpers.c
index a2417e6..5b29674 100644
--- a/src/sip-connection-helpers.c
+++ b/src/sip-connection-helpers.c
@@ -736,7 +736,9 @@ tpsip_handle_normalize (TpHandleRepoIface *repo,
                         gpointer context,
                         GError **error)
 {
-  const url_t *base_url = context;
+  TpsipConnection *conn = TPSIP_CONNECTION (context);
+  TpsipConnectionPrivate *priv = TPSIP_CONNECTION_GET_PRIVATE (conn);
+  const url_t *base_url = priv->account_url;
   su_home_t home[1] = { SU_HOME_INIT(home) };
   url_t *url;
   gchar *retval = NULL;
diff --git a/src/sip-connection.c b/src/sip-connection.c
index bfff378..b378e98 100644
--- a/src/sip-connection.c
+++ b/src/sip-connection.c
@@ -166,6 +166,7 @@ tpsip_create_handle_repos (TpBaseConnection *conn,
       (TpHandleRepoIface *)g_object_new (TP_TYPE_DYNAMIC_HANDLE_REPO,
           "handle-type", TP_HANDLE_TYPE_CONTACT,
           "normalize-function", tpsip_handle_normalize,
+          "default-normalize-context", conn,
           NULL);
 }
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list