added declarations for the gimp_config_build_path functions.

2005-01-26  Sven Neumann  <sven@gimp.org>

	* libgimpconfig/gimpconfig-path.h: added declarations for the
	gimp_config_build_path functions.

	* app/config/Makefile.am
	* app/config/gimprc-utils.[ch]: removed these two files again;
	they used to duplicate functionality from libgimpconfig.

	* app/config/gimpcoreconfig.c
	* app/config/gimpguiconfig.c
	* app/config/gimppluginconfig.c: changed accordingly.
This commit is contained in:
Sven Neumann 2005-01-25 23:52:20 +00:00 committed by Sven Neumann
parent 4aa2bf9382
commit 88a302f4d1
8 changed files with 17 additions and 84 deletions

View file

@ -1,3 +1,16 @@
2005-01-26 Sven Neumann <sven@gimp.org>
* libgimpconfig/gimpconfig-path.h: added declarations for the
gimp_config_build_path functions.
* app/config/Makefile.am
* app/config/gimprc-utils.[ch]: removed these two files again;
they used to duplicate functionality from libgimpconfig.
* app/config/gimpcoreconfig.c
* app/config/gimpguiconfig.c
* app/config/gimppluginconfig.c: changed accordingly.
2005-01-26 Sven Neumann <sven@gimp.org>
* libgimpbase/Makefile.am

View file

@ -33,8 +33,6 @@ libappconfig_a_SOURCES = \
gimprc-serialize.h \
gimprc-unknown.c \
gimprc-unknown.h \
gimprc-utils.c \
gimprc-utils.h \
gimpxmlparser.c \
gimpxmlparser.h

View file

@ -33,7 +33,6 @@
#include "core/gimptemplate.h"
#include "gimprc-blurbs.h"
#include "gimprc-utils.h"
#include "gimpcoreconfig.h"
#include "gimp-intl.h"

View file

@ -29,7 +29,6 @@
#include "config-types.h"
#include "gimprc-blurbs.h"
#include "gimprc-utils.h"
#include "gimpguiconfig.h"
#include "gimp-intl.h"

View file

@ -29,7 +29,6 @@
#include "config-types.h"
#include "gimprc-blurbs.h"
#include "gimprc-utils.h"
#include "gimppluginconfig.h"

View file

@ -1,48 +0,0 @@
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib-object.h>
#include "gimprc-utils.h"
gchar *
gimp_rc_build_data_path (const gchar *name)
{
return g_strconcat ("${gimp_dir}", G_DIR_SEPARATOR_S, name,
G_SEARCHPATH_SEPARATOR_S,
"${gimp_data_dir}", G_DIR_SEPARATOR_S, name,
NULL);
}
gchar *
gimp_rc_build_writable_path (const gchar *name)
{
return g_strconcat ("${gimp_dir}", G_DIR_SEPARATOR_S, name, NULL);
}
gchar *
gimp_rc_build_plug_in_path (const gchar *name)
{
return g_strconcat ("${gimp_dir}", G_DIR_SEPARATOR_S, name,
G_SEARCHPATH_SEPARATOR_S,
"${gimp_plug_in_dir}", G_DIR_SEPARATOR_S, name,
NULL);
}

View file

@ -1,31 +0,0 @@
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* gimpconfig-path.h
* Copyright (C) 2001-2002 Sven Neumann <sven@gimp.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __GIMP_RC_UTILS_H__
#define __GIMP_RC_UTILS_H__
gchar * gimp_config_build_data_path (const gchar *name);
gchar * gimp_config_build_writable_path (const gchar *name);
gchar * gimp_config_build_plug_in_path (const gchar *name);
#endif /* __GIMP_RC_UTILS_H__ */

View file

@ -71,5 +71,9 @@ gchar * gimp_config_path_expand (const gchar *path,
gboolean recode,
GError **error);
gchar * gimp_config_build_data_path (const gchar *name);
gchar * gimp_config_build_writable_path (const gchar *name);
gchar * gimp_config_build_plug_in_path (const gchar *name);
#endif /* __GIMP_CONFIG_PATH_H__ */