Commit Graph

8611 Commits

Author SHA1 Message Date
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
Matthias Melcher
3a7bae7d7f Fixed two warnings from Doxygen. 2019-02-05 15:28:48 +01:00
Matthias Melcher
d41ff666d0 Small improvements to README.macOS.md 2019-02-05 11:24:06 +01:00
Matthias Melcher
7d9d7dd7b8 Fixed all Pixmaps to be '*const' (STR #3108). 2019-02-05 00:14:37 +01:00
Matthias Melcher
4b4e95f280 Fixed Fl_Text_Editor selection range after paste (STR #3248). 2019-02-04 23:57:22 +01:00
Matthias Melcher
b663ce85e0 Improved decumentation for '@' symbols in labels (STR #2940). 2019-02-04 23:32:37 +01:00
Matthias Melcher
0cac8d52e3 Fl_Roller can now be controlled via the mouse wheel (STR #3120). 2019-02-04 23:12:02 +01:00
Matthias Melcher
67f0bf6fee Fixed crash for very small Fl_Color_Chooser (STR #3490). 2019-02-04 00:58:51 +01:00
Matthias Melcher
a7e91e0199 Docs 2019-02-03 09:07:22 +01:00
Matthias Melcher
6d021274d7 Fixed bug introduced while removing shadow lint 2019-02-03 09:05:36 +01:00
Matthias Melcher
017754453e Typo 2019-02-03 00:49:03 +01:00
Matthias Melcher
2be4d720ab Tooltips hide by themselves after 12 seconds (STR #2584). 2019-02-02 23:56:45 +01:00
Matthias Melcher
0bf8197a24 Typo 2019-02-02 23:23:08 +01:00
Matthias Melcher
f4dd9c5199 Added widget visibilit indicator to Fluid (STR #2669). 2019-02-02 23:22:40 +01:00
Matthias Melcher
c97990e517 Removed all shadow lint in header files (STR #2714). 2019-02-02 22:29:53 +01:00
Matthias Melcher
5cd9f6fb80 STR #3323: glutAddMenuEntry now has a const label argument 2019-02-02 22:16:16 +01:00
Matthias Melcher
30733d2d8d Added Fl_Input_::append() method (STR #2953). 2019-02-02 22:04:15 +01:00
Matthias Melcher
5062b5a010 Fixed pulldown menu position when at the bottom of the screen (STR #2880). 2019-02-02 18:36:44 +01:00
Matthias Melcher
452a410a3e STR #2714: remove new shadow lint for MacOS 2019-02-02 17:47:55 +01:00
Matthias Melcher
76668c7cc1 Made Fl_Check_Browser::swap_item public. 2019-02-02 16:28:18 +01:00
Matthias Melcher
e06c09fa25 Fixed missing item handling in Fl_Chekc_Browser (STR #3480). 2019-02-02 16:24:10 +01:00
Matthias Melcher
2ce406ab42 Fl_Help_Dialog::load() now returns an error code (STR #3429) 2019-02-02 01:10:24 +01:00
Matthias Melcher
0698e16a6b Fixed Delete key in Fl_Input deleting entire widgets in Fluid (STR #2841). 2019-02-01 23:59:20 +01:00
Matthias Melcher
d6294ac2fc Reorganized Fluid Template feature (STR #3336). 2019-02-01 23:16:49 +01:00
Matthias Melcher
af8e406f88 Updated Fluid documentation and image (STR #3328). 2019-02-01 21:59:07 +01:00
Matthias Melcher
2b6347d0bd STR #3445: Duplicating Widget Class in Fluid no longer crashes. 2019-02-01 21:32:48 +01:00
Matthias Melcher
aa6d9b74c6 Updated CHANGES file. 2019-02-01 20:59:06 +01:00
Matthias Melcher
4deeea317a STR #3498: Fl_Check_Browser::add(item) now accepts NULL.
As promised in the docs.
2019-02-01 19:36:44 +01:00
Matthias Melcher
a5d55f2e2d STR #3386: Interface to set maximum width of spinner text field. 2019-02-01 18:58:43 +01:00