Commit Graph

5710 Commits

Author SHA1 Message Date
Lauri Kasanen
6e72a21271 Move the X11 UTF check above in utf8Input to avoid an unused function warning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:48:31 +00:00
Lauri Kasanen
bbc8782b6a Move Xutf8.h to src/, update includes, refresh makedepends
This is an internal header.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:41:58 +00:00
Albrecht Schlosser
0ddd4e4717 Update .gitignore file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10247 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 00:22:55 +00:00
Lauri Kasanen
95ba2900f3 Use the -fvisibility checks properly; needed to move ac_prog_cc and _cxx up in the file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 19:44:27 +00:00
Lauri Kasanen
7944cc9a57 Revert 10243, it broke the build for others.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 17:26:28 +00:00
Pierre Ossman
936e4ca511 Only link with fontconfig if Xft is used
This matches what the autoconf stuff does. It is also crucial
on OS X where linking against fontconfig can fool the system into
believing that FLTK requires X11, prompting the installation of
XQuartz.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 11:54:35 +00:00
Lauri Kasanen
1af2035e91 Check for compiler support of -fvisibility and -fvisibility-inlines-hidden
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 11:33:36 +00:00
Albrecht Schlosser
ee118334be Remove unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 10:28:50 +00:00
Lauri Kasanen
c4b6455d32 Newer linkers are more strict about libs coming after objects.
This is also consistent with the Mac and Windows platforms in the same file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 14:24:19 +00:00
Lauri Kasanen
376cad54b1 Apply static-fixes.patch by skunk. STR #2988
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 14:03:52 +00:00
Lauri Kasanen
c4b3a2d5d3 When typing a path in Fl_File_Chooser, the enter key should select the file. STR #2910
This was originally changed in 1.1.8 by matt (r6092). The commit was about fixing
multiple selection and had no mention of why the enter key behavior was changed
not to work. STR #1913

Multiple selection still works.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 13:51:11 +00:00
Lauri Kasanen
5613941a28 Include Xft results in fltk-config CFLAGS. STR #2893
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10238 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 13:25:55 +00:00
Lauri Kasanen
9d96c7a26c X11: Use libX11 UTF-8 support when available.
This saves quite a bit of library size. STR #3107


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:34:07 +00:00
Lauri Kasanen
64dd5df141 Enable symbol visibility on Linux, bringing a shared libfltk on par with Windows.
Also drops the size of libfltk.so nicely.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:29:48 +00:00
Lauri Kasanen
fc71f3d1ca Ignore test/icon executable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:23:47 +00:00
Lauri Kasanen
6bfd46312f Sprinkle some more const on internal arrays. STR #3110
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:18:32 +00:00
Lauri Kasanen
c706d3c101 Constify the pointers in some XPM images. STR #3108
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:16:40 +00:00
Lauri Kasanen
d9505e1b24 Mark a few symbols static. This is the bulk from STR #3111.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:13:47 +00:00
Lauri Kasanen
88b5e53289 Constify an internal table in Fl_Help_View. STR #3109
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:10:33 +00:00
Lauri Kasanen
3113727cc9 Use symbolic and sectioned builds if supported by the toolchain.
These help both shared lib size, as well as app size when statically linking. STR #3097


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:08:02 +00:00
Lauri Kasanen
3a5f3f1820 Use system vsnprintf when possible, saves 2kb lib size.
Currently with Linux guards, as the function seems to be broken in Windows.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:01:46 +00:00
Lauri Kasanen
f44d3fe01c Fix two typos in comments (test commit)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 08:14:19 +00:00
Albrecht Schlosser
82f157481d Fix a comment, remove trailing white space.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-19 12:37:13 +00:00
Albrecht Schlosser
34a641f1ef Fix a typo (cut'n'paste error).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-19 12:36:12 +00:00
Greg Ercolano
cd3ca84e71 Fixes STR #3113 memory overrun
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-03 16:40:58 +00:00
Greg Ercolano
fbfac0f6cc 'make clean' should clean examples too.
'make' however should /not/ build examples.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-01 20:56:09 +00:00
Greg Ercolano
d785f5b4e8 Removed unused variable last_y to prevent this warning under mingw:
Compiling Fl_Text_Display.cxx...
    Fl_Text_Display.cxx: In member function 'void Fl_Text_Display::draw_line_numbers(bool)':
    Fl_Text_Display.cxx:2875:9: warning: variable 'last_y' set but not used [-Wunused-but-set-variable]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21 18:07:09 +00:00
