diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2021-02-08 09:43:08 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2021-02-08 09:43:47 +0300 |
commit | 04eb76c1de7a1bd2998ecb0615b90436a3ec4f80 (patch) | |
tree | 712611804fa98f57e4233d4a1d4b16ffe901c6be /src/remmina.c | |
parent | 44d7383ccfc1bf860f90268be900e34e5d73b907 (diff) |
Ignoring glib functions if glib version older then 2.56
Closes #2409
Diffstat (limited to 'src/remmina.c')
-rw-r--r-- | src/remmina.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/remmina.c b/src/remmina.c index 344a37638..53c1fc4ff 100644 --- a/src/remmina.c +++ b/src/remmina.c @@ -322,7 +322,6 @@ int main(int argc, char *argv[]) TRACE_CALL(__func__); GtkApplication *app; const gchar *app_id; - gchar *summary; int status; g_unsetenv("GDK_CORE_DEVICE_EVENTS"); @@ -368,7 +367,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,6 +402,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); |