summaryrefslogtreecommitdiff
path: root/desktop
Commit message (Collapse)AuthorAgeFilesLines
* Socket: more fixes for win32/aos3John-Mark Bell2024-03-141-2/+12
| | | | | | | These special snowflakes have specialised socket close APIs, so ensure that we use the correct one. Additionally, there's no guarantee that their socket() API signature matches the POSIX definition, so wrap it up and cast the result.
* Socket: fix win32/aos3 buildJohn-Mark Bell2024-03-131-2/+1
|
* Fetch/curl: expose socket open/close via fetch vtableJohn-Mark Bell2024-03-131-0/+9
| | | | | This allows frontends to customise the behaviour of sockets. The default implementation simply maps to socket(2)/close(2).
* Cookie/History/Hotlist: use localtime()John-Mark Bell2024-03-053-9/+9
| | | | Some platforms do not support the reentrant form, so don't use it.
* Cookie/History/Hotlist: locale-aware time formattingJohn-Mark Bell2024-03-053-41/+40
| | | | | | | | | | | | (as)ctime are defined as always formatting times using English day/month names. As these views are for the user's benefit, use the selected locale to format the information, instead. Use of (as)ctime on RISC OS with UnixLib is fragile, anyway, as that implementation always produces a locale-aware serialization (which is not what the spec defines). This caused assertions to fire in the previous implementation (which expected ctime to be locale-unaware). Fixes #2869.
* remove pointless box structureVincent Sanders2024-01-081-2/+0
|
* Update version for next development cycleVincent Sanders2023-12-281-2/+2
|
* css: Add option to ignore author level CSSMichael Drake2023-11-251-0/+3
| | | | | | | | | | | | This adds a new config option, `author_level_css`. When it is disabled, NetSurf will ignore all CSS from the web page. In this case only the default CSS rules from the browser and user CSS rules will be applied. It is enabled by default. Tested by running: ./nsgtk3 --author_level_css=0
* Avoid integer types with platform dependent sizeDeltaVonNeumann2023-06-171-1/+1
|
* Core: Options: Add user preference for dark mode coloursMichael Drake2022-07-301-0/+3
|
* s/http/https/ in user-facing URIsJohn-Mark Bell2022-05-273-9/+9
|
* Browser window: include theme.hJohn-Mark Bell2022-05-271-0/+1
| | | | | This is necessary to avoid a warning on platforms that support theme installation.
* Save complete: silence warningJohn-Mark Bell2022-05-271-2/+2
| | | | | | Not all runtime library headers declare the first argument to regexec as being const so don't make our snregexec wrapper do so. Additionally, make save_complete_import_re static.
* Bitmap: Implement test_opaque in core instead of in every frontend.Michael Drake2022-03-292-4/+25
|
* Bitmap: Try to squash -Wtautological-constant-out-of-range-compareMichael Drake2022-03-281-1/+2
|
* Bitmap: Log the bitmap format that gets set.Michael Drake2022-03-281-0/+36
|
* Bitmap: Add support for premultiplied alpha conversion.Michael Drake2022-03-282-16/+162
|
* Desktop: Browser window: Squash theme install start warning.Michael Drake2022-03-281-0/+4
|
* Bitmap: Colour layout converter doesn't need to be exposed.Michael Drake2022-03-272-46/+46
|
* Treeview: Use bitmap layout for bitmap generation.Michael Drake2022-03-271-40/+41
|
* Bitmap: Convert pixel_to_colour to layout-aware function.Michael Drake2022-03-271-6/+22
|
* Bitmap: Move bitmap pixel to colour macro to bitmap header.Michael Drake2022-03-271-0/+4
|
* Bitmap: Initialise layout for default pixel format.Michael Drake2022-03-261-1/+6
|
* Bitmap: Add format conversion routines.Michael Drake2022-03-262-0/+82
|
* Include: Bitmap: Add API for setting core bitmap format.Michael Drake2022-03-263-1/+171
|
* Treeview: Change bitmap generation to per-pixel channel indexing.Michael Drake2022-03-251-40/+50
| | | | This will be needed when the core bitmap layout is client controlled.
* Bitmap API: Clean up creation flags.Michael Drake2022-03-242-5/+5
|
* GUI: Bitmap save callback was never required.Michael Drake2022-03-241-4/+0
|
* GUI: Bitmap bytes per pixel callback is not required now.Michael Drake2022-03-241-4/+0
|
* textarea: always clear selection on NS_KEY_WORD_{LEFT,RIGHT}Pranjal Kole2022-01-231-6/+8
| | | | | | | | | | | | | This bug can be seen by selecting some text starting from the beginning of a textarea (so that caret is 0) and then pressing the NS_KEY_WORD_LEFT binding. NS_KEY_WORD_LEFT was breaking early when caret was 0. So, to always clear the selection, the clear selection code has been brought above the break statement. NS_KEY_WORD_RIGHT did not have such a break statement, so one has been added for consistency, and because string operations are expensive.
* textarea: implement NS_KEY_DELETE_WORD_{LEFT,RIGHT}Pranjal Kole2022-01-221-6/+93
| | | | | | | | | | | | | | | | | | | | | NS_KEY_DELETE_WORD_{LEFT,RIGHT} have been added to include/netsurf/keypress.h and implemented in desktop/textarea.c An unsigned int, caret_copy, has been added since both of these require a temporary variable to hold the original position of the caret. The LEFT one deletes separators towards the left till it encounters a non-separator and then deletes the non-separators until it encounters a separator. The caret is moved towards the left by the number of characters deleted. The RIGHT one does the same towards the right, but the caret is kept at its original position. These are intended to be mapped to Ctrl+Backspace and Ctrl+Delete by most frontends. Additionally, some style and typo fixes have been made.
* Switch to new libcss API for unit conversion.Michael Drake2021-05-302-23/+23
|
* fix missing bitmap from preventing history and scroll updatesVincent Sanders2021-03-231-7/+3
|
* split out internal local history macros from public interface headerVincent Sanders2021-03-234-11/+40
|
* Prevent overflow of disc cache hysteresis.Michael Drake2021-01-251-3/+3
| | | | | | | | | | | | The default disc cache size is 1GB (1024 * 1024 * 1024). On systems with 32bit size_t, the hysteresis calculation, which multiplied 1GB by 20 would overflow, causing a zero hysteresis. (1024 * 1024 * 1024) * 20 % (2^32) = 0 Thanks to Jonas Amoson for reporting.
* treeview: Squash warnings about enum value conversion.Michael Drake2020-10-231-2/+32
|
* browser_window: Check for bw==NULL before dereferencing itDaniel Silverstone2020-10-031-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* improve desktop text search header usageVincent Sanders2020-06-246-5/+11
| | | | | | | | | remove unecessary inclusion of desktop search header in content header which has knock on effect of not having ctype or string system headers dragged in unecessarily. Futher this highlighted use of ctype API where internal ascii processing ought to be used.
* remove unecessary headers from browser windowVincent Sanders2020-05-251-25/+15
|
* remove box handling from browser windowVincent Sanders2020-05-254-194/+267
|
* make browser_window_update internal to browser window as intendedVincent Sanders2020-05-251-119/+124
|
* rename browser window internal redraw request functionVincent Sanders2020-05-253-8/+9
| | | | remove confusing reference to boxes
* Update version for next development cycleVincent Sanders2020-05-241-2/+2
|
* remove unused text selection interfaceVincent Sanders2020-05-232-24/+5
|
* make text selection context an opaque interfaceVincent Sanders2020-05-232-21/+22
|
* remove all direct access to selection structureVincent Sanders2020-05-232-46/+51
|
* remove unused is_html parameter to text selection routinesVincent Sanders2020-05-232-21/+10
|
* move content specific selection end to content handlersVincent Sanders2020-05-232-51/+8
|
* remove unused css length usage in selectionVincent Sanders2020-05-232-13/+2
|
* move content handler specific selection copying into handlersVincent Sanders2020-05-232-301/+22
|