[empathy] use tp_strdiff



commit 193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Aug 12 11:06:46 2010 +0200

    use tp_strdiff

 libempathy-gtk/empathy-log-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 47501b6..ed2f140 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -358,7 +358,7 @@ log_window_entry_find_changed_cb (GtkWidget       *entry,
 	is_sensitive &= !EMP_STR_EMPTY (str);
 	is_sensitive &=
 		!window->last_find ||
-		(window->last_find && strcmp (window->last_find, str) != 0);
+		(window->last_find && tp_strdiff (window->last_find, str));
 
 	gtk_widget_set_sensitive (window->button_find, is_sensitive);
 }
@@ -691,7 +691,7 @@ start_find_search (EmpathyLogWindow *window)
 	str = gtk_entry_get_text (GTK_ENTRY (window->entry_find));
 
 	/* Don't find the same crap again */
-	if (window->last_find && strcmp (window->last_find, str) == 0) {
+	if (window->last_find && !tp_strdiff (window->last_find, str)) {
 		return;
 	}
 
@@ -975,7 +975,7 @@ log_window_chats_set_selected (EmpathyLogWindow *window)
 				    -1);
 
 		if (this_account == window->selected_account &&
-		    strcmp (this_chat_id, window->selected_chat_id) == 0 &&
+		    !tp_strdiff (this_chat_id, window->selected_chat_id) &&
 		    this_is_chatroom == window->selected_is_chatroom) {
 			gtk_tree_selection_select_iter (selection, &iter);
 			path = gtk_tree_model_get_path (model, &iter);



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