summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-07 10:43:49 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-07 10:43:49 (EDT)
commit98d18eb9e0278e696505fcbb38f40a22e936de63 (patch)
tree20f26bfc0409cee9ba90235515b2d80d02f65d57 /src
parent243da5ff85177f8731865f7a69343f662cfb1644 (diff)
downloadmarquee-98d18eb9e0278e696505fcbb38f40a22e936de63.zip
marquee-98d18eb9e0278e696505fcbb38f40a22e936de63.tar.gz
marquee-98d18eb9e0278e696505fcbb38f40a22e936de63.tar.bz2
MqTabChrome: Obey zoom.default on zoom reset
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c4
-rw-r--r--src/tab-chrome.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index b92b17a..5eb913f 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -325,7 +325,8 @@ static void
zoom_reset_clicked_cb(GtkButton __attribute__((unused)) *button,
MqTabChrome *chrome)
{
- webkit_web_view_set_zoom_level(chrome->web_view, 1.0);
+ webkit_web_view_set_zoom_level(chrome->web_view,
+ mq_config_get_double(chrome->config, "zoom.default"));
}
static void
@@ -542,6 +543,7 @@ mq_tab_chrome_new(MqTab *tab, const gchar *uri)
MqTabChrome *chrome;
chrome = malloc(sizeof(*chrome));
+ chrome->config = mq_application_get_config(mq_tab_get_application(tab));
chrome->tab = tab;
chrome->container = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index ff9c552..850a783 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -30,6 +30,7 @@ typedef struct MqTabChrome MqTabChrome;
#include "tab.h"
struct MqTabChrome {
+ MqConfig *config;
MqTab *tab;
GtkWidget *container;
GtkWidget *back_forward_box;