diff options
author | Rob <rob.manea@gmail.com> | 2009-10-27 21:28:09 +0100 |
---|---|---|
committer | Rob <rob.manea@gmail.com> | 2009-10-27 21:28:09 +0100 |
commit | 6c1ab4ab80943f4610d02db93b61a95c3c1fa69a (patch) | |
tree | 58951aa8fe2a379afe375cebd4b2a9cc5ae2b013 | |
parent | 9d7ae1b21aefac2cf5418667bd150c110bf8932e (diff) |
added zoom_type type variable
-rw-r--r-- | callbacks.c | 9 | ||||
-rw-r--r-- | callbacks.h | 3 | ||||
-rw-r--r-- | uzbl-core.c | 1 | ||||
-rw-r--r-- | uzbl-core.h | 1 |
4 files changed, 13 insertions, 1 deletions
diff --git a/callbacks.c b/callbacks.c index a699c1d..f4199ce 100644 --- a/callbacks.c +++ b/callbacks.c @@ -267,8 +267,15 @@ cmd_view_source() { } void +cmd_set_zoom_type () { + if(uzbl.behave.zoom_type) + webkit_web_view_set_full_content_zoom (uzbl.gui.web_view, TRUE); + else + webkit_web_view_set_full_content_zoom (uzbl.gui.web_view, FALSE); +} + +void toggle_zoom_type (WebKitWebView* page, GArray *argv, GString *result) { - (void)page; (void)argv; (void)result; diff --git a/callbacks.h b/callbacks.h index 05dc618..cc34618 100644 --- a/callbacks.h +++ b/callbacks.h @@ -53,6 +53,9 @@ void cmd_zoom_level(); void +cmd_set_zoom_type(); + +void cmd_disable_plugins(); void diff --git a/uzbl-core.c b/uzbl-core.c index 3a59574..e6b427f 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -119,6 +119,7 @@ const struct var_name_to_ptr_t { /* exported WebKitWebSettings properties */ { "zoom_level", PTR_V_FLOAT(uzbl.behave.zoom_level, 1, cmd_zoom_level)}, + { "zoom_type", PTR_V_INT(uzbl.behave.zoom_type, 1, cmd_set_zoom_type)}, { "font_size", PTR_V_INT(uzbl.behave.font_size, 1, cmd_font_size)}, { "default_font_family", PTR_V_STR(uzbl.behave.default_font_family, 1, cmd_default_font_family)}, { "monospace_font_family", PTR_V_STR(uzbl.behave.monospace_font_family, 1, cmd_monospace_font_family)}, diff --git a/uzbl-core.h b/uzbl-core.h index 51b415b..67c1bda 100644 --- a/uzbl-core.h +++ b/uzbl-core.h @@ -152,6 +152,7 @@ typedef struct { guint monospace_size; guint minimum_font_size; gfloat zoom_level; + gboolean zoom_type; guint disable_plugins; guint disable_scripts; guint autoload_img; |