Commit Graph

943 Commits

Author SHA1 Message Date
Daniel Silverstone
c078c3f509 gtk/corewindow.c: Correctly handle scroll_visible
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 21:00:06 +01:00
Daniel Silverstone
6bbdf08cb0 gtk, beos: Run scheduler before fetching fdset
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 17:06:45 +01:00
Daniel Silverstone
f7d97d6483 monkey: Report the errno when select() returns -1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 16:57:38 +01:00
Daniel Silverstone
6a9137f431 monkey: Run scheduler before extracting fdsets
We need to run the scheduler *before* we extract the fdsets from
the fetchers, otherwise fetch aborts might result in EBADF

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-02 16:56:54 +01:00
Vincent Sanders
3114e78ded fix missed get dimensions call in amiga frontend 2019-08-02 12:58:50 +01:00
Vincent Sanders
552aab42e1 remove scaled parameter from get_dimensions 2019-08-02 12:26:20 +01:00
Vincent Sanders
955cf5f97b RISCOS: change invalidate to cope with unscaled rectangles 2019-08-01 22:34:13 +01:00
Vincent Sanders
654840e845 AMIGA: Update to remove rectangle scaling from browser window invalidate 2019-08-01 22:34:13 +01:00
Michael Drake
2943e9ae46 GTK: Update for unscaled bw invalidate rectangle. 2019-08-01 22:34:13 +01:00
Vincent Sanders
5742762070 split browser and browser_window operations 2019-08-01 19:51:19 +01:00
Samuel Dionne-Riel
87177d8aa1 GTK: prefer using curl's intrinsic defaults for CURLOPT_CA*
On distributions that ship only a ca-bundle in `/etc/ssl`, the
configuration set at initialization will force curl to look for
certificates that are not present in this directory.

Removing the setting instead makes curl use its internal default.

The framebuffer frontend will not set this option, and the only
other frontend that sets it is BeOS.

This issue can be observed (likely among other) on the NixOS Linux
distribution.
2019-08-01 12:03:06 +01:00
brabo
ba9f5f8ef0 gtk/fetch.c & monkey/filetype.c: ascii_is_space already checks for newline. 2019-08-01 10:42:08 +01:00
brabo
c90bfb23ad gtk/fetch.c & monkey/filetype.c: small comment correction. 2019-08-01 10:42:08 +01:00
Daniel Silverstone
6c951f7a15 monkey/browser.c: Handle failed calloc more gracefully
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-01 09:23:58 +01:00
Vincent Sanders
f4878b4c17 Update version for next development cycle 2019-07-17 11:39:46 +01:00
Vincent Sanders
f7d4b485cb update copyright years for release 2019-07-17 11:19:06 +01:00
Michael Forney
6a53b447e5 Declare global variables as extern in headers
Otherwise, each source file that includes the header will create a
new definition, which are usually merged together by the linker.

Multiple definitions of an object is not allowed in ISO C.
2019-06-30 09:52:06 +01:00
Vincent Sanders
ca2cbac232 fix freetype pkg-config usage in atari frontend 2019-06-29 18:01:22 +01:00
Vincent Sanders
a57940a468 fix atari STRIP makefile target to not have a spurious close bracket 2019-06-25 16:59:22 +01:00
Vincent Sanders
8b31e18ad6 stop the atari toolchain from matching the cstrip binary for the strip one 2019-06-25 16:56:06 +01:00
Chris Young
24590a1145 Check callback memory is allocated before trying to use it. 2019-06-09 20:30:46 +01:00
Chris Young
93494790f3 Fix memory leak in Amiga frontend 2019-06-09 20:17:47 +01:00
Chris Young
7314651b95 NULL drawhandle after free 2019-06-09 19:29:56 +01:00
Vincent Sanders
dddc5eac94 Update schedulers return codes
The GTK and monkey frontends schedulers now return NSERROR_NOT_FOUND
 when a caller is using a negative schedule time to remove a callback.
2019-06-08 13:33:16 +01:00
Vincent Sanders
eeeca4b712 add ability to stop a navigation in monkey frontend 2019-06-06 17:17:27 +01:00
Vincent Sanders
2db39b1f7d quieten down windows debug 2019-05-17 18:15:58 +01:00
Chris Young
a5e4bf8220 Make SimpleRefresh the default.
This reduces memory use.
2019-05-12 16:43:01 +01:00
Chris Young
f139c4fa4d Add a render hook to ensure the browser window is redrawn when needed
This fixes the occasional damaged areas in SimpleRefresh mode
2019-05-12 16:38:48 +01:00
Chris Young
336a7dc170 Mark functions as static 2019-05-10 22:11:21 +01:00
Chris Young
6ac65a3674 Hide the message port which is shared amongst all Amiga NetSurf windows 2019-05-10 21:59:03 +01:00
Chris Young
24b910f4ff Make the window list more private
TODO: fix arexx.c to not need it
2019-05-10 21:49:00 +01:00
Chris Young
a5051c7128 Use new beep function 2019-05-10 21:34:22 +01:00
Chris Young
97010ecef5 Make screen pointer accesible through an accessor function only 2019-05-10 20:59:30 +01:00
Chris Young
c5a07fac76 Replace global current gui_window with an accessor function 2019-05-10 20:32:40 +01:00
Vincent Sanders
8f9d434b12 make win32 keyboard handling in browsing window functional
makes the drawable area widget for the browser display use windows
unicode input and copes with surrogate pairs for full unicode input
coverage.

fixes the keydown handling to only the necessary navigation operations
like left, right up and down etc.
2019-05-09 23:27:59 +01:00
Vincent Sanders
95b8d12950 implement windows clipboard functionality
This allows clipboard to operate (cut, copy, paste and delete) in the
 win32 front end. The clipboard is set and read in windows unicode
 mode and then converted to/from utf-8 for the browser core.
2019-05-09 23:11:05 +01:00
Chris Young
896e531a7f fix os3 build 2019-05-08 18:35:51 +01:00
Chris Young
944d8fc412 try storing form_control in the hook data
it doesn't appear to be needed anywhere else
2019-05-08 18:12:22 +01:00
Chris Young
19742c826a Make gadget object enum private to gui.c 2019-05-08 17:51:53 +01:00
Chris Young
76618d9588 make gui_window_2 private to gui.c 2019-05-08 17:48:50 +01:00
Chris Young
df5c18315f Pass ptr to clicktab var instead of func calls 2019-05-08 17:29:14 +01:00
Chris Young
d0df3fa4b3 more accessor for gui_window_2 2019-05-08 01:44:44 +01:00
Chris Young
1cd30fdb3c Move ami_(re)set_pointer (back?) into gui.c as they need to set/read the gui_window_2 structure 2019-05-08 00:59:04 +01:00
Chris Young
ae36d35728 throbber crap 2019-05-08 00:56:07 +01:00
Chris Young
a5aa53657c get the window title from a gui_window 2019-05-08 00:35:09 +01:00
Chris Young
1edf8f2848 set find window function 2019-05-08 00:30:51 +01:00
Chris Young
c64d48005c Try moving form_control into gui_window 2019-05-08 00:18:43 +01:00
Chris Young
4713e1c8af Accessor for the select menu control pointer 2019-05-08 00:16:06 +01:00
Chris Young
ca1a519cfa remove direct access to gui_window_2's gui_window 2019-05-08 00:08:35 +01:00
Chris Young
b9dd0a60c3 accessor for window from gui_window_2 2019-05-07 23:43:15 +01:00
Chris Young
83c3831853 set menu to window through a function 2019-05-07 22:22:12 +01:00
Chris Young
67af746324 Get menu structure directly from gui_window 2019-05-07 22:07:57 +01:00
Chris Young
6d1f480f01 Get the shared window's window structure directly from the gui_window
In a lot of places gui_window_2 was only being accessed for Window
2019-05-07 21:58:09 +01:00
Chris Young
5c7b5476f0 Make gui_window private to gui.c
TODO: ratonalise these accessors
2019-05-07 21:45:40 +01:00
Chris Young
d719bdcee3 No debug symbols on OS3
None of the tools manage to extract any info from them
2019-05-06 13:36:18 +01:00
Chris Young
3e3a8e9549 Fix crash on exit 2019-05-06 13:31:35 +01:00
Vincent Sanders
2c49123a27 attempt to fix amiga os3 build 2019-05-06 12:16:45 +01:00
Vincent Sanders
dd96a69573 fix several amiga frontend warnings 2019-05-06 10:32:16 +01:00
Daniel Silverstone
6fdc692aa5 Support DEBUG log level in console_log
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:16:48 +01:00
Daniel Silverstone
2b8531ff49 Monkey: Support console_log
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:04:48 +01:00
Vincent Sanders
d27027d4ba fix type used with content_get_source_data() 2019-05-06 08:13:00 +01:00
Vincent Sanders
35bc2ccbb8 change content get_source_data interfaces to return uint8_t and size_t
previously these interfaces returned char * and unsigned int which was
undesirable.
2019-05-05 22:50:25 +01:00
Vincent Sanders
f966580d22 remove some warnings in amiga frontend build 2019-05-05 22:48:44 +01:00
Daniel Silverstone
689458aa6e Monkey: Support WINDOW EXEC WIN n cmd...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Vincent Sanders
efdea7757b fix enum name incompatability between gtk 2 and 3 2019-05-05 15:38:19 +01:00
Chris Young
ccb499b800 Release guigfx drawhandle 2019-04-10 18:27:24 +01:00
Chris Young
1a170f9f32 Re-instate accidental removal of pkg-config for curl/openssl 2019-04-08 18:44:44 +01:00
Chris Young
ac46ecbc1c Small Capital Q codepoint 2019-04-08 18:35:51 +01:00
Chris Young
35dbf07440 Add AmiSSL requirement 2019-04-08 12:49:13 +01:00
Chris Young
178d4bc25c Fix some bsdsocket.library usage
NetSurf now builds against libcurl-AmiSSL
2019-04-08 12:49:13 +01:00
Chris Young
0a72449f4b Allow for building against AmiSSL instead of OpenSSL 2019-04-08 12:49:06 +01:00
Chris Young
7c9066b49f No reason why RISC OS ,type extensions should end up in the Amiga resources any more 2019-03-17 23:59:55 +00:00
Chris Young
d0a9fc3e35 Fix IORequest duplication and ensure library bases are cleared when closed. 2019-03-17 23:43:47 +00:00
Chris Young
7d402ebc46 Reduce compression level for compatibility with Amiga LhA 2.15 2019-03-15 23:18:43 +00:00
Chris Young
446fd392e8 Ensure the message port has been initialised 2019-03-15 18:19:10 +00:00
Chris Young
13a7004e6b Fix URL + FORCE issue #2635 2019-03-02 23:30:38 +00:00
Vincent Sanders
f367b23d72 free language vector in framebuffer resource setup 2019-02-21 12:11:55 +00:00
Vincent Sanders
54371c28f0 make framebuffer use the language environment for the UI resources 2019-02-17 00:11:27 +00:00
Michael Drake
cfb6c461fc monkey: Add bmp and ico to mime_hash. 2019-02-16 16:08:17 +00:00
Daniel Silverstone
2e50e1ea71 Fix text plotter in monkey 2019-02-16 10:21:06 +00:00
Vincent Sanders
9952ef000c fix case of framebuffer message install 2019-02-16 09:29:18 +00:00
Daniel Silverstone
29ce303eb0 Framebuffer: Add symlink to build messages resource
Since framebuffer lacks the language directories in its resources
currently, we need a symbolic link to the en/Messages built in
the top level resources directory in order that nsfb can run
without the Messages file having been installed previously.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-02-15 21:08:35 +00:00
Vincent Sanders
231f026e6a Improve framebuffer install rule 2019-02-15 17:53:31 +00:00
Anthony J. Bentley
d1fa6a8ee1 fix feature flags for openbsd 2019-02-15 16:31:06 +00:00
Vincent Sanders
413929dad5 Use pkg-config for freetype2 if available else fallback to old script 2018-12-18 11:42:43 +00:00
Chris Young
7d1e8a75fb single precision test 2018-11-21 18:41:43 +00:00
Vincent Sanders
a2ffbdfd1c add certificate window handling 2018-11-04 11:20:40 +00:00
Daniel Silverstone
46b6b7c9b4 Final tweaks, support LOGIN in monkeyfarmer 2018-11-04 10:35:22 +00:00
Daniel Silverstone
fa8dfa28d1 Update monkey 401login a little to be easier to work with 2018-11-04 10:11:13 +00:00
Vincent Sanders
f12dee199c add 401 login handling to monkey frontend 2018-11-03 17:33:42 +00:00
Michael Drake
97cbc18021 Monkey: Buildsystem: Set messages directory. 2018-11-03 17:30:49 +00:00
Daniel Silverstone
b34a52e4b9 More monkey stuff 2018-11-03 17:14:43 +00:00
Daniel Silverstone
94bba97a45 Remove redundant redraw method 2018-11-03 16:51:01 +00:00
Daniel Silverstone
6fcb0d498f Update farmer a little ready for later 2018-11-03 15:28:23 +00:00
Daniel Silverstone
77814588a8 Correct wrong MOUT_ERROR to MOUT_WINDOW 2018-11-03 15:27:58 +00:00
Vincent Sanders
6ff3238825 centralise monkey output generation 2018-11-03 15:12:50 +00:00
Daniel Silverstone
4fcb6eb301 Upgrade monkey farmer to python 3 (badly) 2018-11-03 11:42:50 +00:00
Michael Drake
96254254a6 GTK: Squash GCC8.2 warning.
frontends/gtk/download.c: In function ‘gui_download_window_create’:
frontends/gtk/download.c:829:10: warning: cast between incompatible function types from ‘gboolean (*)(gboolean)’ {aka ‘int (*)(int)’} to ‘gboolean (*)(void *)’ {aka ‘int (*)(void *)’} [-Wcast-function-type]
          (GSourceFunc) nsgtk_download_update, FALSE);
          ^
