summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index df29807..703dab1 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -315,24 +315,19 @@ home_clicked_cb(GtkToolButton G_GNUC_UNUSED *toolbutton,
static void
zoom_out_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome)
{
- webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(chrome->web_view),
- webkit_web_view_get_zoom_level(
- WEBKIT_WEB_VIEW(chrome->web_view)) - 0.1);
+ mq_web_view_zoom_out(chrome->web_view);
}
static void
zoom_reset_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome)
{
- webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(chrome->web_view),
- mq_config_get_double(chrome->config, "zoom.default"));
+ mq_web_view_zoom_reset(chrome->web_view);
}
static void
zoom_in_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome)
{
- webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(chrome->web_view),
- webkit_web_view_get_zoom_level(
- WEBKIT_WEB_VIEW(chrome->web_view)) + 0.1);
+ mq_web_view_zoom_in(chrome->web_view);
}
static void