# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1603673924 0 # Node ID e66bc47eec34a7c5b164115256be22478eb1ac37 # Parent b818a32f7790c2ea44fc7fc047add852d1969c0d GTK2: Same GLib warning elimination for GTK2. diff -r b818a32f7790 -r e66bc47eec34 gtk/dw.c --- a/gtk/dw.c Mon Oct 26 00:38:54 2020 +0000 +++ b/gtk/dw.c Mon Oct 26 00:58:44 2020 +0000 @@ -2000,6 +2000,16 @@ } #endif +#if GLIB_CHECK_VERSION(2,28,0) +static void _dw_app_activate(GApplication *app, gpointer user_data) +{ + /* Not sure why this signal is required, but GLib gives warnings + * when this signal is not connected, so putting this here to + * quell the warning and can be used at a later point if needed. + */ +} +#endif + /* * Initializes the Dynamic Windows engine. * Parameters: @@ -2146,6 +2156,7 @@ g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL); g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action)); #endif + g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL); g_application_activate(_DWApp); } #endif