From: Jose Dapena Paz Date: Tue, 31 Mar 2009 11:57:28 +0000 (+0000) Subject: A check for gtk_text_iter_forward_search X-Git-Tag: git_migration_finished~168 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=ca9a46b192cf9fe19f1afaf1dde762cd363e90f2;hp=14a75644861ab4d9c0e95221083c6f749df06302 A check for gtk_text_iter_forward_search pmo-trunk-r8493 --- diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index 98ae7a7..bb6a623 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -3476,8 +3476,10 @@ gtk_text_iter_forward_search_insensitive (const GtkTextIter *iter, if (!g_utf8_collate (range_subtext, str_casefold)) { gchar *found_text = g_strndup (range_text + offset, str_chars_n); result = TRUE; - gtk_text_iter_forward_search (iter, found_text, GTK_TEXT_SEARCH_VISIBLE_ONLY|GTK_TEXT_SEARCH_TEXT_ONLY, - match_start, match_end, NULL); + if (!gtk_text_iter_forward_search (iter, found_text, GTK_TEXT_SEARCH_VISIBLE_ONLY|GTK_TEXT_SEARCH_TEXT_ONLY, + match_start, match_end, NULL)) { + g_warning ("Matched string with collate, but not matched in model"); + } g_free (found_text); } g_free (range_subtext);