Commit Graph

8539 Commits

Author SHA1 Message Date
ManoloFLTK
a67a9b0f58 Correct typo in Doxygen doc of Fl_System_Driver::filename_ext() 2019-03-26 13:20:18 +01:00
ManoloFLTK
a2cbb03dc9 Improve Doxygen doc of the Fl_SVG_Image constructor 2019-03-26 11:06:55 +01:00
ManoloFLTK
499ec5c291 Replace static void Fl_Window_Driver::default_icons() by virtual Fl_Screen_Driver::default_icons() 2019-03-25 18:47:29 +01:00
ManoloFLTK
258116c5a6 Merge remote-tracking branch 'origin/master' 2019-03-25 13:16:51 +01:00
ManoloFLTK
6a807716a7 Rename fl_compute_macKeyLookUp() to Fl_Darwin_System_Driver::compute_macKeyLookUp() 2019-03-25 13:16:27 +01:00
Albrecht Schlosser
debc1a39ce Update dependencies 2019-03-25 13:16:05 +01:00
ManoloFLTK
e8d7eb1e46 Invalidate Quit also when running native file chooser. 2019-03-23 14:38:20 +01:00
ManoloFLTK
f89593d0de Avoid crash when messages canBecomeKeyWindow or canBecomeMainWindow received by closed window. 2019-03-18 13:07:55 +01:00
ManoloFLTK
1acd2e98d6 Merge remote-tracking branch 'origin/master' 2019-03-12 18:39:35 +01:00
ManoloFLTK
e659355052 Remove unneeded #include directive 2019-03-12 18:39:17 +01:00
Albrecht Schlosser
bab61a93d6 Prevent unnecessary Fl_Clock timer events (STR 3516)
See documentation @ STR 3516
2019-03-12 17:21:53 +01:00
ManoloFLTK
4324acc6f6 Avoid "unused argument" compiler warnings with -Wextra after #include <fl_draw.H> 2019-03-12 10:55:01 +01:00
ManoloFLTK
8e9512330d X11 platform: keep GUI scaling after screen is reconfigured 2019-03-11 16:38:35 +01:00
ManoloFLTK
c03d4cfb8b Merge remote-tracking branch 'origin/master' 2019-03-11 16:20:53 +01:00
ManoloFLTK
4e2ba8c888 X11 platform: follow when the OS changes the Xft.dpi resource
Under gnome, Tweaks -> Fonts ->Scaling factor allows to change
the size of all fonts handled by gnome.
With that change, FLTK apps obey to changes to Xft.dpi.
2019-03-11 16:20:29 +01:00
Albrecht Schlosser
5571c0c381 Don't export gitlab and travis CI control files
These files don't need to be in released tar balls.
2019-03-10 12:23:52 +01:00
ManoloFLTK
347581e3b4 X11 platform: use the Xft.dpi resource as basis for the initial GUI scaling factor
Previously, the display scaling factor value under gnome was sought in the gnome
database using the gnome_scale_factor() function. But that information is no
longer present.
File $HOME/.config/monitors.xml was also used to get that information.
Using the Xft.dpi X resource is simpler and more general because it's
effective both for gnome and KDE.
2019-03-10 08:42:18 +01:00
ManoloFLTK
5f6efb741d Improve static function react_to_screen_reconfiguration() 2019-03-06 14:59:47 +01:00
ManoloFLTK
cf67176b75 Have the fullscreen test program show the screen scaling factor values. 2019-03-06 14:54:51 +01:00
ManoloFLTK
d988930461 Process env var FLTK_SCALING_FACTOR consistently across platforms.
The procedure to set screen scaling factors becomes:
1) each screen scaling factor is set to 1
2) the OS is queried according to each platform to get screen scaling factor
values
3) The value of FLTK_SCALING_FACTOR, if present, is used to multiply
scaling factors
2019-03-06 11:10:37 +01:00
ManoloFLTK
a7a3c5b429 Fix error in Fl_WinAPI_Screen_Driver::screen_work_area() when screen is scaled. 2019-02-28 18:06:32 +01:00
ManoloFLTK
58119f412d Simplifies memory allocation of system menu items for FL_SUBMENU_POINTER 2019-02-27 13:16:47 +01:00
ManoloFLTK
3d57d9136b Avoid recreation of the system menu bar without change 2019-02-27 10:41:50 +01:00
ManoloFLTK
a1b2d54758 Add example of call to Fl_Sys_Menu_Bar::about() 2019-02-24 11:23:38 +01:00
ManoloFLTK
a9a482b1cc Remove statement that became unnecessary. 2019-02-24 11:12:38 +01:00
ManoloFLTK
c2ca17b289 Allow to call Fl_Sys_Menu_Bar::about() early in the program. 2019-02-24 11:00:58 +01:00
ManoloFLTK
6838814f9e Simplify code for the FLMenuItem class 2019-02-24 10:59:10 +01:00
ManoloFLTK
a0510495ea Rename member todelete_ of struct Fl_Window_Driver::shape_data_type to effective_bitmap_ 2019-02-23 10:30:48 +01:00
ManoloFLTK
21c0134931 New member function const Fl_Image* Fl_Window::shape() replaces int Fl_Window::is_shaped()
The new function allows to get the window's shaping image
and delete it after use, if appropriate.
2019-02-23 10:21:27 +01:00
ManoloFLTK
f9255e375c Remove compilation warning with -Wunused-result
Warning was: ignoring return value of ‘char* fgets(char*, int, FILE*)’
2019-02-21 15:19:02 +01:00
ManoloFLTK
1c2dcdb4dc X11: use XGetDefault() to read the value of the Xft.dpi resource. 2019-02-21 15:13:20 +01:00
ManoloFLTK
8d716f7254 Use also the Xft.dpi resource to initialize the GUI scale factor. 2019-02-20 14:07:53 +01:00
ManoloFLTK
95f5135b4d Check to avoid erroneous values for the starting GUI scale factor. 2019-02-20 14:04:56 +01:00
ManoloFLTK
96867f8318 X11 + gnome: improve detection of the current display scale factor
Gnome now seems to store the value of the display scale factor in file
$HOME/.config/monitor.xml. Previously, that value was readable with
the gsettings command.
The present commit uses the information found in that file
and reverts back to the gsettings command if that information is not found.
2019-02-19 14:54:34 +01:00
Albrecht Schlosser
11ed18a52e Add more branches to Travis-CI control file
All branches named like:

 - master
 - branch-1.3
 - feature-*
 - fix-*
 - issue-*
 - str-*