2018-11-03 11:00:09 +00:00
Michael Drake
5eb7345cc7 GTK: Make nsgtk_download_selection_action match GFunc prototype.
Squashes GCC 8.2 warning:

frontends/gtk/download.c:244:22: warning: cast between incompatible function types
from ‘nsgtk_download_selection_action’ {aka ‘void (*)(struct gui_download_window *)’}
to ‘void (*)(void *, void *)’ [-Wcast-function-type]
  g_list_foreach(dls, (GFunc)action, NULL);
                      ^
2018-11-03 08:48:24 +00:00
Michael Drake
df79047cb6 GTK: Squash a couple of warnings from GCC 8.2.
frontends/gtk/download.c: In function ‘nsgtk_download_do’:
frontends/gtk/download.c:238:24: warning: cast between incompatible function
types from ‘void (*)(GtkTreePath *)’ {aka ‘void (*)(struct _GtkTreePath *)’}
to ‘void (*)(void *, void *)’ [-Wcast-function-type]
   g_list_foreach(rows, (GFunc)gtk_tree_path_free, NULL);
                        ^
frontends/gtk/download.c:239:24: warning: cast between incompatible function
types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
   g_list_foreach(rows, (GFunc)g_free, NULL);
                        ^
2018-11-03 08:39:05 +00:00
Vincent Sanders
8687265c9a fix stupid typo in previous commit 2018-10-08 12:33:58 +01:00
Vincent Sanders
a8ee1c2d63 explicitly check for null string before compare 2018-10-06 15:44:17 +01:00
Chris Young
5b849b1e22 Add a TODO for history context menu 2018-09-27 00:23:36 +01:00
Chris Young
dfc8f5aef4 Quick fix to convert helphints to correct charset
We should probably have our own strings for these
2018-09-27 00:18:14 +01:00
Chris Young
b097455772 Convert find window messages to local charset 2018-09-27 00:12:17 +01:00
Chris Young
64bc2a7931 Stop using the same large list of gadget constants everywhere
Saves a small amount of memory
2018-09-26 23:53:49 +01:00
Vincent Sanders
83512a6ff5 squash clang warning about increased alignment requirements. 2018-09-26 17:21:05 +01:00
Chris Young
1a8fdb1462 Change logging back to INFO 2018-09-09 14:36:28 +01:00
Vincent Sanders
bd8991c2f6 fix framebuffer BUILD libpng flags on freebsd 2018-09-07 12:23:39 +01:00
Vincent Sanders
40cdf498b9 Change BUILD compiler target to cc
The use of gcc explicitly does not work on systems where the local
 building system only has the clang compiler.

