]> git.0d.be Git - empathy.git/commitdiff
empathy_chatroom_equal: use tp_strdiff instead of g_str_equal
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:55:38 +0000 (07:55 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:55:38 +0000 (07:55 +0000)
svn path=/trunk/; revision=1578

libempathy/empathy-chatroom.c

index c7a4b635b4611d519f916b1e13a30f9adbfefaac..cb39455edeb730d871f364643e8e9a9a88a08666 100644 (file)
@@ -24,6 +24,7 @@
 #include <string.h>
 
 #include <glib.h>
+#include <telepathy-glib/util.h>
 
 #include "empathy-chatroom.h"
 #include "empathy-utils.h"
@@ -420,7 +421,6 @@ empathy_chatroom_equal (gconstpointer v1,
        room_a = empathy_chatroom_get_room (EMPATHY_CHATROOM (v1));
        room_b = empathy_chatroom_get_room (EMPATHY_CHATROOM (v2));
 
-       return empathy_account_equal (account_a, account_b) && g_str_equal (room_a, room_b);
+       return empathy_account_equal (account_a, account_b) && !tp_strdiff (room_a,
+      room_b);
 }
-
-