Commit 56e2d772 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/config/Makefile.am new files that define plug-in specific

2002-12-30  Sven Neumann  <sven@gimp.org>

	* app/config/Makefile.am
	* app/config/gimppluginconfig.[ch]: new files that define plug-in
	specific configuration.

	* app/config/config-types.h
	* app/config/gimprc-blurbs.h
	* app/gimprc.[ch]: derive GimpRc from GimpPluginConfig.

	* etc/gimprc: regenerated (gimp-config-dump --system-gimprc).
parent 75353108
2002-12-30 Sven Neumann <sven@gimp.org>
* app/config/Makefile.am
* app/config/gimppluginconfig.[ch]: new files that define plug-in
specific configuration.
* app/config/config-types.h
* app/config/gimprc-blurbs.h
* app/gimprc.[ch]: derive GimpRc from GimpPluginConfig.
* etc/gimprc: regenerated (gimp-config-dump --system-gimprc).
2002-12-29 Sven Neumann <sven@gimp.org>
* app/core/gimpimagefile.c: another fix for #102016.
......
......@@ -27,6 +27,8 @@ libappconfig_a_SOURCES = \
gimpdisplayconfig.h \
gimpguiconfig.c \
gimpguiconfig.h \
gimppluginconfig.c \
gimppluginconfig.h \
gimprc.c \
gimprc.h \
gimprc-blurbs.h \
......
......@@ -27,6 +27,7 @@ typedef struct _GimpBaseConfig GimpBaseConfig;
typedef struct _GimpCoreConfig GimpCoreConfig;
typedef struct _GimpDisplayConfig GimpDisplayConfig;
typedef struct _GimpGuiConfig GimpGuiConfig;
typedef struct _GimpPluginConfig GimpPluginConfig;
typedef struct _GimpRc GimpRc;
......
......@@ -71,6 +71,10 @@
"Set the default vertical resolution for new images and for the " \
"File/New dialog. This value is always in dpi (dots per inch)."
#define FRACTALEXPLORER_PATH_BLURB \
"This path will be searched for fractals when you use the "\
"Fractal Explorer plug-in."
#define GAMMA_CORRECTION_BLURB \
"This setting is ignored."
#if 0
......@@ -83,6 +87,15 @@
"images of this sort, turn gamma correction off by setting the value to 1.0."
#endif
#define GFIG_PATH_BLURB \
"Where to search for GFig figures used by the GFig plug-in."
#define GFLARE_PATH_BLURB \
"Where to search for gflares used by the GFlare plug-in."
#define GIMPRESSIONIST_PATH_BLURB \
"Where to search for data used by the Gimpressionist plug-in."
#define GRADIENT_PATH_BLURB \
"Set the gradient search path."
......
......@@ -33,7 +33,6 @@
#include <io.h>
#endif
#include "libgimpbase/gimpbase.h"
#include "libgimpbase/gimpbase.h"
#include "config-types.h"
......@@ -41,6 +40,7 @@
#include "gimpconfig.h"
#include "gimpconfig-deserialize.h"
#include "gimpconfig-params.h"
#include "gimpconfig-path.h"
#include "gimpconfig-serialize.h"
#include "gimpconfig-utils.h"
#include "gimprc.h"
......@@ -115,7 +115,7 @@ gimp_rc_get_type (void)
NULL /* iface_data */
};
rc_type = g_type_register_static (GIMP_TYPE_GUI_CONFIG,
rc_type = g_type_register_static (GIMP_TYPE_PLUGIN_CONFIG,
"GimpRc", &rc_info, 0);
g_type_add_interface_static (rc_type,
......@@ -513,6 +513,18 @@ gimp_rc_query (GimpRc *rc,
g_free (property_specs);
/* for backward compatibility, expand the value */
if (retval)
{
gchar *tmp = gimp_config_path_expand (retval, FALSE, NULL);
if (tmp)
{
g_free (retval);
retval = tmp;
}
}
return retval;
}
......
......@@ -22,7 +22,7 @@
#ifndef __GIMP_RC_H__
#define __GIMP_RC_H__
#include "config/gimpguiconfig.h"
#include "config/gimppluginconfig.h"
#define GIMP_TYPE_RC (gimp_rc_get_type ())
......@@ -36,18 +36,18 @@ typedef struct _GimpRcClass GimpRcClass;
struct _GimpRc
{
GimpGuiConfig parent_instance;
GimpPluginConfig parent_instance;
gchar *user_gimprc;
gchar *system_gimprc;
gboolean verbose;
gboolean autosave;
guint save_idle_id;
gchar *user_gimprc;
gchar *system_gimprc;
gboolean verbose;
gboolean autosave;
guint save_idle_id;
};
struct _GimpRcClass
{
GimpGuiConfigClass parent_class;
GimpPluginConfigClass parent_class;
};
......
......@@ -377,3 +377,23 @@
#
# (help-browser gimp)
# This path will be searched for fractals when you use the Fractal Explorer
# plug-in. This is a colon-separated list of directories to search.
#
# (fractalexplorer-path "${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer")
# Where to search for GFig figures used by the GFig plug-in. This is a
# colon-separated list of directories to search.
#
# (gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
# Where to search for gflares used by the GFlare plug-in. This is a
# colon-separated list of directories to search.
#
# (gflare-path "${gimp_dir}/gflare:${gimp_data_dir}/gflare")
# Where to search for data used by the Gimpressionist plug-in. This is a
# colon-separated list of directories to search.
#
# (gimpressionist-path "${gimp_dir}/gimpressionist:${gimp_data_dir}/gimpressionist")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment