Commit Graph

3139 Commits

Author SHA1 Message Date
Greg Ercolano
a5f2ef5ccd When reading XPMs, don't parse more than 2 hex digits
in \xff style escape sequences.

Also, 10000'th commit. :P



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-20 22:35:31 +00:00
Greg Ercolano
da737bb10b Avoid freeing NULL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-20 20:17:13 +00:00
Albrecht Schlosser
e77c0cd47c Small addition to fix for STR #2985 - see comment in source file.
Fixes a small potential of another leak.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-09 11:46:36 +00:00
Manolo Gouy
83e4329695 Added member function Fl_Sys_Menu_Bar::update().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-05 15:20:18 +00:00
Greg Ercolano
2fcb616831 Added note regarding Windows not always handling
file: uris with anchor suffixes properly.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-04 16:48:08 +00:00
Greg Ercolano
a8417b6eb8 Apply Michael Baeuerle's fix for NetBSD
(as per discussion on fltk.general Sep 24 2013, Subject: Potential problem in xutf8/utf8Wrap.c)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-25 21:09:00 +00:00
Manolo Gouy
ce0e298a8a Removed some of the warnings mentioned in [fltk.coredev] New warnings with FLTK 1.3.x svn r9991
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-25 08:55:01 +00:00
Greg Ercolano
15367447cd Fix some warnings for IRIX 6.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 19:58:24 +00:00
Manolo Gouy
99f2010dce Remove errors with the Apple LLVM version 4.2 compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 16:25:29 +00:00
Manolo Gouy
1029debb66 Clarification of change in constant used for text-containing pasteboards across Mac OS versions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 08:27:10 +00:00
Manolo Gouy
3d7d2938c7 Fixes the copy/paste implementation to run on many Mac OS versions.
Checked on 10.3, 10.5, 10.6 and 10.8

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 19:00:15 +00:00
Manolo Gouy
cedcc3f52e Fixed implementation of paste with NSPasteboard that did not work well under Mac OS 10.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 15:01:54 +00:00
Greg Ercolano
25ff26df12 STR #2973: Removed old HP-UX dummy() code in favor of typedef;
Skunk confirms compiles on two HP-UX variants as well as Sun.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-22 17:20:48 +00:00
Greg Ercolano
81dfeab19e Fixed some odd/misleading code indent issues in this file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-22 03:22:41 +00:00
Greg Ercolano
5d4fed1ef9 STR #2860: Mods for full screen support.
Applied the fltk-1.3.x-screen_num.patch



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-22 02:33:17 +00:00
Greg Ercolano
2082d7e197 Fixes STR# 2973: collection of Sun compiler fixes.
Applied str_2973_r9979_sun-fix-warnings-7.patch (with small mods)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-21 16:41:23 +00:00
Greg Ercolano
2fc6c3a39b Fixes STR #2985: prevent memory leaks with XGetWindowProperty()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-20 03:36:02 +00:00
Greg Ercolano
67ed1a8da9 STR# #2973: applied patch str_2973_r9958_sun-fix-errors-5.patch verbatim.
src/Fl_Tree_Item.cxx -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    FL/Fl_Preferences.H  -- solve: "FL/Fl_Preferences.H", line 196: Error: Fl_Preferences::RootNode is not accessible from 0
    FL/Fl_Tree_Item.H    -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    test/unittests.cxx   -- solve: "unittests.cxx",        line 95: Error: The type "UnitTest*[]" is incomplete.
            


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-16 20:25:14 +00:00
Greg Ercolano
578310dd0f Fix Solaris warnings mentioned by Micha on fltk.coredev Sep 16 '13
in thread entitled "Re: STR 2636, clipboard notification".



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-16 12:02:40 +00:00
Manolo Gouy
3baf5e0d58 Implemented copy/paste with Cocoa's NSPasteboard instead of Core Foundation's Pasteboard Manager
which allows quite simpler code.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-12 12:21:57 +00:00
Pierre Ossman
1d6cc80d59 STR 2636. Add ability to get notifications whenever the
clipboard changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 12:54:40 +00:00
Pierre Ossman
f410352c7c Copy over NSInteger safety typedefs from Fl_cocoa.mm
so that we can continue to compile for OS X 10.4.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9973 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 12:06:03 +00:00
Pierre Ossman
9ce5d7c2ad Simplify clipboard handling on Windows by consolidating
it into one central function. 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 11:11:22 +00:00
Manolo Gouy
65226e073e Fixed typo in comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-06 09:24:28 +00:00
Manolo Gouy
1fa38347bb Fixed typo in Doxygen doc of Fl::compose(int&)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-06 09:03:22 +00:00
Manolo Gouy
bc17e8c6f9 Removed linkage with undocumented function CPSEnableForegroundOperation() used to support
Mac OS 10.2 or below. This made no sense because the Copy/Paste implementation requires Mac OS 10.3.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9964 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-05 09:12:35 +00:00
Manolo Gouy
cc68c2e43c Copy directly pasteboard data when pasting if it's UTF-8 encoded.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9962 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04 14:39:59 +00:00
Manolo Gouy
0585de060c Added fl_lock/unlock_function() calls for extra caution in - (void)applicationDidChangeScreenParameters:
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04 09:30:18 +00:00
Manolo Gouy
c450606e4e Fixed mac-specific minor error visible when typing forward-delete in keyboard demo program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-07-23 16:02:44 +00:00
Manolo Gouy
86c9ef0c76 Fixed a PostScript error triggered when calling
Fl_PostScript_Graphics_Driver::arc(int x, int y, int w, int h, double a1, double a2)
with w == 1 or h == 1, as reported in 
http://www.fltk.org/newsgroups.php?s28125+gfltk.general+v28133


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-07-16 19:09:57 +00:00
Ian MacArthur
998020f758 Remove a header file I added during testing, but which is not required now...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-06-06 12:59:24 +00:00
Ian MacArthur
c9598ade18 Attempt to fix UTF8 encoding of WIN32 Native File Chooser BROWSE_DIRECTORY options
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-06-06 12:10:44 +00:00
Manolo Gouy
12fbd8b6b4 Mac OS X text input: stop sending the FL_PASTE event after character palette events;
send instead FL_KEYBOARD as for regular text input. Fl::event_key() will return 0 during
palette events.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-29 09:12:38 +00:00
Manolo Gouy
502280c097 It doesn't seem necessary to redraw a GL window before capturing its pixel content.
Calling Fl_Gl_Window::make_current() is enough.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-19 12:34:31 +00:00
Greg Ercolano
d31afde9d8 Fixes STR #2962: Applied patch from ossman
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9920 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-16 13:48:22 +00:00
Manolo Gouy
a22eba2b38 Fixes Fl_System_Printer::printable_rect() and Fl_System_Printer::margins() that did not work well
after calls to Fl_System_Printer::translate() under MSWindows.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-15 13:42:19 +00:00
Manolo Gouy
0d04ce9f58 Fixes a typo introduced at r.9915.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9916 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-15 10:50:10 +00:00
Manolo Gouy
75076f6a40 Fixes a MSWindows' specific bug where GL windows where not printed at their correct location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-13 16:53:59 +00:00
Manolo Gouy
110cd81b1e Call [NSWindow setRestorable:NO] for each FLTK window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-08 13:11:56 +00:00
Manolo Gouy
b62d3ae87b print_gl_window(): it's safer to memorize and restore the value of the fl_window global variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-04 21:14:31 +00:00
Manolo Gouy
a2d821cc2e Use the [NSimage initWithCGImage:size:] message when possible.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-30 08:56:28 +00:00
Ian MacArthur
2e5c45aec7 Test of repo access - non-changing in terms of functionality!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-26 16:00:36 +00:00
Manolo Gouy
076eb8679f Changed © (copyright) date to 2013.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-26 14:15:25 +00:00
Manolo Gouy
c4494a94a7 Cosmetic improvement of image used when dragging non-text data.
Minimum OS version has been verified.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-19 09:20:56 +00:00
Manolo Gouy
53e2e603d0 Cosmetic improvement of image used when dragging non-text data.
Minimum OS version still has to be verified.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-18 16:15:59 +00:00
Manolo Gouy
a758910517 Removed some unnecessary data duplication.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-17 12:06:04 +00:00
Manolo Gouy
702dd3b9ba Updated describing comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-17 07:45:31 +00:00
Manolo Gouy
5c513270f9 Renamed src/Fl_Sys_Menu_Bar.cxx to src/Fl_Sys_Menu_Bar.mm because objective-c code is used (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 14:11:21 +00:00
Manolo Gouy
6b69461ea9 Renamed src/Fl_Sys_Menu_Bar.cxx to src/Fl_Sys_Menu_Bar.mm because objective-c code is used.
Some code is transferred from Fl_cocoa.mm thus reducing somewhat this very large source file.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 14:02:42 +00:00
Ian MacArthur
b176f4d3f6 Apply the *nix file-chooser patches from STR #2935.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 12:02:23 +00:00