diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-12-02 22:41:18 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-12-02 22:41:18 +0100 |
commit | e96f191088efd2f687aeaa1903bd9b3c8133e1af (patch) | |
tree | 7cb1d2a7c269ad1d0aead654d37bfb9fc02fd27d /surf.c | |
parent | 6cd54e4a3119bd201d95f5d67ffb4bfe28aac653 (diff) | |
download | surf-e96f191088efd2f687aeaa1903bd9b3c8133e1af.tar.gz surf-e96f191088efd2f687aeaa1903bd9b3c8133e1af.tar.bz2 surf-e96f191088efd2f687aeaa1903bd9b3c8133e1af.zip |
Making zoom available when used in tabbed.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -986,11 +986,14 @@ windowobjectcleared(GtkWidget *w, WebKitWebFrame *frame, JSContextRef js, JSObje void zoom(Client *c, const Arg *arg) { c->zoomed = TRUE; - if(arg->i < 0) /* zoom out */ + if(arg->i < 0) { + /* zoom out */ webkit_web_view_zoom_out(c->view); - else if(arg->i > 0) /* zoom in */ + } else if(arg->i > 0) { + /* zoom in */ webkit_web_view_zoom_in(c->view); - else { /* reset */ + } else { + /* reset */ c->zoomed = FALSE; webkit_web_view_set_zoom_level(c->view, 1.0); } |