Age | Commit message (Collapse) | Author |
|
Consistent code style.
|
|
While we do want to have special handling of punctuation to help wrap
pathologically-long-hyphenated-words-that-go-on-for-kilometers, we don't
want to wrap emoticons, so let's adjust the logic to account for this.
While we're at it, clean up and add a comment explaining the logic for
the benefit of future readers.
Fixes rendering of a recent post on CAPCOM at certain window sizes
=> gemini://rosenzweig.io/lagrange/Before.png Before the change
=> gemini://rosenzweig.io/lagrange/After.png After the change
Notice the wrapping of the ":D" in the second paragraph.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
|
|
IssueID #23
|
|
In some cases an empty <META> in the server response would cause GmResponse to treat the entire header as invalid.
Also, TlsRequest was not handling closing of the TLS/SSL connection if the socket still remained open. This caused GmRequest to wait until the timeout before it realized the full response had been received.
IssueID #22
|
|
Must clear all previous references to GmRuns when the document is updated.
|
|
|
|
Some default key shortcuts use Option on macOS, so avoid those for keyboard navigation.
|
|
There's a lot of stuff in documentwidget.c. First, moving away the smaller helper code.
|
|
|
|
IssueID #20
|
|
Delete garbage collected widgets in Window deinitialization.
Widgets should not continue to exist if there is no Window.
|
|
This code path is used for opening both http/s and mailto links. On
macOS, open is used generically handling both nicely. On Linux,
x-www-browser was used for both, meaning it would attempt to open mailto
links with the browser. This -does- work but is clunky. On my system, my
defaults are Firefox for web and mutt for email, so if I clicked a
mailto, Firefox would open (slow!) just to go out of focus as it opens
mutt.
Let's just mirror the macOS behaviour and use xdg-open for both kinds of
links. Then the browser will be used for http/s and the mail client for
mailto and everyone's happy.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
|
|
Testing on OpenBSD.
|
|
Should clear the garbage before quitting SDL because widgets may be
in the garbage and have SDL resources to release.
|
|
|
|
|
|
|
|
One can now bind keys in Preferences. The configured keys aren't yet saved, though.
|
|
|
|
|
|
If the key bindings have a key for a command, LabelWidget will use it.
|
|
|
|
The document scrolling keys are now handled via bindings.
|
|
|
|
|
|
|
|
If there are no identities, the Identities tab now shows a button for creating one, and a link to the Help documentation.
|
|
|
|
Widgets now have an optional virtual method that gets called when the size of the widget changes during arranging. Wrapped text in LabelWidget uses this to update its height.
|
|
|
|
|
|
|
|
Redraw the side icon and heading when the current top heading changes.
|
|
|
|
No need to redraw the text string on every frame.
|
|
A proper error page is now shown if there is an error during the TLS request.
|
|
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.
|
|
IssueID #13
|
|
Likely a rare situation, but this workaround should be relatively
safe -- ignore keydown events if they occur less than 10 milliseconds
after the window has received input focus.
IssueID #10
|
|
A window expose event should be treated as a refresh trigger.
IssueID #11
|
|
|
|
|
|
|
|
|
|
Show clearly that something is happening, even though we don't know the exact duration of the operation.
|
|
|
|
Use proper easing curves for a smoother animation. Ensure that mouse hover on links is disabled when scrolling.
|
|
|
|
This overrides Kosugi Maru as it looks a bit nicer, in case there are glyphs available in both.
|
|
Theme-specific color selection, and a dividing line for the current position.
|