diff options
| author | miguel <miguel@localhost> | 2018-03-20 20:03:00 +0100 |
|---|---|---|
| committer | miguel <miguel@localhost> | 2018-03-20 20:03:00 +0100 |
| commit | 50d2341c2d13acbb610a8657b73a56db62a8eb62 (patch) | |
| tree | 0c6a90ce2034012825bf563891b34189784a82ef | |
| parent | 5389c0ccce709b101505725ac258b2fa74c52fee (diff) | |
disable the dark-theme by default AND add x for closing window
| -rw-r--r-- | config.h | 3 | ||||
| -rw-r--r-- | webext-piper.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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,"<span class='%s' style='"\ |
