urilauncher: Fix finish function mismatch
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2023 16:58:09 +0000 (11:58 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2023 16:58:09 +0000 (11:58 -0500)
We need to call the finish function that
matches the async function.

gtk/gtkurilauncher.c

index b2da466fc2e83d9097baf7329cc09eea00d1aeca..cf705651ea5242640bfb4b0eeafc7bf0628566a6 100644 (file)
@@ -221,7 +221,7 @@ open_done (GObject      *source,
   GTask *task = G_TASK (data);
   GError *error = NULL;
 
-  if (!g_openuri_portal_open_finish (result, &error))
+  if (!g_openuri_portal_open_uri_finish (result, &error))
     g_task_return_error (task, error);
   else
     g_task_return_boolean (task, TRUE);