[empathy] tp-chat: use TpProxy accessors



commit 9bccca3b9ade5045a607ab97e90f30813fabede6
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jun 6 13:49:57 2012 +0200

    tp-chat: use TpProxy accessors
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677545

 libempathy/empathy-tp-chat.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 431de6e..449d19a 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1100,8 +1100,6 @@ empathy_tp_chat_new (TpSimpleClientFactory *factory,
     const gchar *object_path,
     const GHashTable *immutable_properties)
 {
-  TpProxy *conn_proxy = (TpProxy *) conn;
-
   g_return_val_if_fail (TP_IS_ACCOUNT (account), NULL);
   g_return_val_if_fail (TP_IS_CONNECTION (conn), NULL);
   g_return_val_if_fail (immutable_properties != NULL, NULL);
@@ -1110,8 +1108,8 @@ empathy_tp_chat_new (TpSimpleClientFactory *factory,
       "factory", factory,
        "account", account,
        "connection", conn,
-       "dbus-daemon", conn_proxy->dbus_daemon,
-       "bus-name", conn_proxy->bus_name,
+       "dbus-daemon", tp_proxy_get_dbus_daemon (conn),
+       "bus-name", tp_proxy_get_bus_name (conn),
        "object-path", object_path,
        "channel-properties", immutable_properties,
        NULL);



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