From 7a2d258ca56a94cca48bb2875d7b2a1dfb4e0e09 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 28 Sep 2004 12:46:24 +0000 Subject: A data/default-prefs-common.js: A data/default-prefs-mozilla.js: A 2004-09-28 Christian Persch * configure.ac: * data/Makefile.am: A data/default-prefs-common.js: A data/default-prefs-mozilla.js: A data/default-prefs-toolkit.js: R data/default-prefs.js: Split the default prefs into the common part, and mozilla/new toolkit specific parts. --- data/Makefile.am | 13 ++++++- data/default-prefs-common.js | 90 +++++++++++++++++++++++++++++++++++++++++++ data/default-prefs-mozilla.js | 0 data/default-prefs-toolkit.js | 6 +++ data/default-prefs.js | 87 ----------------------------------------- 5 files changed, 108 insertions(+), 88 deletions(-) create mode 100644 data/default-prefs-common.js create mode 100644 data/default-prefs-mozilla.js create mode 100644 data/default-prefs-toolkit.js delete mode 100644 data/default-prefs.js (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index f4df83595..8831088e1 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -4,7 +4,16 @@ SUBDIRS = ui art glade @INTLTOOL_DESKTOP_RULE@ @INTLTOOL_SCHEMAS_RULE@ -dist_pkgdata_DATA = default-prefs.js +default_prefs_in_FILES = \ + default-prefs-common.js \ + default-prefs-mozilla.js \ + default-prefs-toolkit.js + +default-prefs.js: $(default_prefs_in_FILES) + cat $(srcdir)/default-prefs-common.js $(srcdir)/default-prefs-$(MOZILLA_FLAVOUR).js > $(top_builddir)/$(subdir)/default-prefs.js + +default_prefsdir = $(pkgdatadir) +default_prefs_DATA = default-prefs.js server_in_files = GNOME_Epiphany_Automation.server.in server_DATA = GNOME_Epiphany_Automation.server @@ -53,6 +62,7 @@ EXTRA_DIST = \ $(mimepermission_DATA) \ $(extensionschema_DATA) \ $(pkgconfig_DATA) \ + $(default_prefs_in_FILES) \ check-mime.py DISTCLEANFILES = \ @@ -60,4 +70,5 @@ DISTCLEANFILES = \ $(Applications_DATA) \ $(schema_DATA) \ $(pkgconfig_DATA) \ + $(default_prefs_DATA) \ $(DESKTOP_FILES) diff --git a/data/default-prefs-common.js b/data/default-prefs-common.js new file mode 100644 index 000000000..3586f757f --- /dev/null +++ b/data/default-prefs-common.js @@ -0,0 +1,90 @@ +// mouse wheel +pref("mousewheel.withcontrolkey.action", 1); +pref("mousewheel.withcontrolkey.numlines", 1); +pref("mousewheel.withcontrolkey.sysnumlines", false); +// fix horizontal scroll with 2nd wheel, see bug #148557 +pref("mousewheel.horizscroll.withnokey.action", 0); +pref("mousewheel.horizscroll.withnokey.sysnumlines", true); + +// don't allow opening file:/// URLs on pages from network sources (http, etc.) +pref("security.checkloaduri", true); + +// enable line wrapping in View Source +pref("view_source.wrap_long_lines", true); + +// disable sidebar What's Related, we don't use it +pref("browser.related.enabled", false); + +// Work around for mozilla focus bugs +pref("mozilla.widget.raise-on-setfocus", false); + +// disable sucky XUL ftp view, have nice ns4-like html page instead +pref("network.dir.generate_html", true); + +// deactivate mailcap support, it breaks Gnome-based helper apps +pref("helpers.global_mailcap_file", ""); +pref("helpers.private_mailcap_file", ""); + +// use the mozilla defaults for mime.types files to let mozilla guess proper +// Content-Type for file uploads instead of always falling back to +// application/octet-stream +pref("helpers.global_mime_types_file", ""); +pref("helpers.private_mime_types_file", ""); + +// use google for keywords +pref("keyword.enabled", true); + +// disable usless security warnings +pref("security.warn_entering_secure", false); +pref("security.warn_leaving_secure", false); +pref("security.warn_submit_insecure", false); + +// fonts +pref("font.size.unit", "pt"); +pref("font.size.fixed.ar", 10); +pref("font.size.fixed.x-baltic", 10); +pref("font.size.fixed.x-central-euro", 10); +pref("font.size.fixed.x-cyrillic", 10); +pref("font.size.fixed.x-devanagari", 10); +pref("font.size.fixed.el", 10); +pref("font.size.fixed.he", 10); +pref("font.size.fixed.ja", 10); +pref("font.size.fixed.ko", 10); +pref("font.size.fixed.zh-CN", 10); +pref("font.size.fixed.x-tamil", 10); +pref("font.size.fixed.th", 10); +pref("font.size.fixed.zh-TW", 10); +pref("font.size.fixed.zh-HK", 10); +pref("font.size.fixed.tr", 10); +pref("font.size.fixed.x-unicode", 10); +pref("font.size.fixed.x-western", 10); +pref("font.size.variable.ar", 11); +pref("font.size.variable.x-baltic", 11); +pref("font.size.variable.x-central-euro", 11); +pref("font.size.variable.x-cyrillic", 11); +pref("font.size.variable.x-devanagari", 11); +pref("font.size.variable.el", 11); +pref("font.size.variable.he", 11); +pref("font.size.variable.ja", 11); +pref("font.size.variable.ko", 11); +pref("font.size.variable.zh-CN", 11); +pref("font.size.variable.x-tamil", 11); +pref("font.size.variable.th", 11); +pref("font.size.variable.zh-TW", 11); +pref("font.size.variable.zh-HK", 11); +pref("font.size.variable.tr", 11); +pref("font.size.variable.x-unicode", 11); +pref("font.size.variable.x-western", 11); + +// protocols +pref("network.protocol-handler.external.news", true); +pref("network.protocol-handler.external.mailto", true); +pref("network.protocol-handler.external.irc", true); +pref("network.protocol-handler.external.webcal", true); + +// disable xpinstall +pref("xpinstall.enabled", false); + +// enable typeahead find +pref("accessibility.typeaheadfind", true); + diff --git a/data/default-prefs-mozilla.js b/data/default-prefs-mozilla.js new file mode 100644 index 000000000..e69de29bb diff --git a/data/default-prefs-toolkit.js b/data/default-prefs-toolkit.js new file mode 100644 index 000000000..b1a1db7e0 --- /dev/null +++ b/data/default-prefs-toolkit.js @@ -0,0 +1,6 @@ +// enable plugin finder +pref("plugin.default_plugin_disabled", true); + +// enable locale matching +pref("intl.locale.matchOS", true); + diff --git a/data/default-prefs.js b/data/default-prefs.js deleted file mode 100644 index ee659f03a..000000000 --- a/data/default-prefs.js +++ /dev/null @@ -1,87 +0,0 @@ -// mouse wheel -pref("mousewheel.withcontrolkey.action", 1); -pref("mousewheel.withcontrolkey.numlines", 1); -pref("mousewheel.withcontrolkey.sysnumlines", false); -// fix horizontal scroll with 2nd wheel, see bug #148557 -pref("mousewheel.horizscroll.withnokey.action", 0); -pref("mousewheel.horizscroll.withnokey.sysnumlines", true); - -// don't allow opening file:/// URLs on pages from network sources (http, etc.) -pref("security.checkloaduri", true); - -// enable line wrapping in View Source -pref("view_source.wrap_long_lines", true); - -// disable sidebar What's Related, we don't use it -pref("browser.related.enabled", false); - -// Work around for mozilla focus bugs -pref("mozilla.widget.raise-on-setfocus", false); - -// disable sucky XUL ftp view, have nice ns4-like html page instead -pref("network.dir.generate_html", true); - -// deactivate mailcap support, it breaks Gnome-based helper apps -pref("helpers.global_mailcap_file", ""); -pref("helpers.private_mailcap_file", ""); - -// use the mozilla defaults for mime.types files to let mozilla guess proper -// Content-Type for file uploads instead of always falling back to -// application/octet-stream -pref("helpers.global_mime_types_file", ""); -pref("helpers.private_mime_types_file", ""); - -// use google for keywords -pref("keyword.enabled", true); - -// disable usless security warnings -pref("security.warn_entering_secure", false); -pref("security.warn_leaving_secure", false); -pref("security.warn_submit_insecure", false); - -// fonts -pref("font.size.unit", "pt"); -pref("font.size.fixed.ar", 10); -pref("font.size.fixed.x-baltic", 10); -pref("font.size.fixed.x-central-euro", 10); -pref("font.size.fixed.x-cyrillic", 10); -pref("font.size.fixed.x-devanagari", 10); -pref("font.size.fixed.el", 10); -pref("font.size.fixed.he", 10); -pref("font.size.fixed.ja", 10); -pref("font.size.fixed.ko", 10); -pref("font.size.fixed.zh-CN", 10); -pref("font.size.fixed.x-tamil", 10); -pref("font.size.fixed.th", 10); -pref("font.size.fixed.zh-TW", 10); -pref("font.size.fixed.zh-HK", 10); -pref("font.size.fixed.tr", 10); -pref("font.size.fixed.x-unicode", 10); -pref("font.size.fixed.x-western", 10); -pref("font.size.variable.ar", 11); -pref("font.size.variable.x-baltic", 11); -pref("font.size.variable.x-central-euro", 11); -pref("font.size.variable.x-cyrillic", 11); -pref("font.size.variable.x-devanagari", 11); -pref("font.size.variable.el", 11); -pref("font.size.variable.he", 11); -pref("font.size.variable.ja", 11); -pref("font.size.variable.ko", 11); -pref("font.size.variable.zh-CN", 11); -pref("font.size.variable.x-tamil", 11); -pref("font.size.variable.th", 11); -pref("font.size.variable.zh-TW", 11); -pref("font.size.variable.zh-HK", 11); -pref("font.size.variable.tr", 11); -pref("font.size.variable.x-unicode", 11); -pref("font.size.variable.x-western", 11); - -// protocols -pref("network.protocol-handler.external.news", true); -pref("network.protocol-handler.external.mailto", true); -pref("network.protocol-handler.external.irc", true); -pref("network.protocol-handler.external.webcal", true); - -// disable xpinstall -pref("xpinstall.enabled", false); - -- cgit v1.2.3