anjuta r4708 - in trunk: . plugins/symbol-db



Author: mcora
Date: Fri Feb  6 23:11:20 2009
New Revision: 4708
URL: http://svn.gnome.org/viewvc/anjuta?rev=4708&view=rev

Log:
	* plugins/symbol-db/plugin.c (isymbol_manager_search_project):
	* plugins/symbol-db/symbol-db-engine-queries.c
	(symbol_db_engine_find_symbol_by_name_pattern_filtered):
	ianjuta_symbol_manager_search_project () will now search only for global
	project symbols.

Modified:
   trunk/ChangeLog
   trunk/plugins/symbol-db/plugin.c
   trunk/plugins/symbol-db/symbol-db-engine-queries.c

Modified: trunk/plugins/symbol-db/plugin.c
==============================================================================
--- trunk/plugins/symbol-db/plugin.c	(original)
+++ trunk/plugins/symbol-db/plugin.c	Fri Feb  6 23:11:20 2009
@@ -2847,7 +2847,7 @@
 					exact_match,
 					filter_array,
 					include_types,
-					-1,		/* ignore file_scope */
+					1,
 					NULL,
 					results_limit,
 					results_offset,

Modified: trunk/plugins/symbol-db/symbol-db-engine-queries.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-engine-queries.c	(original)
+++ trunk/plugins/symbol-db/symbol-db-engine-queries.c	Fri Feb  6 23:11:20 2009
@@ -2406,13 +2406,13 @@
 	{
 		other_parameters |= 
 			DYN_FIND_SYMBOL_BY_NAME_PATTERN_FILTERED_EXTRA_PAR_GLOBAL_SEARCH_YES;
-		file_scope_str = " AND symbol.is_file_scope = 1 ";
+		file_scope_str = " AND symbol.is_file_scope = 0 ";
 	}
 	else if (global_symbols_search == 0)
 	{
 		other_parameters |= 
 			DYN_FIND_SYMBOL_BY_NAME_PATTERN_FILTERED_EXTRA_PAR_GLOBAL_SEARCH_NO;
-		file_scope_str = " AND symbol.is_file_scope = 0 ";
+		file_scope_str = " AND symbol.is_file_scope = 1 ";
 	}
 	else 	/* -1 */
 	{



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