aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar uranther <jwheaton@purdue.edu>2009-06-06 17:13:29 -0400
committerGravatar uranther <jwheaton@purdue.edu>2009-06-06 17:13:29 -0400
commit758cf93e955c32f3ba9a7cd61a2a2995dde11cc7 (patch)
treeb39886e7f9a29e56431b4cac84de7a0247473e0e /uzbl.c
parent4cd8bcf21f6d46773b11d049ee62077aa0dcfdb2 (diff)
ok added the zoom back in. fml
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/uzbl.c b/uzbl.c
index b219ce3..01eb502 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -84,7 +84,7 @@ typedef const struct {
void (*func)(void);
} uzbl_cmdprop;
-enum {TYPE_INT, TYPE_STR};
+enum {TYPE_INT, TYPE_STR, TYPE_FLOAT};
/* an abbreviation to help keep the table's width humane */
#define PTR(var, t, d, fun) { .ptr = (void*)&(var), .type = TYPE_##t, .dump = d, .func = fun }
@@ -1377,6 +1377,11 @@ cmd_font_size() {
uzbl.behave.font_size, NULL);
}
}
+
+static void
+cmd_zoom_level() {
+ webkit_web_view_set_zoom_level (uzbl.gui.web_view, uzbl.behave.zoom_level);
+}
static void
cmd_disable_plugins() {