Commit Graph

728 Commits

Author SHA1 Message Date
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
08533b52b5 Bump version numbers to 1.3.5, prepare for release.
There are still files that need changes, but with this commit the
majority of files is up-to-date.

Files left to be updated later:

 - ANNOUNCEMENT         partly done, needs RELEASE DATE !
 - CHANGES              up-to-date (?), but needs RELEASE DATE !
 - KNOWN_BUGS.html      needs more work (snapshot)
 - maybe more           (unknown)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 18:32:47 +00:00
Albrecht Schlosser
f8d38c504c Fluid: add sanity checks for illegal UTF-8 encoding, fix buffer size.
Some illegal UTF-8 sequences might have caused buffer overflows. This
is checked now. Also updated string buffer sizes to support full Unicode
range up to U+10FFFF, i.e. UTF-8 sequences with up to four bytes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-28 21:33:45 +00:00
Albrecht Schlosser
da17124908 Fix string truncation in fluid (STR #2722 continued).
This commit fixes the truncated string drawing that was partly fixed
in svn r 9112 (FLTK 1.3.1, 2011-10-01).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-28 17:26:10 +00:00
Greg Ercolano
d84c70f9e6 Applied patch from STR #3335 to fix simple GUI issues.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 18:21:11 +00:00
Greg Ercolano
d4c4237be2 Followup to last commit (r12041) to include not only mods to .fl, but .cxx as well.
(For fluid, we maintain /both/ .fl and .cxx/.h files in SVN; easy to forget..!)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 16:54:44 +00:00
Greg Ercolano
5ba5befec1 Added line numbers to Edit -> Show Source Code viewer (source + header tabs)
Fixes Aditya Siram's observation today on fltk.coredev.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 16:46:57 +00:00
Albrecht Schlosser
de80a36218 Fix inconsistent interpretation of ld() in image handling (STR #3308).
Documentation has been fixed and clarified, and ld() handling is now
consistent in Fl_(RGB_)Image, their subclasses and fl_draw_image()
and similar functions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 16:35:44 +00:00
Albrecht Schlosser
ad65146bf9 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:19:25 +00:00
Albrecht Schlosser
0c317dbce8 Fix potential compiler warnings.
Backported from branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11954 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:17:29 +00:00
Albrecht Schlosser
5886d3706f Update fluid files and copyright.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 12:57:18 +00:00
Greg Ercolano
0cbc735d4f Limit line numbering to New>Code editor.
(was affecting Properties->Callback and New>Code>Comment editors)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-30 05:44:19 +00:00
Greg Ercolano
2f6c01b590 Fixes STR#3318 for win32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 21:08:40 +00:00
Greg Ercolano
6348651114 Appled STR #3318 patch: str3318_v1.patch. Unix only. (Need something similar for Windows)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 20:42:22 +00:00
Greg Ercolano
974dc18f82 Solves STR #3319: enable line numbers in: Edit -> Show Source Code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 20:18:24 +00:00
Albrecht Schlosser
f2ff3eb0e0 Fix more Windows 64-bit g++ compiler warnings.
Fixed warnings:

  42 cast to pointer from integer of different size [-Wint-to-pointer-cast]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 10:51:00 +00:00
Greg Ercolano
d8676e6f4c More properties.. :/
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:38:32 +00:00
Greg Ercolano
a8e65c0a45 Improved fluid-org.png diagram.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:02:52 +00:00
Greg Ercolano
bf8c44098e These files weren't added in r11816, adding now..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-18 14:23:50 +00:00
Greg Ercolano
0d189a0814 Adds external editor capability to fluid for all platforms.
Solves STR#3213. [CORRECTED]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-17 19:51:54 +00:00
Albrecht Schlosser
c092b92938 [CMake] Improve Mac OS X bundle generation and more (STR #3299).
Remove example specific tests from macro CREATE_EXAMPLE, add
function to set bundle icon, simplify some CMake setup code,
deprecate usage of UseFLTK.CMake.

Todo: Fix documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-16 14:43:37 +00:00
Albrecht Schlosser
17f677e0a3 Fix more compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 21:12:49 +00:00
Albrecht Schlosser
12d5c63bb8 [CMake] Simplify CMake build files, remove redundancies.
Remove src/fl_call_main.c from non-Windows (static) libraries. It would
be an empty object file anyway.

Use CMake variables to set up used files and linked libraries to remove
redundancies. All files and libs are used only in the definition of
CMake variables and used later in static and shared builds, resp.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 18:30:51 +00:00
Albrecht Schlosser
448e02574b [CMake] Remove redundant linking in CMake build process (STR #3298).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 16:56:23 +00:00
Albrecht Schlosser
024f60fd4f Fix copyright year again (sorry for the noise).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 15:51:09 +00:00
Albrecht Schlosser
d22f87ca3b Fix fluid/Makefile again.
The previous commit unintentionally reverted the patch before that.
Also remove duplicate from target clean.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 15:43:26 +00:00
Albrecht Schlosser
753aa53c2e Fix compiler warnings, last part (STR #2988).
The fixes in this commit include those proposed in file #6
(fltk-misc-1.patch) with a few modifications (see comment on STR).

Changes in src/fl_set_font.cxx are not included (see comment #13).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 15:14:42 +00:00
Albrecht Schlosser
c33f143710 Fix fluid/Makefile: add *.bak to target "clean".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 02:09:39 +00:00
Manolo Gouy
69ec698e41 Mac OS: modified CMake config files to allow use of OPTION_APPLE_X11
to build an X11-using version of FLTK on the Mac OS platform.
This matches the recent support of the --enable-x11 option
by the configure script on the mac.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-31 06:19:59 +00:00
Albrecht Schlosser
4f5e6e7732 Harmonize configure and CMake build system (part 1).
The files "config.h" generated by configure and CMake are now almost
identical, except a few comments and some still missing or failing
config tests, for instance checks for some functions in libraries.
[Note: tested and compared on Linux.]

configh.cmake.in: Fixed many #cmakedefine and #cmakedefine01 statements
  so they #define their variables as 0 or 1, or /* #undef */ it, resp.,
  as it is done in the configure build.

Added tests:
  - libXrender

Fixed tests:
  - function glXGetProcAddressARB

Todo (still failing tests in CMake):
  - HAVE_PNG_GET_VALID
  - HAVE_PNG_SET_TRNS_TO_ALPHA
  - HAVE_DLSYM

Other remaining issues:
  - compiler flags introduced in configure/make build
  - HAVE_SYS_NDIR_H - maybe missing test in configure ?
  - HAVE_SYS_DIR_H  - maybe missing test in configure ?
  - HAVE_NDIR_H     - maybe missing test in configure ?
  - WORDS_BIGENDIAN and #include <mac_endianness.h> ...
    i.e. Mac OS X specific #include needed or not ?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-30 14:37:35 +00:00
Manolo Gouy
43bfe74b25 Running FLTK in static initializers (cont'd):
1) Changed the way fluid attaches images to widgets and menu items so
it is compatible with running fluid-generated code containing such images
in a static initializer. Images are now attached calling a function:
  widget->image( image_function_name() );
and this function is defined before in fluid-generated code as:
   static Fl_Image *image_function_name() {
     static Fl_Image *image = new image_type(......);
     return image;
   }

2) Changed src/Fl_File_Chooser.fl so the source code generate by fluid
from it is compatible with running in a static initializer.

3) Changed src/Fl_File_Chooser.cxx and FL/Fl_File_Chooser.H
to the result of running fluid on src/Fl_File_Chooser.fl 

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-18 18:56:58 +00:00
Albrecht Schlosser
3666209659 Finish "rename" of *.xcf.gz - delete uncompressed files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24 14:43:20 +00:00
Albrecht Schlosser
bf873db029 Rename *.xcf.gz files to *.xcf_gz instead of uncompressing.
This is intended circumvent the Apache/Subversion protocol issue
described by Ian in the previous few commits.

Todo: If this works we can remove the uncompressed files again ...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24 14:37:37 +00:00
Ian MacArthur
a2b8700a82 Replace the "renamed" fluid.xcf[.gz] file that
was blocking repository access for checkouts.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24 11:51:06 +00:00
Ian MacArthur
df12bf6c66 Attempting to unblcok repository access.
The Apache server is currently mis-handling
files with a .gz extension, and this causes
checksum errors and blocks checkouts etc.

Renaming the files does not work (it also
fails) but it seems deleting the files, then
adding them back with a "new" name does work.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24 11:49:30 +00:00
Albrecht Schlosser
144c656360 Fixed missing image release as described in STR #2840.
Thanks to OP (Nikego) and Matt!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-07 00:11:45 +00:00
Albrecht Schlosser
d7d57f9113 Fixed copyright year, updated CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-03 15:45:41 +00:00
Albrecht Schlosser
2aae73febc Fix out-of-bounds memory access in fluid (STR #3263).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-03 15:08:54 +00:00
Albrecht Schlosser
99c536234e Add light gray separator line to fluid widget browser (STR #2997).
Also fix some comments.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-08-01 19:04:07 +00:00
Albrecht Schlosser
a2e13ee3a2 Fix documentation, adjust comments in fluid/Fl_Type.cxx.
No code changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10813 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-23 00:22:42 +00:00
Albrecht Schlosser
01cbcc8406 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-22 23:20:47 +00:00
Albrecht Schlosser
c9d8e0feaa Update fluid .fl files and generated code - remove trailing white space.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09 02:09:33 +00:00
Albrecht Schlosser
9488810968 Fix trailing white space in fluid .fl files (STR #3239).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09 01:17:33 +00:00
Albrecht Schlosser
5573c35ff1 Fix spelling errors and improve documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 20:24:41 +00:00
Albrecht Schlosser
6b8f3c6027 Fix compiler warnings in fluid-generated code (STR #2813).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-10 19:26:17 +00:00
Manolo Gouy
6496fd33be CMake generation of Xcode project under Mac OS: bundle fluid with its proper icon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 16:08:54 +00:00
Matthias Melcher
c4b0a2f3bf Tricking Fl_Text_Display into using bearable colors for CodeView in Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-04 15:06:30 +00:00
Matthias Melcher
326b64d278 STR #3184: fixed code editor in Fluid to check the previous line for a block comment style in the last character. If so, the previous line is include in the calculation of the current line. This seems to fix issues when changing the block-comment character combination '*/' by deleting a character or adding one in the middle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-04 11:17:38 +00:00
Albrecht Schlosser
33f61316fc Fix typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03 19:39:45 +00:00