summaryrefslogtreecommitdiffstats
path: root/src/about
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-07 13:29:12 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-07 15:09:15 (EDT)
commit5af16441fcafaabc76d00b2341dfedbef8cff8b7 (patch)
tree6a0e1b9cbf5470ce2fb39b180f9adf4cdd31b152 /src/about
parent8a4d88a3ce54ecd6692d66733540fe3dfa957147 (diff)
downloadmarquee-5af16441fcafaabc76d00b2341dfedbef8cff8b7.zip
marquee-5af16441fcafaabc76d00b2341dfedbef8cff8b7.tar.gz
marquee-5af16441fcafaabc76d00b2341dfedbef8cff8b7.tar.bz2
about:preferences: Make tabs.new and cookies.accept <select>s
Diffstat (limited to 'src/about')
-rw-r--r--src/about/preferences.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/about/preferences.c b/src/about/preferences.c
index 6208322..edc5ad2 100644
--- a/src/about/preferences.c
+++ b/src/about/preferences.c
@@ -46,14 +46,18 @@ save_pref(gchar *key, gchar *value, MqConfig *config)
mq_config_get_string(config, NAME))
#define GEN_STRL(NAME, LABEL) mq_html_input_text(NAME, LABEL, \
mq_config_get_string(config, NAME))
+#define GEN_SLCT(NAME, LABEL, ...) mq_html_input_select(NAME, LABEL, \
+ mq_config_get_string(config, NAME), NULL, NULL, __VA_ARGS__, NULL)
static gchar *
gen_page_general(MqConfig *config)
{
return mq_html_container("div",
mq_html_h3(NULL, "Web Browsing"),
- GEN_STR ("tabs.new",
- "New Tab Page"),
+ GEN_SLCT("tabs.new",
+ "New Tab Page",
+ "home", "Home Page",
+ "blank", "Blank Page"),
GEN_STR ("tabs.home",
"Home Page"),
GEN_BOOL("tabs.background",
@@ -199,8 +203,11 @@ gen_page_sec_and_priv(MqConfig *config)
"Remember Download History"),
mq_html_h3(NULL, "Cookies"),
- GEN_STR ("cookies.accept",
- "Accept Cookies"),
+ GEN_SLCT("cookies.accept",
+ "Accept Cookies",
+ "always", "Always",
+ "never", "Never",
+ "no-third-party", "No Third-Party"),
mq_html_h3(NULL, "Security"),
GEN_BOOL("security.xss-auditor.enable",