summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-12 18:17:06 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-12 18:17:06 (EDT)
commit6abfeb6a43574ce1dad797efff079562434a7c60 (patch)
tree340a8e0baf37c3dc3762fc46ba0ceaf401f6fe4d
parent3fe6ac0257cdf2e75437677b25c87bb57722a836 (diff)
downloadmarquee-6abfeb6a43574ce1dad797efff079562434a7c60.zip
marquee-6abfeb6a43574ce1dad797efff079562434a7c60.tar.gz
marquee-6abfeb6a43574ce1dad797efff079562434a7c60.tar.bz2
MqTabChrome: Call mq_web_view_zoom_*() in zoom button callbacks
-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