diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-07 10:43:49 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-07 10:43:49 (EDT) |
commit | 98d18eb9e0278e696505fcbb38f40a22e936de63 (patch) | |
tree | 20f26bfc0409cee9ba90235515b2d80d02f65d57 | |
parent | 243da5ff85177f8731865f7a69343f662cfb1644 (diff) | |
download | marquee-98d18eb9e0278e696505fcbb38f40a22e936de63.zip marquee-98d18eb9e0278e696505fcbb38f40a22e936de63.tar.gz marquee-98d18eb9e0278e696505fcbb38f40a22e936de63.tar.bz2 |
MqTabChrome: Obey zoom.default on zoom reset
-rw-r--r-- | src/tab-chrome.c | 4 | ||||
-rw-r--r-- | src/tab-chrome.h | 1 |
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; |