From 79e76d192ea95f4fb6d598f74a935494e1348788 Mon Sep 17 00:00:00 2001 From: "dinglis%qnx.com" Date: Thu, 18 Oct 2001 13:46:18 +0000 Subject: [PATCH] fixed bug#91955 default preferences for photon r=bnesse sr=jst --- modules/libpref/src/Makefile.in | 5 ++- modules/libpref/src/nsPrefService.cpp | 3 ++ modules/libpref/src/unix/photon.js | 63 +++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 modules/libpref/src/unix/photon.js diff --git a/modules/libpref/src/Makefile.in b/modules/libpref/src/Makefile.in index eedeed4e0e8..767449eaf84 100644 --- a/modules/libpref/src/Makefile.in +++ b/modules/libpref/src/Makefile.in @@ -70,6 +70,9 @@ else ifeq ($(MOZ_WIDGET_TOOLKIT),beos) PREF_JS_EXPORTS += $(srcdir)/beos/beos.js else +ifeq ($(MOZ_WIDGET_TOOLKIT),photon) +PREF_JS_EXPORTS += $(srcdir)/unix/photon.js +endif PREF_JS_EXPORTS += $(srcdir)/unix/unix.js endif endif @@ -91,5 +94,5 @@ DEFINES += -DB_ONE_M GARBAGE += $(addprefix $(DIST)/bin/components/, \ debug-developer.js \ initpref.js all.js mailnews.js editor.js config.js \ - beos.js unix.js winpref.js os2prefs.js openvms.js) + beos.js unix.js winpref.js os2prefs.js openvms.js photon.js) diff --git a/modules/libpref/src/nsPrefService.cpp b/modules/libpref/src/nsPrefService.cpp index dffb0000e8b..56e6fbe715e 100644 --- a/modules/libpref/src/nsPrefService.cpp +++ b/modules/libpref/src/nsPrefService.cpp @@ -623,6 +623,9 @@ extern "C" JSBool pref_InitInitialObjects() #if defined(VMS) , "openvms.js" #endif +#if defined(MOZ_WIDGET_PHOTON) + , "photon.js" +#endif #elif defined(XP_OS2) , "os2pref.js" #endif diff --git a/modules/libpref/src/unix/photon.js b/modules/libpref/src/unix/photon.js new file mode 100644 index 00000000000..0d786d4a8fb --- /dev/null +++ b/modules/libpref/src/unix/photon.js @@ -0,0 +1,63 @@ +/* + Photon specific preferences + They complement unix/unix.js +*/ + +// font names +pref("font.name.serif.x-western", "serif"); +pref("font.name.sans-serif.x-western", "sans-serif"); +pref("font.name.monospace.x-western", "monospace"); +pref("font.name.cursive.x-western", "cursive"); +pref("font.name.fantasy.x-western", "fantasy"); + +pref("font.name.serif.el", "serif"); +pref("font.name.sans-serif.el", "sans-serif"); +pref("font.name.monospace.el", "monospace"); + +pref("font.name.serif.he", "serif"); +pref("font.name.sans-serif.he", "sans-serif"); +pref("font.name.monospace.he", "monospace"); + +pref("font.name.serif.ja", "serif"); +pref("font.name.sans-serif.ja", "sans-serif"); +pref("font.name.monospace.ja", "monospace"); + +pref("font.name.serif.ko", "serif"); +pref("font.name.sans-serif.ko", "sans-serif"); +pref("font.name.monospace.ko", "monospace"); + +pref("font.name.serif.tr", "serif"); +pref("font.name.sans-serif.tr", "sans-serif"); +pref("font.name.monospace.tr", "monospace"); + +pref("font.name.serif.x-baltic", "serif"); +pref("font.name.sans-serif.x-baltic", "sans-serif"); +pref("font.name.monospace.x-baltic", "monospace"); + +pref("font.name.serif.x-central-euro", "serif"); +pref("font.name.sans-serif.x-central-euro", "sans-serif"); +pref("font.name.monospace.x-central-euro", "monospace"); + +pref("font.name.serif.x-cyrillic", "serif"); +pref("font.name.sans-serif.x-cyrillic", "sans-serif"); +pref("font.name.monospace.x-cyrillic", "monospace"); + +pref("font.name.serif.x-unicode", "serif"); +pref("font.name.sans-serif.x-unicode", "sans-serif"); +pref("font.name.monospace.x-unicode", "monospace"); + +pref("font.name.serif.x-user-def", "serif"); +pref("font.name.sans-serif.x-user-def", "sans-serif"); +pref("font.name.monospace.x-user-def", "monospace"); + +pref("font.name.serif.zh-CN", "serif"); +pref("font.name.sans-serif.zh-CN", "sans-serif"); +pref("font.name.monospace.zh-CN", "monospace"); + +pref("font.size.variable.x-western", 16); +pref("font.size.fixed.x-western", 14); + +pref("applications.telnet", "pterm telnet %h %p"); +pref("applications.tn3270", "pterm tn3270 %h"); +pref("applications.rlogin", "pterm rlogin %h"); +pref("applications.rlogin_with_user", "pterm rlogin %h -l %u");