[anjuta] sourceview: Give anjuta providers higher priority than any other provider



commit 8a2974e58f69cbfa89f9e8ff8306c86ff9f0d634
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Mar 6 00:12:42 2010 +0100

    sourceview: Give anjuta providers higher priority than any other provider
    
    Word completion will now longer disturb

 plugins/sourceview/sourceview-provider.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/sourceview/sourceview-provider.c b/plugins/sourceview/sourceview-provider.c
index 7558cd2..9a398b8 100644
--- a/plugins/sourceview/sourceview-provider.c
+++ b/plugins/sourceview/sourceview-provider.c
@@ -97,6 +97,13 @@ sourceview_provider_activate_proposal (GtkSourceCompletionProvider* provider,
 	return TRUE;
 }
 
+static gint
+sourceview_provider_get_priority (GtkSourceCompletionProvider* provider)
+{
+	/* Always the highest priority */
+	return G_MAXINT32;
+}
+
 static void
 sourceview_provider_iface_init (GtkSourceCompletionProviderIface* provider)
 {
@@ -104,6 +111,7 @@ sourceview_provider_iface_init (GtkSourceCompletionProviderIface* provider)
 	provider->populate = sourceview_provider_populate;
 	provider->get_start_iter = sourceview_provider_get_start_iter;
 	provider->activate_proposal = sourceview_provider_activate_proposal;
+	provider->get_priority = sourceview_provider_get_priority;
 }
 
 static void



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