Framebuffer was the only user of the BUILD_CC target for local
 tooling and its handling of flags was also improved.
2018-09-07 12:01:21 +01:00
Vincent Sanders
8bca6cf28b correctly setup feature flags 2018-09-06 21:34:51 +01:00
Vincent Sanders
05b9baadbc _XOPEN_SOURCE needs defining to avoid warnings on BSD 2018-09-06 12:35:36 +01:00
Vincent Sanders
2596331640 seems freebsd needs _XOPEN_SOURCE for math.h macros to be defined 2018-09-06 12:10:38 +01:00
Vincent Sanders
6ce6b62099 stop defining _XOPEN_SOURCE
This is necessary with some libc as it overrides _POSIX_C_SOURCE
and removes definitions of scandir etc.
2018-09-06 11:33:02 +01:00
Chris Young
39176736b3 Log version numbers of opened libraries
Log open failures as ERROR instead of INFO
2018-09-02 17:12:40 +01:00
Vincent Sanders
7fae41b6d3 update copyright years and versions in docs and readme 2018-08-29 10:40:36 +01:00
Vincent Sanders
9142bab736 remove a warning on openbsd 2018-08-28 22:17:02 +01:00
Michael Drake
d54e0461ad GTK: Remove logging during window resize. 2018-08-27 20:04:24 +01:00
Vincent Sanders
487309a1e6 fixup usage of gvalue init macro 2018-08-26 11:22:20 +01:00
Vincent Sanders
4765c68a15 fix gtk 3 deprication warnings 2018-08-26 10:12:35 +01:00
Vincent Sanders
f4620a3f68 remove depricated gtk 3 interfaces 2018-08-24 20:25:14 +01:00
François Revol
579465df50 Haiku: use the native locale API to get the language name
We used getenv() on LC_MESSAGES but we currently set it incorrectly
anyway... We keep this as a fallback.
2018-08-21 21:17:12 +02:00
Vincent Sanders
2f663987c5 do not use strlen as a variable name 2018-08-21 14:59:29 +01:00
Vincent Sanders
a8248a7bb9 Update windows frontend to use windows resources 2018-08-21 10:27:16 +01:00
Vincent Sanders
650ac58604 Improve GTK login dialog 2018-08-19 23:16:16 +01:00
Vincent Sanders
2f3c7e24c0 make the login dialog password control obscure input 2018-08-18 23:52:08 +01:00
Vincent Sanders
a6c595f4f3 add win32 http authentication dialog 2018-08-18 23:30:12 +01:00
Vincent Sanders
c938d1962b add login dialog 2018-08-16 17:28:38 +01:00
Chris Young
0f18440fd5 Convert user/pass from/to UTF-8
Haven't successfully logged in with credentials featuring UTF-8 characters, but ASCII run through the conversion is working and UTF-8 usernames display correctly when the user is re-prompted.
2018-08-15 18:54:47 +01:00
Chris Young
b46f1257c3 Convert user/pass to UTF-8 for submission 2018-08-15 18:20:18 +01:00
Chris Young
7964629914 Convert login UI strings from UTF-8 before display 2018-08-15 18:02:10 +01:00
Chris Young
122f09af5d Close login window if NetSurf quits 2018-08-15 17:39:36 +01:00
François Revol
35f28f0c9a haiku: add a package target
It seems to work, but hardcodes the dependencies versions.
2018-08-15 17:11:00 +02:00
Michael Drake
097f8dcde5 Atari: Delete commented out code. 2018-08-15 09:56:47 +01:00
Michael Drake
10033267a2 RISC OS: Propagate 401 login setup error back to core. 2018-08-15 08:43:08 +01:00
Michael Drake
423b04d406 Atari: gui_401login_open returns nserror now. 2018-08-15 08:41:03 +01:00
Michael Drake
cd0309fa83 RISC OS: gui_401login_open returns nserror now. 2018-08-15 08:40:39 +01:00
Michael Drake
cf17ecbbc7 Haiku: Use struct nsurl in header. 2018-08-15 08:18:31 +01:00
Michael Drake
1cdacf8ae5 Atari: Fix http auth logging. 2018-08-15 08:18:12 +01:00
Michael Drake
58240e4967 Haiku: Remove extraneous void. 2018-08-15 08:01:24 +01:00
Michael Drake
d9dacf9bb2 Atari: Add missing commas. 2018-08-15 07:59:21 +01:00
Michael Drake
297236ae0c RISC OS: Use struct nsurl. 2018-08-15 07:57:36 +01:00
Michael Drake
66a97b863c Atari: Move to new HTTP auth API. 2018-08-15 07:29:58 +01:00
Michael Drake
c55a31aa11 RISC OS: Update to new HTTP auth API. 2018-08-15 07:29:58 +01:00
Michael Drake
97810d0c1a Monkey: Update for new HTTP auth API. 2018-08-15 07:29:58 +01:00
Michael Drake
e41e558c5f Haiku: Update for new HTTP auth API. 2018-08-15 07:29:58 +01:00
Michael Drake
6144993c8a GTK: Update for new HTTP auth API. 2018-08-15 07:19:58 +01:00
Michael Drake
42d596bc11 Amiga: Update for new HTTP auth API. 2018-08-15 07:19:58 +01:00
Michael Drake
7458cfa999 Amiga: Fix silly. 2018-08-13 12:47:43 +01:00
Michael Drake
982ca87537 Amiga: Ensure realm is copied for local struct. 2018-08-13 11:31:48 +01:00
Michael Drake
57a6328b14 RISC OS: Make URL drag include the fragment. 2018-07-23 11:41:12 +01:00
Michael Drake
09b015bf11 Browser: Rename function to access bw URL. 2018-07-23 10:47:26 +01:00
Michael Drake
169a91ace9 RISC OS: Plotters: Fix typo. 2018-05-23 17:46:22 +01:00
Michael Drake
8332bf6b2a Plotters: Remove width param from path plotter.
We now use the stroke_width in the plot_style.
2018-05-23 13:48:17 +01:00
Michael Drake
66493421e6 Plotters: Change stroke width in the plot_style_t to fixed point. 2018-05-23 13:04:19 +01:00
Michael Drake
a58d97a41a Plotters: Add plot_style_fixed type, and use for font size. 2018-05-23 11:48:35 +01:00
Vincent Sanders
6cabd4cd62 remove spurious messages file from framebuffer install target 2018-05-22 13:04:09 +01:00
Vincent Sanders
2a03ea3049 move html and text content handlers where they belong 2018-05-10 13:37:02 +01:00
Daniel Silverstone
9b04d79e60 Treat the .c font file as a sentinel for the .h, reduces rebuilds of fonts in -j 2018-04-22 14:10:16 +01:00
Vincent Sanders
0569fbf170 change tab next and back accelerators
fixes bug #2581
2018-04-22 14:03:18 +01:00
Vincent Sanders
2c7d24c5bc ensure stdint is included where required 2018-04-22 14:03:18 +01:00
Vincent Sanders
d196ea7795 fix gtk accelerator loading 2018-04-22 14:03:18 +01:00
Vincent Sanders
cfa5856eea Initial conversion of GTK accelerators to separate config file 2018-04-22 14:03:18 +01:00
Daniel Silverstone
9c164e591f Fix embarassing typo in amiga Makefile 2018-04-22 11:37:33 +01:00
Daniel Silverstone
942ef0df03 Fix amiga Icons->icons issue 2018-04-22 11:28:08 +01:00
Daniel Silverstone
de806db28e Move !NetSurf into frontends/riscos and fix up 2018-04-22 11:15:23 +01:00
Daniel Silverstone
e864997842 Fix last uses of !NetSurf outside of riscos build 2018-04-22 10:55:22 +01:00
Daniel Silverstone
c1e30c0c3a Initial shuffle of stuff out of !NetSurf 2018-04-22 10:41:55 +01:00
Daniel Silverstone
5094a3fd04 Rework use of split-messages to clean up and use -z 2018-04-22 10:11:11 +01:00
Michael Drake
42f5bb6182 Framebuffer: Squash switch fall through warning. 2018-04-21 13:38:51 +01:00
Daniel Silverstone
5e52c6a233 Add missing dependency between font_internal and the generated fonts 2018-04-21 12:35:35 +01:00
Chris Young
d884e0e533 Minor opt 2018-02-27 21:51:32 +00:00
Chris Young
470dce645b Avoid potential division by zero 2018-02-01 20:59:39 +00:00
Michael Drake
89baae16b4 Framebuffer: Squash fallthrough warnings in internal font handling. 2018-01-21 14:28:32 +00:00
Michael Drake
29e36cdf1a Framebuffer: Tweak comment to avoid fallthrough warning. 2018-01-21 14:28:32 +00:00
John-Mark Bell
08c275ed2c RISC OS: translate resource paths.
Fixes #2266.
2018-01-21 14:27:10 +00:00
Chris Young
fdaad39a57 Don't destroy layers if we never created them. 2017-12-23 14:17:24 +00:00
Chris Young
6e5344464b Ensure we have a layer before deleting it. 2017-12-23 14:14:20 +00:00
Chris Young
32adce8a09 Explicitly open dos.library 2017-12-10 23:20:18 +00:00
Vincent Sanders
eba0fd70eb clean up toolbar configuration to be slightly less buggy 2017-12-10 22:57:06 +00:00
Vincent Sanders
1a7fc08e04 add crypto library to windows link to cope with updated openssl 2017-11-24 15:39:31 +00:00
Chris Young
acf5a20a2b Fix switching back to own screen after using a public screen. 2017-11-16 19:47:30 +00:00
Chris Young
7f61cc15ea Fix radio button labels on OS3 (thx Mikhail Malyshev) 2017-11-14 23:19:00 +00:00
Chris Young
b099a8582e Remove the iconify gadget from the OS3 build
It is unlikely to ever work and I'm bored of hearing about it not working.
2017-11-13 19:01:45 +00:00
Michael Drake
341c22d2a5 Windows: Use bitmap width as minimum width, since content width may be 0. 2017-10-25 17:51:25 +01:00
Chris Young
9af420b7af Remove excess logging 2017-10-24 19:49:10 +01:00
Michael Drake
e418416c77 Squash remaining GCC7 -Wimplicit-fallthrough warnings. 2017-10-23 09:46:02 +01:00
Ashish Gupta
cbd23092d5 Handle HOME and END keys in framebuffer 2017-10-21 16:01:50 +01:00
Vincent Sanders
7fa4b36245 Update version for next development cycle 2017-10-15 14:44:53 +01:00
Michael Drake
8e6cf1e1d4 Framebuffer: Don't create 0x0 bitmaps if content width is 0. 2017-10-13 10:28:42 +01:00
Chris Young
2f466751ca Ensure X DPI set correctly 2017-10-03 18:21:19 +01:00
Chris Young
7ca3308bd1 Widen available values for DPI 2017-10-03 18:03:58 +01:00
Chris Young
d2534e0e74 Button disable state updates should now work correctly on OS3 2017-09-26 23:36:56 +01:00
Chris Young
9eba271693 OS3 was not checking the GA_Disabled tag value 2017-09-26 23:33:51 +01:00
Chris Young
8e697d335a Fix attribute 2017-09-24 23:33:04 +01:00
Daniel Silverstone
d3493b138f Initialise DPI earlier so that it works for treeviews 2017-09-19 15:13:51 +01:00
Vincent Sanders
0a6e8fc0b0 fix beos throbber allocation 2017-09-11 17:42:49 +01:00
Vincent Sanders
ff312f214e fix format specifiers signedness in atari settings 2017-09-11 17:33:35 +01:00
Vincent Sanders
8fb2fc6fc3 rationalise history icon bitmap handling to ensure correct lifetime 2017-09-10 16:06:38 +01:00
Daniel Silverstone
8123e65351 Finalise nslog layer properly in closedown 2017-09-10 14:22:05 +01:00
Michael Drake
d17b710fa9 GTK: Corewindow: Fix modifier keys on mouse click.
Modifiers were getting unset for the click (release) events.
2017-09-09 14:38:49 +01:00
Vincent Sanders
053fd7b583 Fix atari INFO macro name collision 2017-09-08 21:57:15 +01:00
Vincent Sanders
c1c8ed794d Revert "Hopefully quash INFO confusion on Atari MINT platform"
This reverts commit 9c93ed1bca.
2017-09-08 21:49:59 +01:00
Vincent Sanders
8b88e44090 fix time_t logging 2017-09-08 20:47:22 +01:00
Vincent Sanders
b525293a95 Fix up log call parameters 2017-09-08 20:42:12 +01:00
Daniel Silverstone
9c93ed1bca Hopefully quash INFO confusion on Atari MINT platform 2017-09-08 19:56:23 +01:00
Daniel Silverstone
a1dc9ab55f Hopefully quash LOG compile errors in Windows 2017-09-08 19:46:29 +01:00
Daniel Silverstone
0ad2f2de6f Hopefully quash LOG compile errors in BeOS 2017-09-08 19:45:13 +01:00
Vincent Sanders
f89f7192ef fix size+t formatting in logging 2017-09-07 21:08:02 +01:00
Vincent Sanders
3a633acc3f fixup junk comment close 2017-09-07 18:33:07 +01:00
Vincent Sanders
5d6f189d8b Fixup everything the semantic patch missed 2017-09-07 18:12:09 +01:00
Vincent Sanders
2b0a5ef2e7 update framebuffer toolkit logging to use a ctagory 2017-09-07 16:57:58 +01:00
Vincent Sanders
3faaf00ca3 revert semantic patch change to framebuffer font tool 2017-09-07 16:47:45 +01:00
Vincent Sanders
b9bdc279f2 Update scheduler logging to use catagory 2017-09-07 15:30:08 +01:00
Vincent Sanders
b346790cf6 update plotter logging to use a catagory 2017-09-06 18:45:35 +01:00
Vincent Sanders
9e81082355 Use coccinelle to change logging macro calls in c++
for F in $(git ls-files '*.cpp');do spatch --c++ --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Vincent Sanders
75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Vincent Sanders
5a40e94df6 remove unecessary textarea include 2017-08-27 15:46:00 +01:00
Michael Drake
d70beb28db Content API: Make content_broadcast take pointer to content_msg_data. 2017-08-26 15:50:03 +01:00
François Revol
aedd9b5513 Fix bug 0002555: "No GC" alert when resizing the window
We don't need to touch the GC when invalidating anyway,
so just drop those calls.
2017-08-21 02:29:58 +02:00
Vincent Sanders
8c29c675c4 clean up atari treeview code, stop it including headers it does not need 2017-08-10 18:34:09 +01:00
James Woodcock
8c3d79f6fb fix redraw on window resize
A race condition with WM_PAINT can cause win32_window_set_scroll() to
use the old window size.  If this happens, the page data will not get
drawn from the top left of the window but offset quite a large
distance down and to the right.
2017-07-30 10:24:13 +01:00
mjw
5a9afe471c Fix windows word splitting
mjw on IRC pointed out that the windows word splitting code was not
checking a return code properly resulting in broken word splitting.
2017-07-30 10:08:39 +01:00
Chris Young
83b0dd2409 Don't double-convert string 2017-06-28 18:58:53 +01:00
Vincent Sanders
449e760d71 rationalise the RISC OS browser window implementation 2017-06-11 11:46:50 +01:00
Vincent Sanders
ee749f2b11 cleanup use of internal frames scrollbar widget header 2017-06-11 11:46:50 +01:00
Michael Drake
38c10c85cb Windows: Ensure core windows are fully initialised. 2017-06-11 10:12:50 +01:00
Michael Drake
98a73379fe RISC OS: Ensure core windows are fully initialised. 2017-06-11 10:10:25 +01:00
Michael Drake
dfa1e0bcd3 GTK: Ensure core windows are fully initialised. 2017-06-11 10:05:59 +01:00
Michael Drake
d34b0726e3 Framebuffer: Ensure local history corewindow is fully initialised. 2017-06-11 09:53:31 +01:00
Chris Young
40951d5294 Use the correct function to get the URL at position
Hint popup still broken though :(
2017-06-10 22:37:43 +01:00
Chris Young
6511e9f9e0 Migrate Amiga local history to corewindow 2017-06-10 22:21:46 +01:00
Vincent Sanders
653ccb78a9 Split local history data from viewer in headers
This separates the local history data object API from the viewing
API. It also changes the api to return nsurl references instead of
strings.
2017-06-10 18:37:21 +01:00
Michael Drake
92ecc77768 Core window: Ensure all front ends initialise drag_status. 2017-06-10 18:10:07 +01:00
Michael Drake
50371731e3 GTK: Ensure drag status is initialised in core windows. 2017-06-10 17:55:18 +01:00
Michael Drake
12a1d7c36e Framebuffer: Return on successful non-repeating bitmap plot. 2017-06-10 16:18:05 +01:00
Michael Drake
c06cfd9fae Framebuffer: Fix bitmap plotter return value.
Caused local history to give up after the first bitmap plot.
2017-06-10 16:11:49 +01:00
Vincent Sanders
4b9aaee6cd update framebuffer to have corewindow interface and use it for localhistory 2017-06-10 15:35:36 +01:00
Daniel Silverstone
e25eedab66 Initial monkey farmer example, needs to be genericised 2017-06-10 12:54:57 +01:00
Daniel Silverstone
58d03aeb6f Add ability to set options in monkey 2017-06-10 12:54:57 +01:00
Daniel Silverstone
f357af4250 SET_SCROLL only wants x/y not x0y0x1y1 2017-06-10 12:54:57 +01:00
Daniel Silverstone
03ae0ec15a Look for resources in useful folder name 2017-06-10 12:54:57 +01:00
Daniel Silverstone
38df37565c Fix comments 2017-06-10 12:54:57 +01:00
Daniel Silverstone
fe9104096f Reflow monkey code, it was annoying me too much 2017-06-10 12:54:57 +01:00
Daniel Silverstone
63d53938f1 Include time in GENERIC POLL TIMED 2017-06-10 12:54:57 +01:00
Michael Drake
772ebc69c9 RISC OS: Local history now behaves the same as other core windows. 2017-06-10 12:02:44 +01:00
Michael Drake
b0358727d9 GTK: Don't need to treat local history specially now. 2017-06-10 11:53:58 +01:00
Michael Drake
368b03bffb Local history: Pass clip rectangle around as struct. 2017-06-10 11:15:20 +01:00
Vincent Sanders
9bf5ecfa87 Fix windows frontend click and invalidate region scroll offsets 2017-06-09 22:52:49 +01:00
Vincent Sanders
2bec7f113c fix gtk bitmap doccomment to be truthful 2017-06-09 22:01:05 +01:00
Michael Drake
527b19b111 Windows: Core window: No need to erase the invalidated region on scroll.
The core is responsible for rendering the invalidated region, so
this avoids the area getting painted twice.
2017-06-09 21:58:16 +01:00
Vincent Sanders
703427a486 Update documentation removing junk and moving to markdown for most text files 2017-06-09 17:30:00 +01:00
Chris Young
a8348f3bc9 Free the structure with the correct function call 2017-06-08 19:57:18 +01:00
Chris Young
103f99c210 Correct alignment (thx Jaime Cagigal) 2017-06-07 18:27:39 +01:00
Vincent Sanders
c08ef5f984 make windows frontend use corewindow API for local history window 2017-06-01 23:57:09 +01:00
Vincent Sanders
6b997431d3 update RISC OS frontend to use core window for local history 2017-05-28 22:07:33 +01:00
Vincent Sanders
6736ab9b72 fix risc os dialog opening relative to parent 2017-05-28 17:28:28 +01:00
Vincent Sanders
79cde2cefb fixup windows invalidate call 2017-05-23 14:37:06 +01:00
Vincent Sanders
d6c0792541 remove cocoa frontend
The cocoa frontend has been broken for a few years and we have no
maintainer. It was removed from the CI six months ago and has already
bitrotted so it cannot be compiled.
2017-05-23 11:18:45 +01:00
Vincent Sanders
681586139f update windows frontend for corewindow API change 2017-05-23 09:47:13 +01:00
Vincent Sanders
cef92b0fc7 update riscos frontend for corewindow API change 2017-05-23 09:46:56 +01:00
Vincent Sanders
3c1a6f9c52 update gtk frontend for corewindow API change 2017-05-23 09:45:37 +01:00
Vincent Sanders
ab676ec917 update atari frontend for corewindow API change 2017-05-23 09:45:24 +01:00
Vincent Sanders
6f2670ec42 update amiga corewindow implementation for changed API 2017-05-23 09:44:17 +01:00
Michael Drake
e431e6181b RISC OS: Init core hotlist in read-only mode for external hotlist.
Note, the core hotlist is initialised in either normal or read-only
modes.  This is done once on application startup.  Toggling the
external hotlist option at runtime may cause loss of hotlist changes
made during the session.
2017-04-28 12:10:30 +01:00
Vincent Sanders
66602e6327 fixup errors introduced in set_scroll API change 2017-04-26 22:48:00 +01:00
Vincent Sanders
87ed0904e0 Merge branch 'vince/scroll-api' 2017-04-26 22:28:41 +01:00
Vincent Sanders
5fba1fb94d Update windows frontend for set_scroll API change 2017-04-26 22:27:49 +01:00
Vincent Sanders
c100a33285 Update riscos frontend for set_scroll API change 2017-04-26 22:27:11 +01:00
Vincent Sanders
2de6386da2 Update monkey frontend for set_scroll API change 2017-04-26 22:25:23 +01:00
Vincent Sanders
0f039b4421 Update GTK frontend for set_scroll API change 2017-04-26 22:24:57 +01:00
Vincent Sanders
a696720cd6 Update framebuffer frontend for set_scroll API change 2017-04-26 22:24:29 +01:00
Vincent Sanders
db9b829df2 Update beos frontend for set_scroll API change 2017-04-26 22:24:03 +01:00
Vincent Sanders
db549331f7 Update atari frontend for set_scroll API change 2017-04-26 22:23:27 +01:00
Vincent Sanders
cbc60a906a update amiga frontend to new set_scroll API 2017-04-26 22:22:03 +01:00
Michael Drake
4b76d2096d GTK: Optimise tiled bitmap plotting, and scaled bitmap rendering.
We now let Cairo deal with the tiling.  Also we don't keep cached
scaled bitmaps any more.  The speedup for small bitmap tile sizes
is huge.
2017-04-26 12:38:04 +01:00
Vincent Sanders
796bb0f652 update framebuffer frontend to remove reformat API 2017-04-26 10:05:57 +01:00
Vincent Sanders
5467d5e157 update beos frontend to remove reformat API 2017-04-26 10:04:43 +01:00
Vincent Sanders
3c264d63e6 update atari frontend to remove reformat API 2017-04-26 10:03:29 +01:00
Vincent Sanders
52ee93597a update monkey frontend to remove reformat API 2017-04-26 10:02:24 +01:00
Vincent Sanders
be7aef9231 update riscos frontend to remove reformat API 2017-04-26 10:00:51 +01:00
Vincent Sanders
1e197432f8 update amiga frontend to remove reformat API 2017-04-26 09:59:08 +01:00
Vincent Sanders
3e24dc831b update windows frontend to remove reformat 2017-04-26 09:55:36 +01:00
Vincent Sanders
413ee474d2 update cocoa frontend with reformat API change 2017-04-26 09:52:39 +01:00
Vincent Sanders
72bd28d16e update GTK frontend for reformat API change 2017-04-26 09:47:55 +01:00
Michael Drake
e227b3d29c Windows: Update for core hotlist API change. 2017-04-25 12:16:33 +01:00
Michael Drake
0d8ed168b2 RISC OS: Update for core hotlist API change. 2017-04-25 12:13:07 +01:00
Michael Drake
a137de40a9 GTK: Update for core hotlist API change. 2017-04-25 12:08:32 +01:00
Michael Drake
c359bd9774 Cocoa: Update for core hotlist API change. 2017-04-25 12:06:09 +01:00
Michael Drake
229f6b5f23 Atari: Update for core hotlist API change. 2017-04-25 12:03:29 +01:00
Michael Drake
a44a0875a7 Amiga: Update for core hotlist API change. 2017-04-25 11:57:46 +01:00
Vincent Sanders
6e0f5bee55 Update beos frontend to use invalidate window area API 2017-04-23 20:59:50 +01:00
Vincent Sanders
becd3863c4 Update framebuffer frontend to use invalidate window area API 2017-04-23 20:42:37 +01:00
Vincent Sanders
6177e2930b Update monkey frontend to use invalidate window area API 2017-04-23 20:42:37 +01:00
Vincent Sanders
b61c21c7d0 Update windows frontend to use invalidate window area API 2017-04-23 12:05:30 +01:00
Vincent Sanders
d930da3899 update gtk frontend with invalidate window API change 2017-04-23 12:05:30 +01:00
Vincent Sanders
b102950650 update atari frontend for invalidate window API change 2017-04-23 12:05:30 +01:00
Vincent Sanders
6833f526f6 update amiga frontend invalidate window API change 2017-04-19 16:32:21 +01:00
Vincent Sanders
febbdec345 update riscos frontend to invalidate window API 2017-04-19 16:27:14 +01:00
Chris Young
7e0ed132f7 Adjust the requested class versions to be the minimum required.
Some features of later versions are used but are either restricted to OS4 only, or runtime version checks select the appropriate routines.
Where the lowest required version cannot be determined, the version provided in the ClassAct 3.3 archive is requested.
Bugs may mean these older classes do not work as expected.
In addition, restrict the opening of listbrowser.gadget and the custom Stringview class to OS4 only.
2017-04-16 17:49:27 +01:00