will be built with Travis-CI in the FLTK standard repo and in the
user's and/or developer's forks if they enabled Travis-CI builds.
2019-02-16 12:07:49 +01:00
Albrecht Schlosser
5c18cb84f2 Remove explicit email notifications from .travis.yml
Explicit email addresses don't play well with forks, i.e. the given
mail receivers are *always* notified instead of the author and the
committer. This led to build notifications sent to me instead of Matt
when he committed something in his own fork.

The default rules are much better in this case. The drawback is that
*only* the committer and author get notified and there is obviously
no way to add anybody that gets notified *additionally* to author
and committer.

https://docs.travis-ci.com/user/notifications/#how-is-the-build-email-receiver-determined
2019-02-16 09:16:07 +01:00
Matthias Melcher
2b1bed470f Fix Fluid batch mode with Fl_Simple_Terminal.
Fl_Simple_Terminal would connect Fluid to the Display in batch mode. We
fix that by creating an Fl_Text_Display instead.
2019-02-16 00:00:24 +01:00
Albrecht Schlosser
c92f992380 CMake: Cairo demo must also be built w/o Cairo
The Cairo demo program (test/cairo_test.cxx) can and should be built
even if Cairo is not configured with CMake as it is done with
autotools (configure/make).

The message window shown when Cairo support is not available has been
improved (is more explicit and has a window title).
2019-02-12 15:09:42 +01:00
Albrecht Schlosser
773a257421 Reformat according to the CMP (whitespace only)
Preparing for some minor mods...
2019-02-12 14:55:43 +01:00
Albrecht Schlosser
e5cc28edb6 Update makesrcdist (internal use only)
This file is currently identical with the one in branch-1.3 which was
used to release 1.3.5rc1. It includes generating the MD5 checksums
in a format suitable to be added to the online checksum file.
2019-02-12 14:07:53 +01:00
ManoloFLTK
099b16d69d Document new and modified configure options. 2019-02-11 16:18:14 +01:00
ManoloFLTK
63802673f3 Merge branch 'master' of https://github.com/fltk/fltk 2019-02-10 16:31:36 +01:00
ManoloFLTK
ff8f38f080 Fix Makefile to produce an app bundle under macOS 2019-02-10 16:29:58 +01:00
Albrecht Schlosser
79af685c28 Fix typos 2019-02-09 21:21:48 +01:00
ManoloFLTK
f8334cb999 Merge remote-tracking branch 'origin/master' 2019-02-09 16:29:06 +01:00
ManoloFLTK
2c12bf4e1a X11 platform: account for window scaling in drag-n-drop operations. 2019-02-09 16:28:26 +01:00
Albrecht Schlosser
024064cb4e Remove duplicate source from Makefile (and sort it)
It's easier to notice duplicate files if they are sorted.
2019-02-09 15:39:41 +01:00
ManoloFLTK
44552f3e63 Rename method -[FLViewLayer viewFrameDidChange] to -[FLViewLayer reset_layer_data]
The new name follows FLTK naming rules and has the benefit of avoiding potential
collision with future macOS method names that follow a different naming rule.
2019-02-08 11:04:30 +01:00
ManoloFLTK
65916c106e Remove Fl_Image::as_rgb_image() virtual member function.
It's not used in the library, so its utility remains to be proven.
2019-02-06 17:22:28 +01:00
ManoloFLTK
751506a3fb Fix for STR #3503 - handle Fl_Menu_ deleted while its menu window is running. 2019-02-05 18:40:52 +01:00