balsa r7844 - in trunk: . src



Author: PeterB
Date: Sat Feb  9 04:52:05 2008
New Revision: 7844
URL: http://svn.gnome.org/viewvc/balsa?rev=7844&view=rev

Log:
clean up

Modified:
   trunk/ChangeLog
   trunk/src/balsa-message.c

Modified: trunk/src/balsa-message.c
==============================================================================
--- trunk/src/balsa-message.c	(original)
+++ trunk/src/balsa-message.c	Sat Feb  9 04:52:05 2008
@@ -491,19 +491,17 @@
         found = gtk_text_iter_forward_search(&bm->find_iter, text, 0,
                                              &match_begin, &match_end,
                                              NULL);
+        if (!found) {
+            gtk_text_buffer_get_start_iter(buffer, &bm->find_iter);
+            gtk_text_iter_forward_search(&bm->find_iter, text, 0,
+                                         &match_begin, &match_end, NULL);
+        }
     } else {
         gtk_text_iter_backward_char(&bm->find_iter);
         found = gtk_text_iter_backward_search(&bm->find_iter, text, 0,
                                               &match_begin, &match_end,
                                               NULL);
-    }
-
-    if (!found) {
-        if (find_forward) {
-            gtk_text_buffer_get_start_iter(buffer, &bm->find_iter);
-            gtk_text_iter_forward_search(&bm->find_iter, text, 0,
-                                         &match_begin, &match_end, NULL);
-        } else {
+        if (!found) {
             gtk_text_buffer_get_end_iter(buffer, &bm->find_iter);
             gtk_text_iter_backward_search(&bm->find_iter, text, 0,
                                           &match_begin, &match_end, NULL);



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