about summary refs log tree commit diff
path: root/surf.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-12-02 22:41:18 +0100
committerChristoph Lohmann <20h@r-36.net>2012-12-02 22:41:18 +0100
commite96f191088efd2f687aeaa1903bd9b3c8133e1af (patch)
tree7cb1d2a7c269ad1d0aead654d37bfb9fc02fd27d /surf.c
parentSurf now can handle absolute file paths. This allows better local HTML (diff)
downloadsurf-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.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/surf.c b/surf.c
index 78698b8..a15ed00 100644
--- a/surf.c
+++ b/surf.c
@@ -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);
 	}