aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2007-08-22 07:51:39 +0000
committerGlenn Morris2007-08-22 07:51:39 +0000
commit6678dc115d07a7c352747e9441eed4641a145e3a (patch)
treef510b8de4daa19f7b49b2ed4920c9f8f6e5ca635 /src
parent2467875c22ef63bc82b9a25eb7d4131a6511fc95 (diff)
downloademacs-6678dc115d07a7c352747e9441eed4641a145e3a.tar.gz
emacs-6678dc115d07a7c352747e9441eed4641a145e3a.zip
(x_find_image_file): Search in etc/images/ rather than etc/.
Diffstat (limited to 'src')
-rw-r--r--src/image.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c
index 2f2fbf3a596..72f8a7ba47b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1,6 +1,7 @@
1/* Functions for image support on window system. 1/* Functions for image support on window system.
2 Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2 Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 3 2001, 2002, 2003, 2004, 2005, 2006, 2007
4 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -2353,7 +2354,7 @@ x_put_x_image (f, ximg, pixmap, width, height)
2353static unsigned char *slurp_file P_ ((char *, int *)); 2354static unsigned char *slurp_file P_ ((char *, int *));
2354 2355
2355 2356
2356/* Find image file FILE. Look in data-directory, then 2357/* Find image file FILE. Look in data-directory/images, then
2357 x-bitmap-file-path. Value is the encoded full name of the file 2358 x-bitmap-file-path. Value is the encoded full name of the file
2358 found, or nil if not found. */ 2359 found, or nil if not found. */
2359 2360
@@ -2366,7 +2367,11 @@ x_find_image_file (file)
2366 int fd; 2367 int fd;
2367 2368
2368 file_found = Qnil; 2369 file_found = Qnil;
2369 search_path = Fcons (Vdata_directory, Vx_bitmap_file_path); 2370 /* TODO I think this should use something like image-load-path
2371 instead. Unfortunately, that can contain non-string elements. */
2372 search_path = Fcons (Fexpand_file_name (build_string ("images"),
2373 Vdata_directory),
2374 Vx_bitmap_file_path);
2370 GCPRO2 (file_found, search_path); 2375 GCPRO2 (file_found, search_path);
2371 2376
2372 /* Try to find FILE in data-directory, then x-bitmap-file-path. */ 2377 /* Try to find FILE in data-directory, then x-bitmap-file-path. */