aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--NEWS1
-rw-r--r--src/lib/emotion/emotion_modules.c6
3 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2762dad52b..40ff74b51c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
* Eina: add eina_file_refresh(), eina_file_virtualize() and eina_file_virtual().
* Evas: use eina_file_virtualize() for evas_object_image_memfile_set().
+ * Emotion: fix backend priority order.
2013-07-25 ChunEon Park (Hermet)
diff --git a/NEWS b/NEWS
index 39b5d5946e..776442fe27 100644
--- a/NEWS
+++ b/NEWS
@@ -395,6 +395,7 @@ Fixes:
- Fix desktop command parsing of https.
* Emotion:
- Fix memory leak in gstreamer_ecore_x_check.
+ - Fix backend priority order.
* Ethumb:
- Fix memory leak in error case.
* Eeze:
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c
index f971c0152a..1ba3c10bc1 100644
--- a/src/lib/emotion/emotion_modules.c
+++ b/src/lib/emotion/emotion_modules.c
@@ -37,14 +37,14 @@ static int
_emotion_engine_registry_entry_cmp(const void *pa, const void *pb)
{
const Emotion_Engine_Registry_Entry *a = pa, *b = pb;
- int r = a->priority - b->priority;
+ int r = b->priority - a->priority;
if (r == 0)
- r = a->engine->priority - b->engine->priority;
+ r = b->engine->priority - a->engine->priority;
if (r == 0)
/* guarantee some order to ease debug */
- r = strcmp(a->engine->name, b->engine->name);
+ r = strcmp(b->engine->name, a->engine->name);
return r;
}