[monkey-bubble: 616/753] Put them back, but #define it as a gnome_program_locate_file() call.



commit e5f9bd35048b4318fbbea58617c3c315199271b4
Author: Martin Baulig <baulig suse de>
Date:   Thu Aug 9 21:27:27 2001 +0000

    Put them back, but #define it as a gnome_program_locate_file() call.
    
    2001-08-09  Martin Baulig  <baulig suse de>
    
    	* gnome-util.h (gnome_*_file, gnome_unconditional_*_file): Put
    	them back, but #define it as a gnome_program_locate_file() call.

 libgnome/ChangeLog    |    5 +++++
 libgnome/gnome-util.h |   12 ++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libgnome/ChangeLog b/libgnome/ChangeLog
index 58e2a36..27d9752 100644
--- a/libgnome/ChangeLog
+++ b/libgnome/ChangeLog
@@ -1,5 +1,10 @@
 2001-08-09  Martin Baulig  <baulig suse de>
 
+	* gnome-util.h (gnome_*_file, gnome_unconditional_*_file): Put
+	them back, but #define it as a gnome_program_locate_file() call.
+
+2001-08-09  Martin Baulig  <baulig suse de>
+
 	After a discussion with Michael and a release meeting, we
 	decided to remove the sound again. It was really a bad idea.
 
diff --git a/libgnome/gnome-util.h b/libgnome/gnome-util.h
index c1c4a72..d5fd571 100644
--- a/libgnome/gnome-util.h
+++ b/libgnome/gnome-util.h
@@ -33,6 +33,18 @@
 
 G_BEGIN_DECLS
 
+#define gnome_libdir_file(f)  (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_LIBDIR,  f, TRUE, NULL))
+#define gnome_datadir_file(f) (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_DATADIR, f, TRUE, NULL))
+#define gnome_sound_file(f)   (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_SOUND,   f, TRUE, NULL))
+#define gnome_pixmap_file(f)  (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_PIXMAP,  f, TRUE, NULL))
+#define gnome_config_file(f)  (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_CONFIG,  f, TRUE, NULL))
+
+#define gnome_unconditional_libdir_file(f)  (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_LIBDIR,  f, FALSE, NULL))
+#define gnome_unconditional_datadir_file(f) (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_DATADIR, f, FALSE, NULL))
+#define gnome_unconditional_sound_file(f)   (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_SOUND,   f, FALSE, NULL))
+#define gnome_unconditional_pixmap_file(f)  (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_PIXMAP,  f, FALSE, NULL))
+#define gnome_unconditional_config_file(f)  (gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_CONFIG,  f, FALSE, NULL))
+
 /* locate a program in $PATH, or return NULL if not found */
 char *gnome_is_program_in_path (const gchar *program);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]