[gnome-software: 1/8] gs-app-list: Pass the correct user_data to sort callbacks




commit 22d6ffb0f0ce5c50c69a86ff2935bdf9a2821bad
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Apr 21 14:46:48 2021 +0100

    gs-app-list: Pass the correct user_data to sort callbacks
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-app-list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-app-list.c b/lib/gs-app-list.c
index f1527de45..746163d7c 100644
--- a/lib/gs-app-list.c
+++ b/lib/gs-app-list.c
@@ -589,7 +589,7 @@ gs_app_list_sort_cb (gconstpointer a, gconstpointer b, gpointer user_data)
        GsApp *app1 = GS_APP (*(GsApp **) a);
        GsApp *app2 = GS_APP (*(GsApp **) b);
        GsAppListSortHelper *helper = (GsAppListSortHelper *) user_data;
-       return helper->func (app1, app2, user_data);
+       return helper->func (app1, app2, helper->user_data);
 }
 
 /**


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