projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cd8bcf
)
ok added the zoom back in. fml
author
uranther
<jwheaton@purdue.edu>
Sat, 6 Jun 2009 21:13:29 +0000
(17:13 -0400)
committer
uranther
<jwheaton@purdue.edu>
Sat, 6 Jun 2009 21:13:29 +0000
(17:13 -0400)
uzbl.c
patch
|
blob
|
history
uzbl.h
patch
|
blob
|
history
diff --git
a/uzbl.c
b/uzbl.c
index
b219ce3
..
01eb502
100644
(file)
--- 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() {
diff --git
a/uzbl.h
b/uzbl.h
index
8a66506
..
666343a
100644
(file)
--- a/
uzbl.h
+++ b/
uzbl.h
@@
-146,6
+146,7
@@
typedef struct {
guint http_debug;
gchar* shell_cmd;
/* WebKitWebSettings exports */
+ gfloat zoom_level;
guint font_size;
guint monospace_size;
guint minimum_font_size;
@@
-484,6
+485,9
@@
static void
cmd_font_size();
static void
+cmd_zoom_level();
+
+static void
cmd_disable_plugins();
static void