[gtksourceview/wip/chergert/gsv-gtk4: 210/259] completion: make priorities match previous completion providers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 210/259] completion: make priorities match previous completion providers
- Date: Mon, 21 Sep 2020 23:27:48 +0000 (UTC)
commit f020b4dc0a84f33e8c91b7824281c43b9e894402
Author: Christian Hergert <chergert redhat com>
Date: Sun Aug 30 14:47:01 2020 -0700
completion: make priorities match previous completion providers
gtksourceview/gtksourcecompletioncontext.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletioncontext.c b/gtksourceview/gtksourcecompletioncontext.c
index 78c21182..9f9dc27e 100644
--- a/gtksourceview/gtksourcecompletioncontext.c
+++ b/gtksourceview/gtksourcecompletioncontext.c
@@ -103,9 +103,9 @@ compare_provider_info (gconstpointer a,
int priority_a = gtk_source_completion_provider_get_priority (info_a->provider, self);
int priority_b = gtk_source_completion_provider_get_priority (info_b->provider, self);
- if (priority_a < priority_b)
+ if (priority_a > priority_b)
return -1;
- else if (priority_a > priority_b)
+ else if (priority_a < priority_b)
return 1;
else
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]