Mercurial > hg > forks > geeqie
diff src/preferences.c @ 2793:2feed80bcd34
Collections changes
Implement a file class for Collections
Include an icon for collections (temporary icon until someone creates an
appropriate one)
Double-click on a .gqv icon in the files pane opens the collection
window
Option in Preferences/Behavior to open collection windows on top
N.B. current users have to manually edit the Collections entry in
Preferences/Files to change the collections class from metadata to
collection
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Sat, 07 Jul 2018 19:50:31 +0100 |
parents | 03dd5a7bb410 |
children | ea4163f0c769 |
line wrap: on
line diff
--- a/src/preferences.c Fri Jul 06 19:46:54 2018 +0100 +++ b/src/preferences.c Sat Jul 07 19:50:31 2018 +0100 @@ -109,7 +109,8 @@ N_("Image"), N_("RAW Image"), N_("Metadata"), - N_("Video") + N_("Video"), + N_("Collection") }; /* config memory values */ @@ -410,6 +411,7 @@ options->marks_save = c_options->marks_save; options->with_rename = c_options->with_rename; + options->collections_on_top = c_options->collections_on_top; config_entry_to_option(help_search_engine_entry, &options->help_search_engine, NULL); options->read_metadata_in_idle = c_options->read_metadata_in_idle; @@ -2544,6 +2546,7 @@ GtkWidget *table; GtkWidget *marks; GtkWidget *with_rename; + GtkWidget *collections_on_top; vbox = scrolled_notebook_page(notebook, _("Behavior")); @@ -2605,6 +2608,10 @@ options->with_rename, &c_options->with_rename); gtk_widget_set_tooltip_text(with_rename,"Change the default button for Copy/Move dialogs"); + collections_on_top = pref_checkbox_new_int(group, _("Open collections on top"), + options->collections_on_top, &c_options->collections_on_top); + gtk_widget_set_tooltip_text(collections_on_top,"Open collections window on top"); + 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);