summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-07 10:55:04 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-07 10:55:04 (EDT)
commit22a2895178fcd23cb72ce62db9297bb25f9d09a9 (patch)
tree22415937cd7d9e3a4a60cdf4af86101041e16715
parent98d18eb9e0278e696505fcbb38f40a22e936de63 (diff)
downloadmarquee-22a2895178fcd23cb72ce62db9297bb25f9d09a9.zip
marquee-22a2895178fcd23cb72ce62db9297bb25f9d09a9.tar.gz
marquee-22a2895178fcd23cb72ce62db9297bb25f9d09a9.tar.bz2
mq_tab_body_new(): Set Web view zoom level to zoom.default value
-rw-r--r--src/tab-body.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tab-body.c b/src/tab-body.c
index 85f7e45..229e303 100644
--- a/src/tab-body.c
+++ b/src/tab-body.c
@@ -512,6 +512,10 @@ mq_tab_body_new(MqTab *tab, const gchar *uri)
}
}
+ webkit_web_view_set_zoom_level(body->web_view, mq_config_get_double(
+ mq_application_get_config(mq_tab_get_application(tab)),
+ "zoom.default"));
+
body->container = GTK_WIDGET(body->web_view);
gtk_widget_set_vexpand(body->container, TRUE);
/* FIXME: This doesn't seem to be working. */