diff options
author | uranther <jwheaton@purdue.edu> | 2009-05-29 15:47:55 -0400 |
---|---|---|
committer | uranther <jwheaton@purdue.edu> | 2009-05-29 15:47:55 -0400 |
commit | 89916092aef4b603c3fb5a711f0475d49aa7868e (patch) | |
tree | 66dafb75d9805e7268f7608b727810fb88203208 /uzbl.c | |
parent | efed998a1aca58fc79f2cf82ce78c9dda7911201 (diff) |
Added reset_zoom_level() to reset zoom to 100%, and added keybinding in sampleconfig
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -544,6 +544,7 @@ static struct {char *name; Command command[2];} cmdlist[] = { "stop", {view_stop_loading, 0}, }, { "zoom_in", {view_zoom_in, 0}, }, //Can crash (when max zoom reached?). { "zoom_out", {view_zoom_out, 0}, }, + { "reset_zoom", {reset_zoom_level, 0}, }, { "uri", {load_uri, NOSPLIT} }, { "js", {run_js, NOSPLIT} }, { "script", {run_external_js, 0} }, @@ -707,6 +708,12 @@ search_reverse_text (WebKitWebView *page, GArray *argv) { } static void +reset_zoom_level (WebKitWebView *page, GArray *argv) { + (void) argv; + webkit_web_view_set_zoom_level (page, 1.0); +} + +static void dehilight (WebKitWebView *page, GArray *argv) { (void) argv; webkit_web_view_set_highlight_text_matches (page, FALSE); |