[gnome-software/1529-in-search-the-first-app-opened-is-subsequently-opened-in-place-of-other-apps-2] gs-details-page: Correct gs_details_page_cancel_cb() prototype



commit d7ddcec9b6dbefc9aa126a757802f7e91b0e4f85
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 15 08:42:43 2022 +0100

    gs-details-page: Correct gs_details_page_cancel_cb() prototype
    
    The first parameter is a `GCancellable`, not the `self`.

 src/gs-details-page.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 5d2b7bb7f..8db2a622e 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -167,7 +167,8 @@ static GParamSpec *obj_props[PROP_IS_NARROW + 1] = { NULL, };
 static guint signals[SIGNAL_LAST] = { 0 };
 
 static void
-gs_details_page_cancel_cb (GsDetailsPage *self)
+gs_details_page_cancel_cb (GCancellable *cancellable,
+                          GsDetailsPage *self)
 {
        if (self->app_reviews_dialog) {
                gtk_window_destroy (GTK_WINDOW (self->app_reviews_dialog));


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