diff src/preferences.c @ 2826:d0c6c5ae586b

Option to hide predefined keyword tree Selected on Preferences/General
author Colin Clark <colin.clark@cclark.uk>
date Sun, 26 Aug 2018 19:32:38 +0100
parents b29ce668abca
children bb44bd76f857
line wrap: on
line diff
--- a/src/preferences.c	Sun Aug 26 19:14:39 2018 +0100
+++ b/src/preferences.c	Sun Aug 26 19:32:38 2018 +0100
@@ -417,6 +417,8 @@
 	options->info_comment.height = c_options->info_comment.height;
 	options->info_rating.height = c_options->info_rating.height;
 
+	options->show_predefined_keyword_tree = c_options->show_predefined_keyword_tree;
+
 	options->marks_save = c_options->marks_save;
 	options->with_rename = c_options->with_rename;
 	options->collections_on_top = c_options->collections_on_top;
@@ -1887,6 +1889,11 @@
 				 1, 9999, 1,
 				 options->info_rating.height, &c_options->info_rating.height);
 
+	group = pref_group_new(vbox, FALSE, _("Show predefined keyword tree"), GTK_ORIENTATION_VERTICAL);
+
+	pref_checkbox_new_int(group, _("Show predefined keyword tree (NOTE! Geeqie must be restarted for change to take effect)"),
+				options->show_predefined_keyword_tree, &c_options->show_predefined_keyword_tree);
+
 	group = pref_group_new(vbox, FALSE, _("On-line help search engine"), GTK_ORIENTATION_VERTICAL);
 
 	help_search_engine_entry = gtk_entry_new();