[gnome-builder] clang: disable some triggers for now
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: disable some triggers for now
- Date: Tue, 12 Jun 2018 01:29:47 +0000 (UTC)
commit 038a198e3cd28c7615c54a56cb0643d9f8107899
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 11 18:29:03 2018 -0700
clang: disable some triggers for now
src/plugins/clang/ide-clang-completion-provider.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/clang/ide-clang-completion-provider.c
b/src/plugins/clang/ide-clang-completion-provider.c
index c08b048eb..66b5ffe3b 100644
--- a/src/plugins/clang/ide-clang-completion-provider.c
+++ b/src/plugins/clang/ide-clang-completion-provider.c
@@ -69,17 +69,19 @@ ide_clang_completion_provider_key_activates (IdeCompletionProvider *provider,
{
IdeClangCompletionItem *item = IDE_CLANG_COMPLETION_ITEM (proposal);
- /* We add suffix ; if pressed */
- if (key->keyval == GDK_KEY_semicolon)
- return TRUE;
-
/* Try to dereference field/variable */
if (item->kind == IDE_SYMBOL_FIELD || item->kind == IDE_SYMBOL_VARIABLE)
return key->keyval == GDK_KEY_period;
+#if 0
+ /* We add suffix ; if pressed */
+ if (key->keyval == GDK_KEY_semicolon)
+ return TRUE;
+
/* Open parens for function */
if (item->kind == IDE_SYMBOL_FUNCTION)
return key->keyval == GDK_KEY_parenleft;
+#endif
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]