aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2024-02-11 18:09:47 +0100
committerNunoSempere <nuno.sempere@protonmail.com>2024-02-11 18:10:55 +0100
commitb5801975d4b286295cbfa27da6e1d2bb32713d42 (patch)
tree907ce606c009ccb21a57a8aeb0e0091156250076
parente1fc46779508f6f56638fca5cffe5b39d2edaf39 (diff)
fix custom css bug
-rwxr-xr-xrosebin42888 -> 42888 bytes
-rw-r--r--rose.c3
2 files changed, 1 insertions, 2 deletions
diff --git a/rose b/rose
index a65d59d..d3dd2ef 100755
--- a/rose
+++ b/rose
Binary files differ
diff --git a/rose.c b/rose.c
index e21c054..e50aafb 100644
--- a/rose.c
+++ b/rose.c
@@ -105,7 +105,7 @@ void set_custom_style(WebKitWebView* view){
if (CUSTOM_STYLE_ENABLED) {
char* style_js = malloc(STYLE_N + 1);
read_style_js(style_js);
- webkit_web_view_run_javascript(notebook_get_webview(notebook), style_js,
+ webkit_web_view_run_javascript(view, style_js,
NULL, NULL, NULL);
free(style_js);
}
@@ -154,7 +154,6 @@ void notebook_create_new_tab(GtkNotebook* notebook, const char* uri);
// handle_signal_create_new_tab is bound to a signal inside notebook_create_new_tab
// and itself calls notebook_create_new_tab
// therefore we need to do a forward declaration for one of them.
-
GtkWidget* handle_signal_create_new_tab(WebKitWebView* self,
WebKitNavigationAction* navigation_action,
GtkNotebook* notebook)