Commit Graph

81 Commits (main)

Author SHA1 Message Date
Daniel Barlow 2941d7dd88 use correct window title and url for visible tab
- update the event bus to transmit the message sender
as well as payload
- discard url-changed and title-changed messages from
hidden tabs
2022-04-27 10:14:07 +01:00
Daniel Barlow 9f652c3a45 load urls on command line 2022-04-27 10:14:07 +01:00
Daniel Barlow 143a96f761 more to do 2022-04-27 10:14:07 +01:00
Daniel Barlow 43967b674b remove tab by swiping it in overview 2022-04-27 10:14:07 +01:00
Daniel Barlow ae9ec33b96 needs glib-networking so let's make that explicit 2022-04-27 10:14:07 +01:00
Daniel Barlow 28ca39c0fa provide thumbnails of open tabs on the chooser page 2022-04-27 10:14:06 +01:00
Daniel Barlow fa9c818b73 still WIP tab overview page 2022-04-27 10:14:06 +01:00
Daniel Barlow e07e04f28f WIP tabbed browsing
- need to update title and url on tab change
- need to stop background tabs from changing the url and title
- better ui for choosing which tab
2022-04-27 10:14:06 +01:00
Daniel Barlow d44ed56d44 put history control on the bus 2022-04-27 10:14:06 +01:00
Daniel Barlow ceeaf80de4 extract function new-webview
this is in preparation for tabbed browsing
2022-04-27 10:14:06 +01:00
Daniel Barlow b20162d341 move stop/start to left of url bar 2022-04-27 10:14:06 +01:00
Daniel Barlow 6c95ae86a2 hmm, seems to be a bug in the pubsub 2022-04-27 10:14:06 +01:00
Daniel Barlow 68af0b779f save cookies between sessions 2022-04-27 10:14:06 +01:00
Daniel Barlow 92265c3d4b remove use of `do` 2022-04-27 10:14:06 +01:00
Daniel Barlow 9306d55c5d replace stop-refresh with two separate buttons
and show/hide them depending on context.
This means we can get rid of the `r` we were using for
forward references to `webview`
2022-04-27 10:14:06 +01:00
Daniel Barlow 35e2d56af7 use `match` in handle-webview-properties 2022-04-27 10:14:06 +01:00
Daniel Barlow 1cd2247e02 extract function for webview properties handler 2022-04-27 10:14:06 +01:00
Daniel Barlow 184aefa4dc convert mutually referential callbacks to use event bus 2022-04-27 10:14:06 +01:00
Daniel Barlow 93f2acf3ab add a progress indicator 2022-04-27 10:14:06 +01:00
Daniel Barlow fb6423dab4 add a stop/refresh button 2022-04-27 10:14:05 +01:00
Daniel Barlow dd109f4a4b add `r` to accomodate widget reference loops
any widget declared before webview can refer to it as
r.webview
2022-04-27 10:14:05 +01:00
Daniel Barlow a5ea2027d5 extract named-image function 2022-04-27 10:14:05 +01:00
Daniel Barlow 876e70e642 more things to do 2022-04-27 10:14:05 +01:00
Daniel Barlow cb477a9146 first pass at adblocking using easylist
https://gabmus.org/posts/block_ads_in_webkitgtk/ was a
great help.

This is not final code and I don't yet understand how to turn
easylist txt files into json, but it appears to work insofar as
it make the Guardian web site lurch a bit less
2022-04-27 10:14:05 +01:00
Daniel Barlow 9ef0818465 fetch urls typed into urlbar 2022-04-27 10:14:05 +01:00
Daniel Barlow 71289309b8 README is mostly a todo list 2022-04-27 10:14:05 +01:00
Daniel Barlow c27d1be1be icon for back button 2022-04-27 10:14:05 +01:00
Daniel Barlow ade0eb8f8b hook up back button 2022-04-27 10:14:05 +01:00
Daniel Barlow bcf499a7d1 set window title according to document 2022-04-27 10:14:05 +01:00
Daniel Barlow 4c94b2164b update url bar when links clicked 2022-04-27 10:14:05 +01:00
Daniel Barlow a137495482 initial commit 2022-04-27 10:14:05 +01:00