Merge branch 'mcatanzaro/#2805' into 'main'

gtask: don't use g_task_set_static_name() unless allowed

Closes #2805

See merge request GNOME/glib!3056
This commit is contained in:
Simon McVittie 2022-11-04 09:22:43 +00:00
commit 66a6fedca3

View File

@ -84,7 +84,7 @@ void g_task_set_static_name (GTask *task,
const gchar *name);
/* Macro wrapper to set the task name when setting the source tag. */
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_60
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76
#define g_task_set_source_tag(task, tag) G_STMT_START { \
GTask *_task = (task); \
(g_task_set_source_tag) (_task, tag); \