[gnome-builder] libide: add ide_completion_item_set_priority() for bindings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add ide_completion_item_set_priority() for bindings
- Date: Fri, 2 Oct 2015 00:28:31 +0000 (UTC)
commit 558ab1e78ac6c85ae51b3a0dbf479699416c49bf
Author: Christian Hergert <christian hergert me>
Date: Thu Oct 1 17:28:24 2015 -0700
libide: add ide_completion_item_set_priority() for bindings
libide/ide-completion-item.c | 9 +++++++++
libide/ide-completion-item.h | 9 ++-------
2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/libide/ide-completion-item.c b/libide/ide-completion-item.c
index 2a28600..d7b693b 100644
--- a/libide/ide-completion-item.c
+++ b/libide/ide-completion-item.c
@@ -47,6 +47,15 @@ ide_completion_item_real_match (IdeCompletionItem *self,
return ret;
}
+void
+ide_completion_item_set_priority (IdeCompletionItem *self,
+ guint priority)
+{
+ g_return_if_fail (IDE_IS_COMPLETION_ITEM (self));
+
+ self->priority = priority;
+}
+
gboolean
ide_completion_item_match (IdeCompletionItem *self,
const gchar *query,
diff --git a/libide/ide-completion-item.h b/libide/ide-completion-item.h
index 65ed549..6a61456 100644
--- a/libide/ide-completion-item.h
+++ b/libide/ide-completion-item.h
@@ -67,18 +67,13 @@ struct _IdeCompletionItemClass
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeCompletionItem, g_object_unref)
-static inline void
-ide_completion_item_set_priority (IdeCompletionItem *self,
- guint priority)
-{
- self->priority = priority;
-}
-
GType ide_completion_item_get_type (void);
IdeCompletionItem *ide_completion_item_new (void);
gboolean ide_completion_item_match (IdeCompletionItem *self,
const gchar *query,
const gchar *casefold);
+void ide_completion_item_set_priority(IdeCompletionItem *self,
+ guint priority);
gboolean ide_completion_item_fuzzy_match (const gchar *haystack,
const gchar *casefold_needle,
guint *priority);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]