diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/about/preferences.c | 15 |
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", |