[anjuta] language-support-cpp-java: Restore the typedef autocomplete



commit 07c288c1b802409eece62cdfc4858804c90c9167
Author: Naba Kumar <naba gnome org>
Date:   Fri May 7 12:43:32 2010 +0300

    language-support-cpp-java: Restore the typedef autocomplete

 .../cxxparser/engine-parser.cpp                    |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp b/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
index c37534d..d851f0d 100644
--- a/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
+++ b/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
@@ -377,7 +377,8 @@ EngineParser::getCurrentSearchableScope (string &type_name, string &type_scope)
 	// FIXME: case of more results now it's hardcoded to 1
 	IAnjutaIterable *curr_searchable_scope =
 		ianjuta_symbol_manager_search_project (_sym_man, 
-					IANJUTA_SYMBOL_TYPE_SCOPE_CONTAINER,
+		            (IAnjutaSymbolType) (IANJUTA_SYMBOL_TYPE_SCOPE_CONTAINER |
+		            IANJUTA_SYMBOL_TYPE_TYPEDEF),
 		            TRUE,
 		            (IAnjutaSymbolField)(IANJUTA_SYMBOL_FIELD_SIMPLE | IANJUTA_SYMBOL_FIELD_KIND),
 		            type_name.c_str(),
@@ -465,7 +466,8 @@ EngineParser::switchMemberToContainer (IAnjutaIterable * test)
 
 	/* hopefully we'll find a new container for the type_name of test param */
 	new_container = ianjuta_symbol_manager_search_project (_sym_man, 
-					IANJUTA_SYMBOL_TYPE_SCOPE_CONTAINER,
+	                (IAnjutaSymbolType) (IANJUTA_SYMBOL_TYPE_SCOPE_CONTAINER |
+	                IANJUTA_SYMBOL_TYPE_TYPEDEF),
 		            TRUE,
 		            (IAnjutaSymbolField)(IANJUTA_SYMBOL_FIELD_SIMPLE | IANJUTA_SYMBOL_FIELD_KIND |
 		                                 IANJUTA_SYMBOL_FIELD_TYPE_NAME),



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