diff src/preferences.c @ 2750:0eac8ea9b1be

Fix #220, 269: marks do not persist https://github.com/BestImageViewer/geeqie/issues/220 https://github.com/BestImageViewer/geeqie/issues/269 Marks/image connections can optionally be saved in a text file in the same folder as History etc. The option is in Preferences/Behavior - set to save by default. Also a menu item to clear all marks.
author Colin Clark <colin.clark@cclark.uk>
date Fri, 04 May 2018 16:16:37 +0100
parents 8bab8ac8ade0
children f2f01d556f51
line wrap: on
line diff
--- a/src/preferences.c	Thu May 03 16:03:26 2018 +0100
+++ b/src/preferences.c	Fri May 04 16:16:37 2018 +0100
@@ -407,6 +407,8 @@
 	options->info_comment.height = c_options->info_comment.height;
 	options->info_rating.height = c_options->info_rating.height;
 
+	options->marks_save = c_options->marks_save;
+
 #ifdef DEBUG
 	set_debug_level(debug_c);
 #endif
@@ -2333,6 +2335,7 @@
 	GtkWidget *ct_button;
 	GtkWidget *spin;
 	GtkWidget *table;
+	GtkWidget *marks;
 
 	vbox = scrolled_notebook_page(notebook, _("Behavior"));
 
@@ -2386,6 +2389,10 @@
 	pref_checkbox_new_int(group, _("List directory view uses single click to enter"),
 			      options->view_dir_list_single_click_enter, &c_options->view_dir_list_single_click_enter);
 
+	marks = pref_checkbox_new_int(group, _("Save marks on exit"),
+				options->marks_save, &c_options->marks_save);
+	gtk_widget_set_tooltip_text(marks,"Note that marks linked to a keyword will be saved irrespective of this setting");
+
 	pref_spin_new_int(group, _("Recent folder list maximum size"), NULL,
 			  1, 50, 1, options->open_recent_list_maxsize, &c_options->open_recent_list_maxsize);