[gnome-builder/wip/extensions] extension-point: fix sort order so lower value is higher priority



commit 197240894f1c66a4ba4568b5b3149d1e9177599e
Author: Christian Hergert <christian hergert me>
Date:   Sat Jun 27 01:47:49 2015 -0700

    extension-point: fix sort order so lower value is higher priority

 libide/ide-extension-point.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-extension-point.c b/libide/ide-extension-point.c
index e964e8a..7d502ff 100644
--- a/libide/ide-extension-point.c
+++ b/libide/ide-extension-point.c
@@ -327,7 +327,7 @@ compare_extension (gconstpointer a,
   if (exta->priority == extb->priority)
     return g_strcmp0 (g_type_name (exta->type), g_type_name (extb->type));
 
-  return exta->priority - extb->priority;
+  return extb->priority - exta->priority;
 }
 
 void


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