]> git.0d.be Git - empathy.git/commitdiff
import-utils: use TpConnectionManager accessors
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 6 Jun 2012 11:55:54 +0000 (13:55 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 7 Jun 2012 07:12:53 +0000 (09:12 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=677545

src/empathy-import-utils.c

index 0c878e8f6aeb6c2915508fbe225c009060450e80..2c942b58586eb895bb66b4d56ad0217acb0fe442 100644 (file)
@@ -97,7 +97,7 @@ empathy_import_protocol_is_supported (const gchar *protocol,
           (const gchar*) protocol))
         {
           if (!tp_strdiff (protocol, "irc")
-              && !tp_strdiff (tp_cm->name, "haze"))
+              && !tp_strdiff (tp_connection_manager_get_name (tp_cm), "haze"))
               continue;
 
           if (!proto_is_supported)
@@ -111,7 +111,7 @@ empathy_import_protocol_is_supported (const gchar *protocol,
           /* we have more than one CM for this protocol,
            * select the one which is not haze.
            */
-          if (!tp_strdiff ((*cm)->name, "haze"))
+          if (!tp_strdiff (tp_connection_manager_get_name ((*cm)), "haze"))
             {
               *cm = tp_cm;
               break;