anjuta r3657 - in trunk: . plugins/document-manager



Author: jhs
Date: Thu Feb 14 09:35:24 2008
New Revision: 3657
URL: http://svn.gnome.org/viewvc/anjuta?rev=3657&view=rev

Log:
2008-02-14  Johannes Schmid <jhs gnome org>

	* plugins/document-manager/search-box.c: (on_search_activated):
	516377 â Status bar does not change its status of \'Search for .. continued at top\'
	(caused by differences between scintilla and sourceview)


Modified:
   trunk/ChangeLog
   trunk/plugins/document-manager/search-box.c

Modified: trunk/plugins/document-manager/search-box.c
==============================================================================
--- trunk/plugins/document-manager/search-box.c	(original)
+++ trunk/plugins/document-manager/search-box.c	Thu Feb 14 09:35:24 2008
@@ -304,17 +304,25 @@
 	if (!private->current_editor || !search_text || !strlen (search_text))
 		return;
 	
-	search_start = 
-		IANJUTA_EDITOR_CELL (ianjuta_editor_get_position (private->current_editor, 
+	selection = IANJUTA_EDITOR_SELECTION (private->current_editor);
+	
+	if (ianjuta_editor_selection_has_selection (selection, NULL))
+	{
+		search_start = 
+			IANJUTA_EDITOR_CELL (ianjuta_editor_selection_get_start (selection, NULL));
+	}
+	else
+	{
+		search_start = 
+			IANJUTA_EDITOR_CELL (ianjuta_editor_get_position (private->current_editor, 
 														  NULL));
+	}
 	real_start =
 			ianjuta_iterable_clone (IANJUTA_ITERABLE (search_start), NULL);
 	
 	search_end = IANJUTA_EDITOR_CELL (ianjuta_editor_get_end_position (private->current_editor, 
 																	   NULL));
 	
-	selection = IANJUTA_EDITOR_SELECTION (private->current_editor);
-	
 	/* If a search_result is already selected, move the search start
 	 * forward by one
 	 */



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