Compare commits
No commits in common. "20c6be16b017dc235de3bdd0ef597fdffc77825c" and "e583fd0fd2afb0b199e9410625a3f3caa6ba7791" have entirely different histories.
20c6be16b0
...
e583fd0fd2
12
README.md
12
README.md
|
@ -1,11 +1,7 @@
|
||||||
# Rosenrot
|
# Rosenrot
|
||||||
|
|
||||||
This branch contains a bare-bones version of rosenrot, a webkit and gtk based browser
|
This branch contains a minimalist version of rosenrot, similar in many ways to the original version of rose.
|
||||||
|
|
||||||
- similar in many ways to the [original version of rose](https://github.com/mini-rose/rose-browser/tree/60173b6f5b562861b11dea17e3869ad6c3462bbb/src).
|
# To do
|
||||||
- But with the up to date libwebkit2gtk-4.1!
|
|
||||||
- compilable with [tcc](https://bellard.org/tcc/)! (also with gcc/clang)
|
- [x] Create minimalist version of rosenrot
|
||||||
- *One c file*, 390 lines (~356 excluding comments)
|
|
||||||
- Still some minimal niceties: zoom, parsing more than one url from the command line, max number of tabs, plenty of shortcuts.
|
|
||||||
- Missing many quality of life features
|
|
||||||
- Meant for developers seeking to understand or replicate rosenrot
|
|
||||||
|
|
7
makefile
7
makefile
|
@ -1,6 +1,5 @@
|
||||||
# C compiler
|
# C compiler
|
||||||
# CC=gcc # alternatives: tcc, clang, zig cc
|
CC=gcc # alternatives: tcc, clang, zig cc
|
||||||
CC=tcc
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
DEPS='webkit2gtk-4.1'
|
DEPS='webkit2gtk-4.1'
|
||||||
|
@ -28,10 +27,6 @@ user_cache:
|
||||||
install: rosenrot
|
install: rosenrot
|
||||||
cp -f rosenrot /usr/bin
|
cp -f rosenrot /usr/bin
|
||||||
|
|
||||||
depsdebian:
|
|
||||||
sudo apt install tcc make
|
|
||||||
sudo apt install libwebkit2gtk-4.1-dev
|
|
||||||
|
|
||||||
## Additional niceties
|
## Additional niceties
|
||||||
|
|
||||||
### Formatter
|
### Formatter
|
||||||
|
|
|
@ -180,6 +180,7 @@ WebKitWebView* create_new_webview()
|
||||||
cookiemanager = webkit_web_context_get_cookie_manager(web_context);
|
cookiemanager = webkit_web_context_get_cookie_manager(web_context);
|
||||||
|
|
||||||
webkit_cookie_manager_set_persistent_storage(cookiemanager, DATA_DIR "/cookies.sqlite", WEBKIT_COOKIE_PERSISTENT_STORAGE_SQLITE);
|
webkit_cookie_manager_set_persistent_storage(cookiemanager, DATA_DIR "/cookies.sqlite", WEBKIT_COOKIE_PERSISTENT_STORAGE_SQLITE);
|
||||||
|
|
||||||
webkit_cookie_manager_set_accept_policy(cookiemanager, WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS);
|
webkit_cookie_manager_set_accept_policy(cookiemanager, WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS);
|
||||||
|
|
||||||
return g_object_new(WEBKIT_TYPE_WEB_VIEW, "settings", settings, "web-context", web_context, "user-content-manager", contentmanager, NULL);
|
return g_object_new(WEBKIT_TYPE_WEB_VIEW, "settings", settings, "web-context", web_context, "user-content-manager", contentmanager, NULL);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user