From c549b7acbd65674019b731c6648a9e8eb22f70dd Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 15 Sep 2019 15:57:29 +0200 Subject: X11 platform: use Gnome printer dialog when the GTK library is available at 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. --- FL/Fl.H | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'FL') diff --git a/FL/Fl.H b/FL/Fl.H index 88fe801c6..0c3eab377 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -252,6 +252,10 @@ public: /// if the GTK library is available on the platform (linux/unix only). /// When switched off, GTK file dialogs aren't used even if the GTK library is available. OPTION_FNFC_USES_GTK, + /// When switched on (default), Fl_Printer runs the GTK printer dialog + /// if the GTK library is available on the platform (linux/unix only). + /// When switched off, the GTK printer dialog isn't used even if the GTK library is available. + OPTION_PRINTER_USES_GTK, /// When switched on (default), the library shows in a transient yellow window the zoom factor /// value. /// When switched off, no such window gets displayed. -- cgit v1.2.3