diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-12 17:06:46 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-12 17:06:46 +0800 |
commit | 193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1 (patch) | |
tree | becd95c10c2c5f5155c5c8a0aa74ddc4732d9f94 /libempathy-gtk | |
parent | 5a811009ecdfaf640e41a46e9edece1f3ef5bced (diff) | |
download | gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.tar gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.tar.gz gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.tar.bz2 gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.tar.lz gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.tar.xz gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.tar.zst gsoc2013-empathy-193a5cf3e7a55366f6ad6adb8496e0ccbd6e15b1.zip |
use tp_strdiff
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 47501b69e..ed2f14044 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); |