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
path: root/src
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-17 13:08:19 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-17 13:08:19 +0300
commitc21dedb8f92f7d4840cda0c985bb2c4c11465d63 (patch)
treee6894ca2f432067ad1e14834b1acf7556ee731b7 /src
parent1a1d23cf533c0964967928ec9a1352ae328fe2e1 (diff)
Fixing positions and adding tooltip + placeholders
Diffstat (limited to 'src')
-rw-r--r--src/remmina_pref.c2
-rw-r--r--src/remmina_pref_dialog.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/remmina_pref.c b/src/remmina_pref.c
index 845f69097..ff5ee2f8d 100644
--- a/src/remmina_pref.c
+++ b/src/remmina_pref.c
@@ -293,7 +293,7 @@ void remmina_pref_init(void)
if (g_key_file_has_key(gkeyfile, "remmina_pref", "unlock_timeout", NULL))
remmina_pref.unlock_timeout = g_key_file_get_integer(gkeyfile, "remmina_pref", "unlock_timeout", NULL);
else
- remmina_pref.unlock_timeout = 0;
+ remmina_pref.unlock_timeout = 300;
if (g_key_file_has_key(gkeyfile, "remmina_pref", "unlock_password", NULL))
remmina_pref.unlock_password = g_key_file_get_string(gkeyfile, "remmina_pref", "unlock_password", NULL);
diff --git a/src/remmina_pref_dialog.c b/src/remmina_pref_dialog.c
index bfb7b9390..90c00d447 100644
--- a/src/remmina_pref_dialog.c
+++ b/src/remmina_pref_dialog.c
@@ -177,6 +177,8 @@ void remmina_prefdiag_on_use_password_activated(GtkSwitch *sw, gpointer user_dat
//REMMINA_DEBUG ("use_password activated");
gchar *unlock_password = NULL;
unlock_password = g_strdup(remmina_pref_get_value("unlock_password"));
+ gtk_widget_set_sensitive (GTK_WIDGET(remmina_pref_dialog->switch_security_lock_connect), TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET(remmina_pref_dialog->switch_security_lock_edit), TRUE);
//REMMINA_DEBUG ("Password from preferences is: %s", unlock_password);
if (unlock_password == NULL || unlock_password[0] == '\0') {
if (remmina_passwd (GTK_WINDOW(remmina_pref_dialog->dialog), &unlock_password)) {
@@ -191,6 +193,8 @@ void remmina_prefdiag_on_use_password_activated(GtkSwitch *sw, gpointer user_dat
g_free(unlock_password), unlock_password = NULL;
} else {
//REMMINA_DEBUG ("use_password deactivated");
+ gtk_widget_set_sensitive (GTK_WIDGET(remmina_pref_dialog->switch_security_lock_connect), FALSE);
+ gtk_widget_set_sensitive (GTK_WIDGET(remmina_pref_dialog->switch_security_lock_edit), FALSE);
remmina_pref.unlock_password = "";
remmina_pref_set_value("unlock_password", "");
}