summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
AgeCommit message (Collapse)Author
2020-11-27DocumentWidget: Check for invalid deserialized URLJaakko Keränen
Should check for stray pointers in URL, mostly to assist development use. Normally the "open" command arguments never have a pointer appended.
2020-11-25DocumentWidget: Crash after redirectsJaakko Keränen
2020-11-24Fixed threading issues and data racesJaakko Keränen
The most serious problem was that GmRequest's response body was being accessed while the TlsRequest thread was modifying it. Now the response must always be locked before accessing elsewhere. There were also inefficient data updates in the media players.
2020-11-21DocumentWidget: Drawing marks with better boundsJaakko Keränen
2020-11-21Saving inline media content to DownloadsJaakko Keränen
2020-11-21Keyboard navigation mode for home row keysJaakko Keränen
Now there are keybindings for activating the keyboard navigation modes. The modifier-based mode remains as it was before, focusing on numbers, while the home row mode uses a separate activation key. One can erase the bindings to disable the corresponding modes. IssueID #34
2020-11-21DocumentWidget: Marking link icons as search matchesJaakko Keränen
2020-11-21DocumentWidget: Scroll-loading is only for imagesJaakko Keränen
2020-11-21Added option to load image instead of scrollingJaakko Keränen
One can now read through a page and load all inline images simply by repeatedly pressing Space or cursor down. Key repeat events do not trigger image loads.
2020-11-20Preferences: Added a Gemini proxyJaakko Keränen
2020-11-16Keybinding for opening links via keyboardJaakko Keränen
This is part one. Still need to change the link numbering/lettering method. IssueID #34
2020-11-16Remember redirected URLs as visitedJaakko Keränen
"visited.txt" will now remember URLs that were redirects, but those are not shown in the UI as part of the history. This fixes the issue where redirected URLs were not being shown as visited links in the UI. Beware if downgrading Lagrange: URLs in the history will get prefixed with "0000 ". Might be a good idea to switch to a forwards compatible format like JSON for these files.
2020-11-14Navigating to parent directory or site rootJaakko Keränen
Added keyboard shortcuts for navigating up to the parent directory and to the site root. Clicking the top banner also navigates to the site root. IssueID #29
2020-11-10macOS: Improved scrolling using mouse wheelJaakko Keränen
This required further SDL hacking. The macOS SDL .diff was updated. IssueID #26
2020-11-08DocumentWidget: Context menu for Gopher linksJaakko Keränen
No need for a "default browser" any more.
2020-11-08Manually trusting a server certificateJaakko Keränen
2020-11-07GmRequest: Working on Gopher requestsJaakko Keränen
Todo: Move this code to a separate file.
2020-11-07GmRequest: Removed timeoutsJaakko Keränen
No automatic timeouts to facilitate long connections. The server can indicate closing of the connection via TLS or by closing the socket.
2020-11-07DocumentWidget: Set document formatJaakko Keränen
This was previously overlooked so everything was shown as text/gemini.
2020-11-06Automatic redirects to the same schemeJaakko Keränen
IssueID #16
2020-11-06Added an option to disable smooth scrollingJaakko Keränen
IssueID #27
2020-11-06Link context menu item to bypass proxyJaakko Keränen
IssueID #25
2020-11-03DocumentWidget: Fixed potential crashJaakko Keränen
Must clear all previous references to GmRuns when the document is updated.
2020-11-03Merge branch 'dev' of github.com:skyjake/lagrange into devJaakko Keränen
2020-11-03DocumentWidget: Keyboard navigation keys on MacJaakko Keränen
Some default key shortcuts use Option on macOS, so avoid those for keyboard navigation.
2020-11-03Cleanup: Breaking up documentwidget.cJaakko Keränen
There's a lot of stuff in documentwidget.c. First, moving away the smaller helper code.
2020-11-03DocumentWidget: Adapt new tab behaviour to keyboard browsingWaweic
2020-11-03DocumentWidget: Opening links in foreground/backgroundJaakko Keränen
IssueID #20
2020-10-30CleanupJaakko Keränen
2020-10-30Added a key binding mechanismJaakko Keränen
The document scrolling keys are now handled via bindings.
2020-10-29DocumentWidget: Clear buffered icon/headingJaakko Keränen
2020-10-29SidebarWidget: Improving blank Identities tabJaakko Keränen
If there are no identities, the Identities tab now shows a button for creating one, and a link to the Help documentation.
2020-10-28DocumentWidget: Current heading on the sideJaakko Keränen
Redraw the side icon and heading when the current top heading changes.
2020-10-28DocumentWidget: Working on buffering the side iconJaakko Keränen
2020-10-28Reporting TLS/SSL errorsJaakko Keränen
A proper error page is now shown if there is an error during the TLS request.
2020-10-27Added a network/TLS error pageJaakko Keränen
There is now an error page shown when the TLS request fails for some reason. Error page theming is also updated at the time when the error page is composed.
2020-10-24Adjusted smooth scroll speed when using mouse wheelJaakko Keränen
2020-10-24DocumentWidget: Page load progress indicatorJaakko Keränen
Show clearly that something is happening, even though we don't know the exact duration of the operation.
2020-10-23CleanupJaakko Keränen
2020-10-23Improved smooth scrollingJaakko Keränen
Use proper easing curves for a smoother animation. Ensure that mouse hover on links is disabled when scrolling.
2020-10-21Improved hover outline appearanceJaakko Keränen
Theme-specific color selection, and a dividing line for the current position.
2020-10-21Added theme colors for the hover outlineJaakko Keränen
Still need to choose them based on the current theme.
2020-10-21DocumentWidget: Fixed content buffering glitchJaakko Keränen
When jumping to the end or the beginning of the document, reset the VisBuf completely so it will be fully redrawn.
2020-10-20Added quote indicator preferenceJaakko Keränen
Also, added a command that gets posted when the mouse exits or enters the window area. This lets the hover outline to be updated accordingly.
2020-10-20Added timestamps to serialized responsesJaakko Keränen
A new version of the binary serialization format that includes timestamps for GmResponse.
2020-10-18CleanupJaakko Keränen
Consistent naming.
2020-10-18DocumentWidget: Improved audio player UI refreshJaakko Keränen
There is no need to prioritize animation smoothness when it comes to audio players. Just post timer events at a relaxed 15 Hz when active players are visible. Fixes an issue on macOS (and possibly other platforms) where moving the window was very glitchy if a player was active.
2020-10-16Player: Hide volume slider after 3 sec idle timeJaakko Keränen
2020-10-16Open link in new tab with middle mouse buttonJaakko Keränen
IssueID #8
2020-10-14Use libmpg123 to decode MPEG audioJaakko Keränen
mpg123 is configured as an optional dependency. Works for full files currently.