Commit Graph

1309 Commits

Author SHA1 Message Date
Albrecht Schlosser
908d900794 Bump version numbers from 1.3.9 to 1.3.10 2024-05-14 15:57:04 +02:00
Albrecht Schlosser
a66273e726 Raise CMake minimum required version to 3.15 and more
- ensure that all required CMake policies are set to 3.15
- enhance CMake status report (add bundled library types)
- add erco's CMake instructions for building with NMake
- improve HTML docs (remove "custom" HTML footer)
- update ANNOUNCEMENT
2023-12-09 14:58:40 +01:00
Albrecht Schlosser
c17d42c7e7 Fix compiler warnings, backported from 1.4 (master)
Also update CHANGES file.

The compiler warnings were issued by MinGW with gcc 9.2.0.

Note: There are lots of compiler warnings left when building with
  Visual Studio and/or NMake but these will not be fixed in 1.3.9.
  All warnings have been fixed in 1.4.0 (current git 'master').
2023-12-07 19:32:51 +01:00
ManoloFLTK
f74c144f68 Mention removal of OPTION_APPLE_X11 and --enable-x11 under macOS 2023-12-06 16:18:48 +01:00
Albrecht Schlosser
59dbcd5621 Update CHANGES, README, README.CMake.txt, support files
... and documentation

- makesrcdist:
  - reflect changes in fltk.spec.in
  - create fltk_git_revision.dat in source distribution
2023-12-05 18:37:56 +01:00
Albrecht Schlosser
5a5baca1e2 Bump version numbers, prepare release 1.3.9
Still to do: update bundled libs, maybe more.
2023-12-02 22:36:53 +01:00
Albrecht Schlosser
84c9432d2a Fix "gtk+ rendering" (GitHub Issue #443)
This commit is a minimal fix for issue #443.

A more complete fix is in Git 'master', i.e. in FLTK 1.4.0.
2023-12-02 19:55:27 +01:00
ManoloFLTK
1b5db5519d Add support for macOS Sonoma 14 2023-10-25 11:29:07 +02:00
Albrecht Schlosser
ea78943e86 Remove unused variable, fix "type issue" (#445, part 2)
This commit removes an unused variable as suggested in the discussion
of issue #445: "type issue in fluid/ExternalCodeEditor_WIN32.cxx"

Backported from 'master', b5b88d5f0d

Note: this "type issue" made the build fail on Windows with current
  MSYS2 (gcc 13.1.0).
2023-06-10 18:30:22 +02:00
Albrecht Schlosser
0695e62ce8 Fix compilation error with Visual Studio 2022
This old code (unchanged since 1998) wouldn't compile with the current
version of Visual Studio 2022.

Fix backported from 1.4.0 (c4bb4e192e).
Original commit by Matthias Melcher.
2022-11-11 00:49:21 +01:00
Albrecht Schlosser
8ae8370dcf X11: Suppress compiler warnings when using gcc or clang
Suppress warning [-Wdeprecated-declarations] regarding function
  XKeycodeToKeysym()

Backported from master branch.

Update 'CHANGES' for a potential release 1.3.9
2022-07-22 18:03:23 +02:00
Albrecht Schlosser
92b6962495 Add new dialog fl_choice_n() with extended return values (#282)
This new dialog enables the user program to distinguish whether the
user closed the window by hitting Escape, clicking the window's
close button, or using the "cancel" button with return value 0
as requested by GitHub Issue #282 "fl_choice() doesn't tell you
if the dialog was closed".
2021-11-20 14:42:56 +01:00
Albrecht Schlosser
12db27551c Fix build with FLTK_CONSOLIDATE_MOTION turned off (X11)
Up to 1.3.7 this was obviously never turned off or nobody noticed
the compilation problems.
2021-11-05 13:44:54 +01:00
Albrecht Schlosser
70ebfdb6a1 Finalize release 1.3.7
Update version numbers, announcement, docs, ...
2021-07-25 15:16:28 +02:00
Albrecht Schlosser
f9e5d29ae0 Release 1.3.6
Update CHANGES + ANNOUNCEMENT. No further changes since 1.3.6rc2
2021-05-15 12:22:19 +02:00
Albrecht Schlosser
696119b071 Finalize 1.3.6 release candidate 2 (1.3.6rc2)
Update CHANGES.
2021-05-04 19:36:17 +02:00
Albrecht Schlosser
46604ef40b Finalize release candidate 1.3.6rc1 2021-04-26 21:14:15 +02:00
ManoloFLTK
63709515ec Mention support of building for macOS/arm64 platform. 2021-03-14 16:14:08 +01:00
Albrecht Schlosser
7ce6d2cf5d Fix X11 copy-paste and drag-and-drop target selection (#182)
Select the "best" target rather than a random one out of a list of
suitable targets. The target selection algorithm would sometimes
select the wrong target and hence retrieve unexpected data.

This could happen in both copy-paste and drag-and-drop operations.
2021-02-01 02:13:47 +01:00
Albrecht Schlosser
0c70362e63 Fix offscreen drawing under X11 (STR 3384)
- fix undefined 'GC' if no window has been shown/drawn yet
- may still need to call fl_open_display() prior to offscreen-drawing
- improve documentation, add example code
2020-11-03 12:02:54 +01:00
Albrecht Schlosser
1eaf87b245 Minor CMake, docs, and test program updates
Fix bug in CMake/posixScandir.cxx (backported from 1.4).

Fix table structure in test/help-test.html (backported from 1.4).

Clarify that the deprecated forms compatibility *may* be removed in
FLTK 1.4
2020-09-19 19:47:18 +02:00
ManoloFLTK
8f8f83dd53 Add support of macOS "Big Sur" 11.0 2020-08-29 09:47:16 +02:00
Albrecht Schlosser
0b27865f54 Update CHANGES and dependencies 2020-07-20 14:03:15 +02:00
Albrecht Schlosser
219ae5e455 X11: Fix X Input Methods (XIM) (STR 3502, 3192)
Revert commit 958d912ffc using 'XSetLocaleModifiers("@im=");'
which was incorrect (STR 3192).

Apply fix for STR 3502, using 'XSetLocaleModifiers("");' which appears
to be the correct solution for using X Input Methods (XIM).
2020-02-10 13:16:16 +01:00
Albrecht Schlosser
9fb6d048a0 Fix trailing whitespace in CHANGES 2019-12-26 17:01:35 +01:00
Albrecht Schlosser
770663920e Fix Fl::add_timeout() in draw() under Linux (STR 3188)
Timeouts queued during Fl_Widget::draw() - called by Fl::flush() -
would not be serviced unless other events were processed. For
Details see STR 3188.
2019-12-09 17:50:15 +01:00
Albrecht Schlosser
25b947aa7d Prepare for release 1.3.5 (final) 2019-03-03 09:40:23 +01:00
Albrecht Schlosser
4ecdfd1e6f Remove wrong entry in CHANGES 2019-02-18 13:59:05 +01:00
Albrecht Schlosser
b533fe8881 Prepare release candidate 2 (1.3.5rc2) 2019-02-17 12:53:19 +01:00
Albrecht Schlosser
aed2f8eb91 Update release date of 1.3.5rc1 2019-02-11 14:24:58 +01:00
ManoloFLTK
8e78e53a85 Mention fix for STR 3473 and STR 3507. 2019-01-30 18:09:44 +01:00
Albrecht Schlosser
a8640c6225 Fix Fl_Tree::insert() with pos out ouf range (#18)
The given position to insert a new item was not checked  against the
valid range so the program  could crash if a position less than zero
or greater than children() was given. The position is now clamped to
the valid range, i.e. the item is either prepended or appended.

Fixes issue #18.

Backported from 1.4, commit 9b272cfa4e
2019-01-25 18:27:21 +01:00
Albrecht Schlosser
64b3327dfb Update CHANGES 2019-01-06 19:38:55 +01:00
Albrecht Schlosser
f1517d5df9 Prepare for release of FLTK 1.3.5.
CHANGES: update list of changes.
KNOWN_BUGS.html: prepare list of open bugs (currently empty).

Todo: add actual bug list to KNOWN_BUGS.html before release.
2019-01-01 18:51:21 +01:00
Albrecht Schlosser
3aa32804f7 Fix crash if menu is deleted while menu is open (SGR #3503).
This can happen when a menu widget (e.g. Fl_Choice) is deleted in a
timer callback while the menu is open (pulldown active).
2018-12-07 14:27:39 +01:00
Albrecht Schlosser
3bd78bb022 Fix CMake build (fluid) on case sensitive macOS file systems.
Note: Xcode projects NOT modified. These project files appear to refer
to 'fluid/Fluid.app' (with uppercase 'F') as well.
2018-12-04 15:00:49 +01:00
Albrecht Schlosser
8fb3709ff0 Windows/OpenGL: fix pixel format detection (STR #3119).
This patch fixes two aspects described in STR #3119:
 (a) enables detection and prefers pixel formats with composition
 (b) selects no more than 32 bit colors (8 bits per pixel)

(a) was the reason for this STR, (b) was reported repeatedly in
fltk.general (see STR #3119).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-05 18:56:24 +00:00
Manolo Gouy
d2730d3e2c Mention new support for MacOS 10.14
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-10-21 07:06:51 +00:00
Manolo Gouy
23e36efa83 Mention the last 2 committed changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-17 09:05:38 +00:00
Manolo Gouy
121abf4ca9 Mention MacOS change to support pasting from recent MS Office apps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-10 15:56:50 +00:00
Albrecht Schlosser
9bc2c7ba52 Add FL/platform.H for compatibility with FLTK 1.4.0 and higher.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 16:58:22 +00:00
Albrecht Schlosser
b88929f98c Fix Fl_Text_Editor overstrike mode (STR #3463).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 13:13:07 +00:00
Albrecht Schlosser
fe7ff8888e Fix, optimize, and comment "gleam" scheme box drawing.
Some border lines were too short or too long, the shading code would draw
too many shaded lines, and the code was hard to understand.

With this commit all background pixels of the box are drawn exactly once.
The border lines are consistent, but some pixels of the border are not
drawn at all so the background shines through. This is intended for
backwards compatibility.

A minor change is that the drawn background does no longer overlap the
border lines. Hence undrawn pixels that previously displayed the colored
box background are now transparent and show the parent widget's color.

This commit adds comments and implementation notes to make the code easier
to understand and better maintainable (hopefully).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-20 16:20:17 +00:00
Albrecht Schlosser
67fd2793a3 Fix latest MinGW build error (S_OK, __FD_ISSET, STR #3454).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-19 14:50:02 +00:00
Albrecht Schlosser
aa216a46d4 CMake/Windows only: add missing #define WIN32 for all compilers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-28 23:22:43 +00:00
Albrecht Schlosser
c249933075 Fix illegal memory access after free when closing fluid (STR #3427).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-18 18:12:18 +00:00
Albrecht Schlosser
2c01c3ece9 Fix crash when closing fluid with Fl_Table (STR #3427).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-18 17:40:26 +00:00
Albrecht Schlosser
6052771126 Fix ignored buffer pre-allocation (requestedSize) in Fl_Text_Buffer.
See fltk.general "Fl_Text_Buffer constructor bug" on Dec 5, 2016.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 17:06:42 +00:00
Albrecht Schlosser
07a62cdeb6 Fix Fl_Browser background and text color parsing (STR #3376).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:58:44 +00:00
Albrecht Schlosser
5252bbe03b Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:50:45 +00:00