From 824472202a6480b62d65eb2b97142e5646455459 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 26 Oct 2017 21:52:16 -0400 Subject: Revert layout of preferences form in table This reverts commits 5e4efa9, 8f26235, 87d058f, fc1eaf8, 1e94c07, and b58eedd. --- (limited to 'src/about') diff --git a/src/about/preferences.c b/src/about/preferences.c index 3a16895..64633a7 100644 --- a/src/about/preferences.c +++ b/src/about/preferences.c @@ -52,8 +52,8 @@ save_pref(gchar *key, gchar *value, MqConfig *config) static gchar * gen_page_general(MqConfig *config) { - return mq_html_fieldset( - mq_html_th(NULL, "Web Browsing"), + return mq_html_container("div", + mq_html_h3(NULL, "Web Browsing"), GEN_SLCT("tabs.new", "New Tab Page", "home", "Home Page", @@ -65,7 +65,7 @@ gen_page_general(MqConfig *config) GEN_BOOL("tabs.warn-on-close", "Warn When Closing Multiple Tabs or Windows"), - mq_html_th(NULL, "Navigation and Accessibility"), + mq_html_h3(NULL, "Navigation and Accessibility"), GEN_BOOL("navigation.smooth-scrolling", "Enable Smooth Scrolling"), GEN_BOOL("navigation.tabbing", @@ -76,19 +76,19 @@ gen_page_general(MqConfig *config) "Enable Spatial Navigation Between Elements By Arrow " "Keys"), - mq_html_th(NULL, "Spell Checking"), + mq_html_h3(NULL, "Spell Checking"), GEN_BOOL("spell.enable", "Enable Spell Checking"), GEN_STRL("spell.langs", "Spell Checking Languages"), - mq_html_th(NULL, "Miscellaneous"), + mq_html_h3(NULL, "Miscellaneous"), GEN_BOOL("display.textarea.resize.enable", "Enable Resizable Text Areas"), GEN_BOOL("devtools.enable", "Enable Developer Tools"), - mq_html_th(NULL, "Compatibility"), + mq_html_h3(NULL, "Compatibility"), GEN_STR ("compatibility.user-agent", "User Agent Identity"), GEN_BOOL("compatibility.quirks", @@ -99,8 +99,8 @@ gen_page_general(MqConfig *config) static gchar * gen_page_display(MqConfig *config) { - return mq_html_fieldset( - mq_html_th(NULL, "Fonts"), + return mq_html_container("div", + mq_html_h3(NULL, "Fonts"), GEN_STR ("font.family.default", "Default Font Family"), GEN_STR ("font.family.monospace", @@ -122,13 +122,13 @@ gen_page_display(MqConfig *config) GEN_INT ("font.size.minimum", "Minimum Font Size", 0, 1, 72), - mq_html_th(NULL, "Languages"), + mq_html_h3(NULL, "Languages"), GEN_STRL("intl.accept-languages", "Preferred Web Site Languages"), GEN_STR ("intl.default-charset", "Default Character Set"), - mq_html_th(NULL, "Zoom"), + mq_html_h3(NULL, "Zoom"), GEN_DBL ("zoom.default", "Default Zoom Level", 0.00, 0.10, 10.00), GEN_BOOL("zoom.text-only", @@ -139,8 +139,8 @@ gen_page_display(MqConfig *config) static gchar * gen_page_permissions(MqConfig *config) { - return mq_html_fieldset( - mq_html_th(NULL, "General"), + return mq_html_container("div", + mq_html_h3(NULL, "General"), GEN_BOOL("permissions.images.auto-load", "Automatically Load Images"), GEN_BOOL("permissions.images.favicons.override", @@ -153,7 +153,7 @@ gen_page_permissions(MqConfig *config) GEN_BOOL("permissions.plugins.enable", "Enable Plugins"), - mq_html_th(NULL, "JavaScript"), + mq_html_h3(NULL, "JavaScript"), GEN_BOOL("permissions.javascript.open-windows", "Enable JavaScript to Open Windows"), GEN_BOOL("permissions.javascript.fullscreen", @@ -163,7 +163,7 @@ gen_page_permissions(MqConfig *config) GEN_BOOL("permissions.javascript.clipboard", "Enable JavaScript to Access the Clipboard"), - mq_html_th(NULL, "Data Storage"), + mq_html_h3(NULL, "Data Storage"), GEN_BOOL("permissions.javascript.database", "Enable Web Database"), GEN_BOOL("permissions.javascript.storage", @@ -171,7 +171,7 @@ gen_page_permissions(MqConfig *config) GEN_BOOL("permissions.appcache", "Enable Application Cache"), - mq_html_th(NULL, "Graphics and Multimedia"), + mq_html_h3(NULL, "Graphics and Multimedia"), GEN_BOOL("canvas.acceleration.enable", "Enable Hardware-Accelerated 2-D Canvas Drawing"), GEN_BOOL("permissions.javascript.webgl", @@ -192,8 +192,8 @@ gen_page_permissions(MqConfig *config) static gchar * gen_page_sec_and_priv(MqConfig *config) { - return mq_html_fieldset( - mq_html_th(NULL, "History"), + return mq_html_container("div", + mq_html_h3(NULL, "History"), GEN_BOOL("privacy.private-browsing.enabled", "Enable Private Prowsing (Disables History, Cache, and " "Form Auto-Filling)"), @@ -202,19 +202,19 @@ gen_page_sec_and_priv(MqConfig *config) GEN_BOOL("privacy.remember.downloads", "Remember Download History"), - mq_html_th(NULL, "Cookies"), + mq_html_h3(NULL, "Cookies"), GEN_SLCT("cookies.accept", "Accept Cookies", "always", "Always", "never", "Never", "no-third-party", "No Third-Party"), - mq_html_th(NULL, "Security"), + mq_html_h3(NULL, "Security"), GEN_BOOL("security.xss-auditor.enable", "Attempt to Detect and Block Cross-Site Scripting " "Attacks"), - mq_html_th(NULL, "Network"), + mq_html_h3(NULL, "Network"), GEN_BOOL("dns.prefetch.enable", "Prefetch Domain Name Resolutions for Better " "Performance"), -- cgit v0.9.1