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:
authorAntenore Gatta <antenore@simbiosi.org>2021-02-05 18:20:48 +0300
committerAntenore Gatta <antenore@simbiosi.org>2021-02-05 18:20:48 +0300
commita4f4e7eb0ab850bf01a93cef65b0502ddc490c6e (patch)
treea3dbdab93aff817899f274a34599c6d05d0fcdfd /src/remmina_pref_dialog.c
parent4f8e242e1461916861224e891e245d1803b7b759 (diff)
Implement fullscreen toolbar colors as per #1894
Diffstat (limited to 'src/remmina_pref_dialog.c')
-rw-r--r--src/remmina_pref_dialog.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/remmina_pref_dialog.c b/src/remmina_pref_dialog.c
index 81f77e6c7..ac129739e 100644
--- a/src/remmina_pref_dialog.c
+++ b/src/remmina_pref_dialog.c
@@ -283,6 +283,7 @@ void remmina_pref_on_dialog_destroy(GtkWidget *widget, gpointer user_data)
remmina_pref.dark_theme = b;
rebuild_remmina_icon = TRUE;
}
+ remmina_pref.grab_color = gtk_entry_get_text(remmina_pref_dialog->entry_grab_color);
b = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(remmina_pref_dialog->checkbutton_applet_disable_tray));
if (remmina_pref.disable_tray_icon != b) {
@@ -614,11 +615,11 @@ static void remmina_pref_dialog_init(void)
if (remmina_pref.datadir_path != NULL && strlen(remmina_pref.datadir_path) > 0) {
gtk_file_chooser_set_filename(remmina_pref_dialog->filechooserbutton_options_datadir_path, remmina_pref.datadir_path);
}
- if (remmina_pref.remmina_file_name != NULL) {
+ if (remmina_pref.remmina_file_name != NULL)
gtk_entry_set_text(remmina_pref_dialog->entry_options_file_name, remmina_pref.remmina_file_name);
- }else{
+ else
gtk_entry_set_text(remmina_pref_dialog->entry_options_file_name, "%G_%P_%N_%h.remmina");
- }
+
if (remmina_pref.screenshot_path != NULL) {
gtk_file_chooser_set_filename(remmina_pref_dialog->filechooserbutton_options_screenshots_path, remmina_pref.screenshot_path);
}else{
@@ -629,6 +630,11 @@ static void remmina_pref_dialog_init(void)
}else{
gtk_entry_set_text(remmina_pref_dialog->entry_options_screenshot_name, "remmina_%p_%h_%Y%m%d-%H%M%S");
}
+ if (remmina_pref.grab_color != NULL)
+ gtk_entry_set_text(remmina_pref_dialog->entry_grab_color, remmina_pref.grab_color);
+ else
+ gtk_entry_set_text(remmina_pref_dialog->entry_options_file_name, "#00FF00");
+
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(remmina_pref_dialog->checkbutton_options_ssh_parseconfig), remmina_pref.ssh_parseconfig);
remmina_pref_dialog_set_button_label(remmina_pref_dialog->button_keyboard_copy, remmina_pref.vte_shortcutkey_copy);
@@ -693,6 +699,7 @@ GtkDialog* remmina_pref_dialog_new(gint default_tab, GtkWindow *parent)
remmina_pref_dialog->entry_options_ssh_tcp_usrtimeout = GTK_ENTRY(GET_OBJECT("entry_options_ssh_tcp_usrtimeout"));
remmina_pref_dialog->entry_options_scroll = GTK_ENTRY(GET_OBJECT("entry_options_scroll"));
remmina_pref_dialog->entry_options_recent_items = GTK_ENTRY(GET_OBJECT("entry_options_recent_items"));
+ remmina_pref_dialog->entry_grab_color = GTK_ENTRY(GET_OBJECT("entry_grab_color"));
remmina_pref_dialog->button_options_recent_items_clear = GTK_BUTTON(GET_OBJECT("button_options_recent_items_clear"));
remmina_pref_dialog->unlock_timeout = GTK_ENTRY(GET_OBJECT("unlock_timeout"));