diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-31 08:07:57 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-01-31 08:07:57 +0100 |
| commit | d1afac2150c91e13a484cb56532f326680308d8d (patch) | |
| tree | e8dbc08dedfdf38d12ad0eee1c104377af559b53 /FL | |
| parent | b9ea732d02055adc11f350730800b836405d8ebd (diff) | |
Add a "Preview" switch to the GTK native file chooser.
The button state is recorded in a preference so is recovered the next
time the GTK file chooser runs.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Native_File_Chooser.H | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FL/Fl_Native_File_Chooser.H b/FL/Fl_Native_File_Chooser.H index 32016dc86..4f0cbc3e0 100644 --- a/FL/Fl_Native_File_Chooser.H +++ b/FL/Fl_Native_File_Chooser.H @@ -106,6 +106,7 @@ class Fl_Native_File_Chooser_Driver; - Under X windows, and if Fl::OPTION_FNFC_USES_GTK has not been switched off, the widget attempts to use standard GTK file chooser dialogs if they are available at run-time on the platform, and falls back to use FLTK's Fl_File_Chooser if they are not. + In the first case, calling fl_register_images() adds a "Preview" button to the GTK chooser dialog. In the latter case, it's best if you call Fl_File_Icon::load_system_icons() at the start of main(), to enable the nicer looking file browser widgets. Use the static public attributes of class Fl_File_Chooser to localize |
