From 50d2341c2d13acbb610a8657b73a56db62a8eb62 Mon Sep 17 00:00:00 2001 From: miguel Date: Tue, 20 Mar 2018 20:03:00 +0100 Subject: disable the dark-theme by default AND add x for closing window --- config.h | 3 ++- webext-piper.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index fd09086..8f75a4d 100644 --- a/config.h +++ b/config.h @@ -48,7 +48,7 @@ static Parameter defconfig[ParameterLast] = { [SpellChecking] = { { .i = 0 }, }, [SpellLanguages] = { { .v = ((char *[]){ "en_US", NULL }) }, }, [StrictTLS] = { { .i = 1 }, }, - [Style] = { { .i = 1 }, }, + [Style] = { { .i = 0 }, }, [WebGL] = { { .i = 0 }, }, [ZoomLevel] = { { .f = 1.0 }, }, }; @@ -184,6 +184,7 @@ static Key keys[] = { { 0, GDK_KEY_q, quit, { 0 } }, + { 0, GDK_KEY_x, quit, { 0 } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } }, { MODKEY, GDK_KEY_t, showcert, { 0 } }, diff --git a/webext-piper.c b/webext-piper.c index 7dd1e87..80c765c 100644 --- a/webext-piper.c +++ b/webext-piper.c @@ -69,6 +69,8 @@ void show_hints(WebKitDOMHTMLDocument *doc) char buf[1024]; WebKitDOMHTMLAnchorElement *node = webkit_dom_html_collection_item (links,i); WebKitDOMClientRect *rect=webkit_dom_element_get_bounding_client_rect (node); +// snprintf(buf,1024,"LINK: %d",i); +// webkit_dom_element_set_inner_html(node,buf,NULL); snprintf(buf,1024,"