Compare commits

..

No commits in common. "20c6be16b017dc235de3bdd0ef597fdffc77825c" and "e583fd0fd2afb0b199e9410625a3f3caa6ba7791" have entirely different histories.

3 changed files with 6 additions and 14 deletions

View File

@ -1,11 +1,7 @@
# 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).
- But with the up to date libwebkit2gtk-4.1!
- compilable with [tcc](https://bellard.org/tcc/)! (also with gcc/clang)
- *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
# To do
- [x] Create minimalist version of rosenrot

View File

@ -1,6 +1,5 @@
# C compiler
# CC=gcc # alternatives: tcc, clang, zig cc
CC=tcc
CC=gcc # alternatives: tcc, clang, zig cc
# Dependencies
DEPS='webkit2gtk-4.1'
@ -28,10 +27,6 @@ user_cache:
install: rosenrot
cp -f rosenrot /usr/bin
depsdebian:
sudo apt install tcc make
sudo apt install libwebkit2gtk-4.1-dev
## Additional niceties
### Formatter

View File

@ -180,6 +180,7 @@ WebKitWebView* create_new_webview()
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_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);