[anjuta] language-support-cpp-java: Also show completions as function for prototypes
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] language-support-cpp-java: Also show completions as function for prototypes
- Date: Mon, 23 Nov 2009 16:37:46 +0000 (UTC)
commit 8eb161319bbbb953271631da04dd7611a4f97009
Author: Johannes Schmid <jhs gnome org>
Date: Mon Nov 23 09:39:00 2009 +0100
language-support-cpp-java: Also show completions as function for prototypes
.../language-support-cpp-java/cpp-java-assist.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index eb82dc8..903e873 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -158,7 +158,8 @@ create_completion (CppJavaAssist* assist, IAnjutaIterable* iter,
tag->name = g_strdup (name);
tag->type = ianjuta_symbol_get_sym_type (IANJUTA_SYMBOL (iter),
NULL);
- tag->is_func = (tag->type == IANJUTA_SYMBOL_TYPE_FUNCTION ||
+ tag->is_func = (tag->type == IANJUTA_SYMBOL_TYPE_PROTOTYPE ||
+ tag->type == IANJUTA_SYMBOL_TYPE_FUNCTION ||
tag->type == IANJUTA_SYMBOL_TYPE_METHOD ||
tag->type == IANJUTA_SYMBOL_TYPE_MACRO_WITH_ARG);
if (!g_list_find_custom (suggestions, tag, completion_compare))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]