diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-11-18 21:51:12 +0300 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-11-23 18:32:35 +0300 |
commit | 5a155c3c04167067b9c359b4c8ec7f4b53241795 (patch) | |
tree | 079bd15df64dc40de79130775a871aeebb3f8e70 /src/rcw.c | |
parent | d4ee12b84a5fc270635d20b2505eb45df73ef74a (diff) |
rcw.c: GtkSocket-Not-Avail: Print title into stdout too.
Diffstat (limited to 'src/rcw.c')
-rw-r--r-- | src/rcw.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4469,6 +4469,9 @@ GtkWidget *rcw_open_from_file_full(RemminaFile *remminafile, GCallback disconnec remmina_file_get_string(remminafile, "protocol"), REMMINA_PROTOCOL_FEATURE_TYPE_GTKSOCKET); if (ret && !remmina_gtksocket_available()) { + gchar* title = _("Warning: This plugin requires GtkSocket, but this " + "feature is unavailable in a Wayland session."); + gchar* err_msg = g_strdup_printf( _("Plugins relying on GtkSocket can't run in a " "Wayland session.\nFor more information and a possible " @@ -4482,12 +4485,11 @@ GtkWidget *rcw_open_from_file_full(RemminaFile *remminafile, GCallback disconnec GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, - _("Warning: This plugin requires GtkSocket, but this feature is " - "unavailable in a Wayland session.")); + title); gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), err_msg); - REMMINA_CRITICAL(err_msg); + REMMINA_CRITICAL(g_strdup_printf("%s\n%s", title, err_msg)); // Close the current page since it's useless without GtkSocket. // The user would need to manually click the close button. |