summaryrefslogtreecommitdiff
path: root/src/Fl_Native_File_Chooser_GTK.cxx
AgeCommit message (Collapse)Author
2024-06-21Remove trailing whitespaceAlbrecht Schlosser
no code changes
2024-04-22 Fix for Fl_Native_File_Chooser::filter_value() - cont'd (#899)ManoloFLTK
2024-04-22 Fix: Fl_Native_File_Chooser::filter_value() [Kdialog] always returns 0 (#899)ManoloFLTK
- remove build option FLTK_USE_KDIALOG replaced by an Fl::option() option - new run-time option OPTION_FNFC_USES_KDIALOG - make options OPTION_FNFC_USES_KDIALOG and OPTION_FNFC_USES_ZENITY false by default - add mention of new program fltk-options in the doc of Fl::option() - change logic of choice of the native file chooser under X11/Wayland: the zenity and kdialog choosers are opt-in; otherwise the GTK file chooser is used, unless opted out with OPTION_FNFC_USES_GTK - document that zenity may be interesting for sandboxed apps - document that both zenity and kdialog make member functions Fl_Native_File_Chooser::filter_value() inoperable
2024-03-18Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPIManoloFLTK
2023-01-31Fix miscellaneous #include directivesManoloFLTK
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2022-12-18Fix "link errors connected with recent Zenity dialog feature" (#602)ManoloFLTK
2022-12-16Derive Fl_Zenity_Native_File_Chooser_Driver from Fl_Kdialog_Native_…ManoloFLTK
Also add Fl::option(OPTION_FNFC_USES_ZENITY)
2022-12-16Add Zenity-based file chooser based on the KDialog one (HugLifeTiZ)Trent McPheron
If available, it is used on Linux regardless of the current desktop because it offers free XDG portal integration, which means it picks the correct file chooser on all desktops, and allows for meaningful file selection in sandbox environments like Flatpak.
2022-11-07Create class Fl_Unix_Screen_Driver used by X11 and Wayland platformsManoloFLTK
2022-10-14Make sure display is open when using native file chooser (#514)ManoloFLTK
2022-08-20Remove FL_EXPORT qualifier from platform-specific class declarations.ManoloFLTK
2022-04-05Fix for "Fl_Native_File_Chooser_GTK does not respect PREVIEW option" in ↵ManoloFLTK
fltk.general.
2022-03-04Add the Wayland platform to FLTK 1.4ManoloFLTK
2022-03-03Fix whitespace, update dependencies and fluid filesAlbrecht Schlosser
2022-03-03Fix for issue #401. No longer attempt to transiently inactivate the maximize ↵ManoloFLTK
button. This inactivation works with some window managers, but not with KDE or xfce. It's probably an issue of these WM rather than of FLTK.
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-16Improve Fl_GTK_Native_File_Chooser_Driver in relation to FLTK windows.ManoloFLTK
Implement a new way to make the GTK file-chooser window modal-like by preventing any event processing by other FLTK windows. The new way is also no longer X11-specific.
2022-01-14Move make_transient() to Fl_Posix_System_Driver from Fl_Screen_DriverManoloFLTK
2021-12-08Fix for issue #278 - continued : add CMake OPTION_USE_KDIALOGManoloFLTK
Use of the kdialog command by class Fl_Naive_File_Chooser can now be turned off at build-time through CMake OPTION_USE_KDIALOG. If building via configure + make, set #define USE_KDIALOG to 0 in config.h before make.
2021-12-07Fix for issue #278 - continuedManoloFLTK
Because kdialog can't select multiple directories, run the GTK chooser when BROWSE_MULTI_DIRECTORY is used.
2021-12-07Fix for issue #278: Can we use the qt/kde file picker instead of gtk?ManoloFLTK
Under the X11 platform, class Fl_Native_File_Chooser will behave as follows : - if the KDE desktop is used and if command "kdialog" is available in the path, the Qt/KDE file chooser is used; - otherwise, if the GTK library is available at run-time, the GTK file chooser is used; - otherwise, the FLTK file chooser is used. In addition, when Fl::OPTION_FNFC_USES_GTK is off, the FLTK file chooser is always used.
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-04-04Fix for issue #209: Gtk-CRITICAL messages from native file chooserManoloFLTK
Thanks to K.R. for the fix.
2021-03-31Move the X11-specific part of GTK native file chooser to Fl_X11_System_DriverManoloFLTK
2021-03-31Fl_X11_System_Driver::probe_for_GTK() is now ↵ManoloFLTK
Fl_Posix_System_Driver::probe_for_GTK()
2021-02-16Remove FL_CFG_WIN_X11 preprocessor variable from Fl_Native_File_Chooser_GTK.cxxManoloFLTK
2020-10-30X11+GTK: remove warning when native file chooser runs on WaylandManoloFLTK
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-02-09Eliminate -Wunknown-pragmas and -Wsign-compare warnings on GCCdarealshinji
2020-01-31Add a "Preview" switch to the GTK native file chooser.ManoloFLTK
The button state is recorded in a preference so is recovered the next time the GTK file chooser runs.
2020-01-22Fix preservation of the caller's locale when running GTK dialogs.ManoloFLTK
There are now 2 kinds of GTK libraries (V2 and V3) and two dialogs the file chooser and the printer chooser.
2019-09-15X11 platform: use Gnome printer dialog when the GTK library is available at ↵ManoloFLTK
run-time The code to determine whether the GTK library is available is now in Fl_X11_System_Driver::probe_for_GTK() called both by Fl_Printer::begin_job() and Fl_Native_File_Chooser. New Fl::option OPTION_PRINTER_USES_GTK allows to deactivate use of the Gnome print dialog. Minor change in Fl_Native_File_Chooser: GTK version 3 is searched before version 2, whereas the search order was the opposite before.
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16Use more consistent naming for derived classes of Fl_Native_File_Chooser_Driver.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13Fix typo in config_lib.hManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05Rewrite the Fl_File_Native_Chooser class under the driver model.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-04Created pseudo code for all FL_PORTED section so that FLTK compiles and ↵Matthias Melcher
links (Xcode, hello, other C flags: -D FL_PORTING -U __APPLE__ -U __APPLE_QUARTZ__) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-13Allowing to use FLTK objects in static initializers (cont'd).Manolo Gouy
Case of Fl_Native_File_Chooser. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10963 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-13Fix error in Gnome file dialog where a file filter did not work if it did ↵Manolo Gouy
not begin with * git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-01Protect use of dlopen() and dlsym() with HAVE_DLSYM and HAVE_DLFCN_H for ↵Manolo Gouy
compatibility with cases where these functions aren’t available. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-20GTK file chooser: set correct current directory when selecting for a folder.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10203 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-20GTK file chooser: honor request of current directory for the file chooser.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10202 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-19Fixed a possible crash of the GTK file chooser.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-07STR #3088: make Fl_Native_File_Chooser use the standard GTK file dialog when ↵Manolo Gouy
available. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121