[gimp] app/tests: Expose gimp_test_utils_set_env_to_subpath()



commit e255998775a43e0cfb62f2627e7c0d72fcd8ec72
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue May 17 21:01:24 2011 +0200

    app/tests: Expose gimp_test_utils_set_env_to_subpath()

 app/tests/gimp-app-test-utils.c |   20 ++++++++++----------
 app/tests/gimp-app-test-utils.h |    3 +++
 2 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/app/tests/gimp-app-test-utils.c b/app/tests/gimp-app-test-utils.c
index 0c9003c..71d383c 100644
--- a/app/tests/gimp-app-test-utils.c
+++ b/app/tests/gimp-app-test-utils.c
@@ -38,10 +38,10 @@
 #include "gimp-app-test-utils.h"
 
 
-static void
-gimp_test_utils_set_env_to_subdir (const gchar *root_env_var,
-                                   const gchar *subdir,
-                                   const gchar *target_env_var)
+void
+gimp_test_utils_set_env_to_subpath (const gchar *root_env_var,
+                                    const gchar *subdir,
+                                    const gchar *target_env_var)
 {
   const gchar *root_dir   = NULL;
   gchar       *target_dir = NULL;
@@ -78,9 +78,9 @@ void
 gimp_test_utils_set_gimp2_directory (const gchar *root_env_var,
                                      const gchar *subdir)
 {
-  gimp_test_utils_set_env_to_subdir (root_env_var,
-                                     subdir,
-                                     "GIMP2_DIRECTORY" /*target_env_var*/);
+  gimp_test_utils_set_env_to_subpath (root_env_var,
+                                      subdir,
+                                      "GIMP2_DIRECTORY" /*target_env_var*/);
 }
 
 /**
@@ -94,9 +94,9 @@ gimp_test_utils_setup_menus_dir (void)
   /* GIMP_TESTING_ABS_TOP_SRCDIR is set by the automake test runner,
    * see Makefile.am
    */
-  gimp_test_utils_set_env_to_subdir ("GIMP_TESTING_ABS_TOP_SRCDIR" /*root_env_var*/,
-                                     "menus" /*subdir*/,
-                                     "GIMP_TESTING_MENUS_DIR" /*target_env_var*/);
+  gimp_test_utils_set_env_to_subpath ("GIMP_TESTING_ABS_TOP_SRCDIR" /*root_env_var*/,
+                                      "menus" /*subdir*/,
+                                      "GIMP_TESTING_MENUS_DIR" /*target_env_var*/);
 }
 
 /**
diff --git a/app/tests/gimp-app-test-utils.h b/app/tests/gimp-app-test-utils.h
index 322ef3d..325a6e7 100644
--- a/app/tests/gimp-app-test-utils.h
+++ b/app/tests/gimp-app-test-utils.h
@@ -19,6 +19,9 @@
 #define  __GIMP_RECTANGLE_SELECT_TOOL_H__
 
 
+void            gimp_test_utils_set_env_to_subpath   (const gchar *root_env_var,
+                                                      const gchar *subdir,
+                                                      const gchar *target_env_var);
 void            gimp_test_utils_set_gimp2_directory  (const gchar *root_env_var,
                                                       const gchar *subdir);
 void            gimp_test_utils_setup_menus_dir      (void);



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