Compare commits

..

4 Commits

Author SHA1 Message Date
20c6be16b0 tweak README 2024-03-23 22:56:00 -03:00
ffc818c041 add tcc link 2024-03-23 22:48:07 -03:00
9ecaf48125 remove file without comments 2024-03-23 22:45:28 -03:00
24302016d2 continue README, see how big is the file without comments 2024-03-23 22:45:02 -03:00
3 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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);