Compare commits
4 Commits
e583fd0fd2
...
20c6be16b0
Author | SHA1 | Date | |
---|---|---|---|
20c6be16b0 | |||
ffc818c041 | |||
9ecaf48125 | |||
24302016d2 |
12
README.md
12
README.md
|
@ -1,7 +1,11 @@
|
||||||
# Rosenrot
|
# 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
|
- 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!
|
||||||
- [x] Create minimalist version of rosenrot
|
- 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
|
||||||
|
|
7
makefile
7
makefile
|
@ -1,5 +1,6 @@
|
||||||
# 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'
|
||||||
|
@ -27,6 +28,10 @@ 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,7 +180,6 @@ 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