Mercurial > dwindows
diff gtk/dw.c @ 2860:9daee9d58956
GTK2/3/4: Handle deprecations in GLIB 2.74 and GTK 4.8.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 23 Nov 2022 02:17:12 +0000 |
parents | b5cd3242b5e7 |
children | 761b7a12b079 |
line wrap: on
line diff
--- a/gtk/dw.c Tue Nov 15 21:41:01 2022 +0000 +++ b/gtk/dw.c Wed Nov 23 02:17:12 2022 +0000 @@ -2247,7 +2247,11 @@ * we generate an application ID based on the binary name or PID * instead of passing NULL to enable full application support. */ +#if GLIB_CHECK_VERSION(2,74,0) + _DWApp = g_application_new(_dw_app_id, G_APPLICATION_DEFAULT_FLAGS); +#else _DWApp = g_application_new(_dw_app_id, G_APPLICATION_FLAGS_NONE); +#endif if(g_application_register(_DWApp, NULL, NULL)) { #if GLIB_CHECK_VERSION(2,40,0)