diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-12 18:17:06 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-12 18:17:06 (EDT) |
commit | 6abfeb6a43574ce1dad797efff079562434a7c60 (patch) | |
tree | 340a8e0baf37c3dc3762fc46ba0ceaf401f6fe4d /src | |
parent | 3fe6ac0257cdf2e75437677b25c87bb57722a836 (diff) | |
download | marquee-6abfeb6a43574ce1dad797efff079562434a7c60.zip marquee-6abfeb6a43574ce1dad797efff079562434a7c60.tar.gz marquee-6abfeb6a43574ce1dad797efff079562434a7c60.tar.bz2 |
MqTabChrome: Call mq_web_view_zoom_*() in zoom button callbacks
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 11 |
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 |