# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1603672734 0 # Node ID b818a32f7790c2ea44fc7fc047add852d1969c0d # Parent f0611d5385f9f6bef471519f4085c2003ec4659d GTK3: Eliminate GLib warning due to missing 'activate' signal. diff -r f0611d5385f9 -r b818a32f7790 gtk3/dw.c --- a/gtk3/dw.c Sun Oct 25 22:20:44 2020 +0000 +++ b/gtk3/dw.c Mon Oct 26 00:38:54 2020 +0000 @@ -1975,6 +1975,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: @@ -2074,6 +2084,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