Compare commits

...

4 Commits

@ -1,7 +1,11 @@
# Rosenrot
This branch contains a minimalist version of rosenrot, similar in many ways to the original version of rose.
This branch contains a bare-bones version of rosenrot, a webkit and gtk based browser
# To do
- [x] Create minimalist version of rosenrot
- 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

@ -1,5 +1,6 @@
# C compiler
CC=gcc # alternatives: tcc, clang, zig cc
# CC=gcc # alternatives: tcc, clang, zig cc
CC=tcc
# Dependencies
DEPS='webkit2gtk-4.1'
@ -27,6 +28,10 @@ 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

@ -180,7 +180,6 @@ 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);

Loading…
Cancel
Save