[libshumate] Use g_task_is_valid instead of G_IS_TASK
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] Use g_task_is_valid instead of G_IS_TASK
- Date: Thu, 25 Mar 2021 20:54:51 +0000 (UTC)
commit cbdc1608fef4e64c9b735d92d4f4102a43728f52
Author: James Westman <james jwestman net>
Date: Wed Mar 24 12:29:08 2021 -0500
Use g_task_is_valid instead of G_IS_TASK
shumate/shumate-file-cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shumate/shumate-file-cache.c b/shumate/shumate-file-cache.c
index d3fa6e0..621205a 100644
--- a/shumate/shumate-file-cache.c
+++ b/shumate/shumate-file-cache.c
@@ -930,7 +930,7 @@ shumate_file_cache_get_tile_finish (ShumateFileCache *self,
GError **error)
{
g_return_val_if_fail (SHUMATE_IS_FILE_CACHE (self), NULL);
- g_return_val_if_fail (G_IS_TASK (result), NULL);
+ g_return_val_if_fail (g_task_is_valid (result, self), NULL);
if (etag)
*etag = g_strdup (g_task_get_task_data (G_TASK (result)));
@@ -1001,7 +1001,7 @@ shumate_file_cache_store_tile_finish (ShumateFileCache *self,
GError **error)
{
g_return_val_if_fail (SHUMATE_IS_FILE_CACHE (self), FALSE);
- g_return_val_if_fail (G_IS_TASK (result), FALSE);
+ g_return_val_if_fail (g_task_is_valid (result, self), FALSE);
return g_task_propagate_boolean (G_TASK (result), error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]