Allow Lensfun DB dir editing from preferences

Also refactor the file chooser button widget to share code with the file
chooser entry. Use our own folder icon instead of the system one.
This commit is contained in:
Lawrence Lee
2023-04-29 18:43:38 -07:00
parent 3d67ca450f
commit f5dba61243
5 changed files with 314 additions and 219 deletions

View File

@@ -92,7 +92,7 @@ class Preferences final :
Gtk::ComboBoxText* languages;
Gtk::CheckButton* ckbLangAutoDetect;
Gtk::Entry* dateformat;
Gtk::Entry* startupdir;
MyFileChooserEntry* startupdir;
Gtk::RadioButton* sdcurrent;
Gtk::RadioButton* sdlast;
Gtk::RadioButton* sdhome;
@@ -115,8 +115,9 @@ class Preferences final :
MyFileChooserButton* darkFrameDir;
MyFileChooserButton* flatFieldDir;
MyFileChooserButton* clutsDir;
MyFileChooserButton* cameraProfilesDir;
MyFileChooserButton* lensProfilesDir;
MyFileChooserButton* cameraProfilesDir;
MyFileChooserButton* lensProfilesDir;
MyFileChooserEntry* lensfunDbDir;
Gtk::Label *dfLabel;
Gtk::Label *ffLabel;