[gnome-builder] plugins/snippets: raise priority between various clang items
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/snippets: raise priority between various clang items
- Date: Fri, 29 Jul 2022 05:31:10 +0000 (UTC)
commit 5de32dc9ef6e1c56f74430ea84c9c33e2d07fb1e
Author: Christian Hergert <chergert redhat com>
Date: Thu Jul 28 22:30:21 2022 -0700
plugins/snippets: raise priority between various clang items
src/plugins/snippets/gbp-snippet-completion-provider.c | 8 ++++++++
src/plugins/snippets/snippets.plugin | 1 -
2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/snippets/gbp-snippet-completion-provider.c
b/src/plugins/snippets/gbp-snippet-completion-provider.c
index c2d5c3970..54b5ce1e2 100644
--- a/src/plugins/snippets/gbp-snippet-completion-provider.c
+++ b/src/plugins/snippets/gbp-snippet-completion-provider.c
@@ -61,11 +61,19 @@ gbp_snippet_completion_provider_populate (GtkSourceCompletionProvider *provider
return parent_iface->populate (provider, context, error);
}
+static int
+gbp_snippet_completion_provider_get_priority (GtkSourceCompletionProvider *provider,
+ GtkSourceCompletionContext *context)
+{
+ return 4000;
+}
+
static void
competion_provider_iface_init (GtkSourceCompletionProviderInterface *iface)
{
parent_iface = g_type_interface_peek_parent (iface);
iface->populate = gbp_snippet_completion_provider_populate;
+ iface->get_priority = gbp_snippet_completion_provider_get_priority;
}
G_DEFINE_FINAL_TYPE_WITH_CODE (GbpSnippetCompletionProvider, gbp_snippet_completion_provider,
GTK_SOURCE_TYPE_COMPLETION_SNIPPETS,
diff --git a/src/plugins/snippets/snippets.plugin b/src/plugins/snippets/snippets.plugin
index 6afdf34c7..c644c76c6 100644
--- a/src/plugins/snippets/snippets.plugin
+++ b/src/plugins/snippets/snippets.plugin
@@ -8,5 +8,4 @@ Hidden=true
Module=snippets
Name=Snippets
X-Completion-Provider-Languages=*
-X-Completion-Provider-Priority=-100
X-Preferences-Kind=application;project;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]