aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2003-06-05 23:21:19 +0000
committerJason Rumney2003-06-05 23:21:19 +0000
commit3d1436900e84279e8de2d22dfd481b0b5feecddc (patch)
tree40fd64778114cb3319510ff69d5a8fbdf32e68cf /src
parent0c8ea7afde56242f923b04e4fae326189ae4fdd8 (diff)
downloademacs-3d1436900e84279e8de2d22dfd481b0b5feecddc.tar.gz
emacs-3d1436900e84279e8de2d22dfd481b0b5feecddc.zip
(SYSTEM_DEFAULT_RESOURCES): New constant.
(w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/w32reg.c31
2 files changed, 38 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1713b57f146..ac1c5f10d80 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12003-06-06 Jason Rumney <jasonr@gnu.org>
2
3 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
5
6 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7 Mac too.
8
12003-06-05 Dave Love <fx@gnu.org> 92003-06-05 Dave Love <fx@gnu.org>
2 10
3 * mktime.c (__mktime_internal): Merge changes from gnulib 11 * mktime.c (__mktime_internal): Merge changes from gnulib
diff --git a/src/w32reg.c b/src/w32reg.c
index 283cd219e95..6d3137f1d4f 100644
--- a/src/w32reg.c
+++ b/src/w32reg.c
@@ -30,6 +30,33 @@ Boston, MA 02111-1307, USA. */
30 30
31#define REG_ROOT "SOFTWARE\\GNU\\Emacs" 31#define REG_ROOT "SOFTWARE\\GNU\\Emacs"
32 32
33/* Default system colors from the Display Control Panel settings. */
34#define SYSTEM_DEFAULT_RESOURCES \
35 "emacs.foreground:SystemWindowText\0" \
36 "emacs.background:SystemWindow\0" \
37 "emacs.tooltip.attributeForeground:SystemInfoText\0" \
38 "emacs.tooltip.attributeBackground:SystemInfoWindow\0" \
39 "emacs.tool-bar.attributeForeground:SystemButtonText\0" \
40 "emacs.tool-bar.attributeBackground:SystemButtonFace\0" \
41 "emacs.menu.attributeForeground:SystemMenuText\0" \
42 "emacs.menu.attributeBackground:SystemMenu\0" \
43 "emacs.scroll-bar.attributeForeground:SystemScrollbar"
44
45/* Other possibilities for default faces:
46
47 region: Could use SystemHilight, but interferes with our ability to
48 see most syntax highlighting through the region face.
49
50 modeline: Could use System(In)ActiveTitle, gradient versions (not
51 supported on 95 and NT), but modeline is more like a status bar
52 really (which don't appear to be configurable in Windows).
53
54 highlight: Could use SystemHotTrackingColor, but it is not supported
55 on Windows 95 or NT, and other apps only seem to use it for menus
56 anyway.
57
58*/
59
33static char * 60static char *
34w32_get_rdb_resource (rdb, resource) 61w32_get_rdb_resource (rdb, resource)
35 char *rdb; 62 char *rdb;
@@ -109,7 +136,9 @@ w32_get_string_resource (name, class, dwexptype)
109 hive = HKEY_LOCAL_MACHINE; 136 hive = HKEY_LOCAL_MACHINE;
110 goto trykey; 137 goto trykey;
111 } 138 }
112 return (NULL); 139
140 /* Check if there are Windows specific defaults defined. */
141 return w32_get_rdb_resource (SYSTEM_DEFAULT_RESOURCES, name);
113 } 142 }
114 return (lpvalue); 143 return (lpvalue);
115} 144}