Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 remmina (1.4.11+dfsg-1+astra1) unstable; urgency=medium
 .
   * Try to adopt with dh12
Author: Alexander Bechkov <support@astralinux.ru>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2021-02-14

--- remmina-1.4.11+dfsg.orig/src/remmina.c
+++ remmina-1.4.11+dfsg/src/remmina.c
@@ -322,7 +322,7 @@ int main(int argc, char *argv[])
 	TRACE_CALL(__func__);
 	GtkApplication *app;
 	const gchar *app_id;
-	gchar *summary;
+/*	gchar *summary; */
 	int status;
 
 	g_unsetenv("GDK_CORE_DEVICE_EVENTS");
@@ -368,7 +368,8 @@ int main(int argc, char *argv[])
 	g_set_prgname(app_id);
 #endif
 	g_application_add_main_option_entries(G_APPLICATION(app), remmina_options);
-	summary = g_strdup_printf ("%s %s", app_id, VERSION);
+#if GLIB_CHECK_VERSION(2,56,0)	
+	gchar *summary = g_strdup_printf ("%s %s", app_id, VERSION);
 	g_application_set_option_context_summary (G_APPLICATION(app), summary);
 	g_free(summary);
 	// TRANSLATORS: Shown in terminal. Do not use characters that may be not supported on a terminal
@@ -402,7 +403,7 @@ int main(int argc, char *argv[])
 				"To update username and password and set a different resolution mode of a Remmina connection profile, use:\n"
 				"\n"
 				"\techo \"username\\napassword\" | remmina --update-profile /PATH/TO/FOO.remmina --set-option username --set-option resolution_mode=2 --set-option password\n"));
-
+#endif
 	g_signal_connect(app, "startup", G_CALLBACK(remmina_on_startup), NULL);
 	g_signal_connect(app, "command-line", G_CALLBACK(remmina_on_command_line), NULL);
 	g_signal_connect(app, "handle-local-options", G_CALLBACK(remmina_on_local_cmdline), NULL);
