Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-09-27 16:12:21 +0300
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-10-01 15:17:27 +0300
commitc3cfa0b1b50d6cd518bcc22cf258a9ccad2f3e28 (patch)
tree2154a5a381afba9e015ac3d40fa5d0902a71e1d8 /plugins
parent3efce7ad82802458e907a049c9801071e2a3be5e (diff)
x2go_plugin.c: Restructure basic settings array; Add string_setting_validator callback to audio setting too; Remove debug testdata from kbdtype setting.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/x2go/x2go_plugin.c69
1 files changed, 24 insertions, 45 deletions
diff --git a/plugins/x2go/x2go_plugin.c b/plugins/x2go/x2go_plugin.c
index ec028ccff..22b8a89cb 100644
--- a/plugins/x2go/x2go_plugin.c
+++ b/plugins/x2go/x2go_plugin.c
@@ -1405,68 +1405,47 @@ static GError* remmina_plugin_x2go_int_setting_validator(gchar* key,
*/
static const RemminaProtocolSetting remmina_plugin_x2go_basic_settings[] = {
- { REMMINA_PROTOCOL_SETTING_TYPE_SERVER,
- "server", NULL, FALSE, NULL, NULL,
+ {REMMINA_PROTOCOL_SETTING_TYPE_SERVER, "server", NULL, FALSE, NULL, NULL,
/* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_TEXT,
- "username", N_("Username"), FALSE, NULL, NULL,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "username", N_("Username"), FALSE, NULL, NULL,
/* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_PASSWORD,
- "password", N_("Password"), FALSE, NULL, NULL,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_PASSWORD, "password", N_("Password"), FALSE, NULL, NULL,
/* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_COMBO,
- "command", N_("Startup program"), FALSE,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_COMBO, "command", N_("Startup program"), FALSE,
/* Options to select (or custom user string) */ "MATE,KDE,XFCE,LXDE,TERMINAL",
/* Tooltip */ N_("Which command should be "
"executed after creating the X2Go session?"),
/* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_RESOLUTION,
- "resolution", NULL, FALSE, NULL, NULL,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_RESOLUTION, "resolution", NULL, FALSE, NULL, NULL,
/* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_TEXT,
- "kbdlayout", N_("Keyboard Layout (auto)"), FALSE, NULL, NULL,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "kbdlayout", N_("Keyboard Layout (auto)"), FALSE, NULL, NULL,
/* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_TEXT,
- "kbdtype", N_("Keyboard type (auto)"), FALSE, NULL, NULL,
- /* Validation Data */ "1,2,3,4,5",
- /* Validation Method */ (GCallback) remmina_plugin_x2go_string_setting_validator
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_COMBO,
- "audio", N_("Audio support"), FALSE,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "kbdtype", N_("Keyboard type (auto)"), FALSE, NULL, NULL,
+ /* Validation Data */ NULL,
+ /* Validation Method */ NULL},
+ {REMMINA_PROTOCOL_SETTING_TYPE_COMBO, "audio", N_("Audio support"), FALSE,
/* Options to select (or custom user string) */ "pulse,esd,none",
/* Tooltip */ N_("The X2Go server's sound system (default: 'pulse')."),
- /* Validation Data */ NULL,
- /* Validation Method */ NULL
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_COMBO,
- "clipboard", N_("Clipboard direction"), FALSE,
+ /* Validation Data */ "pulse,esd,none",
+ /* Validation Method */ G_CALLBACK(remmina_plugin_x2go_string_setting_validator)},
+ {REMMINA_PROTOCOL_SETTING_TYPE_COMBO, "clipboard", N_("Clipboard direction"), FALSE,
/* Options to select (or custom user string) */ "none,server,client,both",
/* Tooltip */ N_("Which direction should clipboard content be copied? "
"(default: 'both')."),
/* Validation Data */ "none,server,client,both",
- /* Validation Method */ (GCallback) remmina_plugin_x2go_string_setting_validator
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_INT,
- "dpi", N_("DPI resolution"), FALSE, NULL,
+ /* Validation Method */ G_CALLBACK(remmina_plugin_x2go_string_setting_validator)},
+ {REMMINA_PROTOCOL_SETTING_TYPE_INT, "dpi", N_("DPI resolution"), FALSE, NULL,
/* Tooltip */ N_("Launch session with a specific resolution (in dots per inch). "
- "Must be between 20 and 400"),
+ "Must be between 20 and 400."),
/* Validation Data */ "20;400", // "<min>;<max>;"
- /* Validation Method */ (GCallback) remmina_plugin_x2go_int_setting_validator
- },
- { REMMINA_PROTOCOL_SETTING_TYPE_END, NULL, NULL, FALSE, NULL, NULL }
-};
+ /* Validation Method */ G_CALLBACK(remmina_plugin_x2go_int_setting_validator)},
+ {REMMINA_PROTOCOL_SETTING_TYPE_END, NULL, NULL, FALSE, NULL, NULL}};
/* Protocol plugin definition and features */
static RemminaProtocolPlugin remmina_plugin_x2go = {