Making zoom available when used in tabbed.
This commit is contained in:
parent
6cd54e4a31
commit
e96f191088
3 changed files with 10 additions and 5 deletions
9
surf.c
9
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue