[gnome-software] flatpak: Fix compile warning with new versions of libflatpak



commit 9eb809f907fa9f10bffbaaa940e9665912f9f265
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 18 17:05:59 2018 +0100

    flatpak: Fix compile warning with new versions of libflatpak
    
    The flatpak commit 3f0eb7e4814e903d92a77a3b52f548f14ef91a21 fixed the callback
    to match what was declared in the signal -- use the correct signature for fixed
    versions.
    
    Luckily we didn't ever access the FlatpakTransactionResult, or a *crash* would
    have happened.

 plugins/flatpak/gs-flatpak-transaction.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/flatpak/gs-flatpak-transaction.c b/plugins/flatpak/gs-flatpak-transaction.c
index 35708d91..c6735515 100644
--- a/plugins/flatpak/gs-flatpak-transaction.c
+++ b/plugins/flatpak/gs-flatpak-transaction.c
@@ -247,6 +247,9 @@ _transaction_new_operation (FlatpakTransaction *transaction,
 static void
 _transaction_operation_done (FlatpakTransaction *transaction,
                             FlatpakTransactionOperation *operation,
+#if FLATPAK_CHECK_VERSION(1,0,4)
+                            const gchar *commit,
+#endif
                             FlatpakTransactionResult details)
 {
        /* invalidate */


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