Greg Ercolano
018f4ee978 Removed unused code strcnt() to prevent warnings w/mingw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21 18:05:25 +00:00
Greg Ercolano
7eb0c224df * Small doxygen doc improvements + elaborations
* Small name change for new typedef.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-16 18:51:56 +00:00
Greg Ercolano
afcd967fd8 * Modified the ScrollInfo structure for more modularity,
which helps doxygen docs be clear.

* Changed loop in recalc_scrollbars() to loop thru /all/ children
  and skip over scrollbars, instead of assuming fix_scrollbar_order()
  has been called.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-16 03:32:14 +00:00
Greg Ercolano
7382173223 Solves STR #1895 by making the recalc method and structure
protected (accessible to derived widgets).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-15 15:23:33 +00:00
Manolo Gouy
677e13f2bb Fix for STR #3106: a tiled image could fail if the size of the tiled surface exceeded the size of the main screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-10 12:28:00 +00:00
Greg Ercolano
b18dd182d0 Fixes STR #3103; remove Fl_Sys_Menu_Bar.cxx from all VS ide files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-02 23:34:28 +00:00
Greg Ercolano
574c174dd7 Fix for STR #3101 to handle e.g. "foo.f[ld]" filters properly.
(Was only counting ',' style filters, not character oriented filters)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-01 01:43:33 +00:00
Manolo Gouy
0f4fa1633d Changes brought in at r. 10046 make fluid crash when open or saving files with Fl_Native_File_Chooser
on the WIN32 platform.
The filter used by fluid "FLUID files \t*.f[ld]/n" makes Fl_Native_File_Chooser::parse_filter() crash.
The present changes TEMPORARILY avoid this crash, but r. 10046 changes should be closely reviewed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 13:39:09 +00:00
Pierre Ossman
e64a8e90e3 Follow up to earlier commit. Missed one reference to fixcursor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 10:30:58 +00:00
Pierre Ossman
de2e11d743 Stop declaring fl_default_cursor as it no longer exists.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 09:40:33 +00:00
Pierre Ossman
0f75e7fdb2 The SGI 320 is obsolete since many many years, so remove this code
rather than try to port it to the new fancy cursor handling.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 09:39:57 +00:00
Manolo Gouy
a59a3d29ff Fixed a menu-positioning problem where a menu window could appear on another screen
than where expected. Occurred when one screen has negative x coordinates.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-28 12:29:51 +00:00
Manolo Gouy
a8d1251aaa Mac OS: a borderless, non-modal window was not created properly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-26 19:31:38 +00:00
Manolo Gouy
6ade2fde82 svn property changes.
-tThis line, and those below, will be ignored--

_M   Fl_Copy_Surface.cxx


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-26 16:14:42 +00:00
Manolo Gouy
87fe066c29 It's probably better to also change SendMessage into SendMessageW
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-24 15:23:51 +00:00
Manolo Gouy
10caca062a Fixed error when browsing for a directory and using a non-ascii starting directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-24 15:06:24 +00:00
Manolo Gouy
f7f820ed4c Added const qualifier to remove compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-23 17:17:05 +00:00
Manolo Gouy
5bc8825509 Since fl_cursor_wait.xpm is used only on Mac OS, draw it the Mac way.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-23 17:14:57 +00:00
Manolo Gouy
f60b8778f7 Removed non-standard allocation of variable-sized array on the stack.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-21 17:47:50 +00:00
Manolo Gouy
0831d31b03 GTK file chooser: set correct current directory when selecting for a folder.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10203 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-20 15:40:50 +00:00
Manolo Gouy
37f77a271c GTK file chooser: honor request of current directory for the file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10202 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-20 13:43:17 +00:00
Manolo Gouy
703045f5b1 Fixed a possible crash of the GTK file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-19 17:02:36 +00:00
Manolo Gouy
da5dff32ea Sets the return type of Fl_Image_Surface::image() to its real value, Fl_RGB_Image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-18 01:22:16 +00:00