use the tool-info identifier as the name of the tool-options object.

2007-07-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimptoolinfo.c (gimp_tool_info_new): use the tool-info
	identifier as the name of the tool-options object.

	* app/paint/gimppaintoptions.c (gimp_paint_options_new): use the
	paint-info identifier as the name of the paint-options object.

	* app/paint/gimp-paint.c (gimp_paint_register): added parameter check.

	* app/tools/gimp-tools.c (gimp_tools_init): formatting.

svn path=/trunk/; revision=22941
This commit is contained in:
Sven Neumann 2007-07-17 10:04:06 +00:00 committed by Sven Neumann
parent de7d46d6e2
commit f3c451becd
5 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,15 @@
2007-07-17 Sven Neumann <sven@gimp.org>
* app/core/gimptoolinfo.c (gimp_tool_info_new): use the tool-info
identifier as the name of the tool-options object.
* app/paint/gimppaintoptions.c (gimp_paint_options_new): use the
paint-info identifier as the name of the paint-options object.
* app/paint/gimp-paint.c (gimp_paint_register): added parameter check.
* app/tools/gimp-tools.c (gimp_tools_init): formatting.
2007-07-17 Sven Neumann <sven@gimp.org>
* app/plug-in/gimppluginprocedure.c

View File

@ -264,6 +264,7 @@ gimp_tool_info_new (Gimp *gimp,
{
tool_info->tool_options = g_object_new (tool_info->tool_options_type,
"gimp", gimp,
"name", identifier,
NULL);
}

View File

@ -119,6 +119,7 @@ gimp_paint_register (Gimp *gimp,
g_return_if_fail (GIMP_IS_GIMP (gimp));
g_return_if_fail (g_type_is_a (paint_type, GIMP_TYPE_PAINT_CORE));
g_return_if_fail (g_type_is_a (paint_options_type, GIMP_TYPE_PAINT_OPTIONS));
g_return_if_fail (identifier != NULL);
g_return_if_fail (blurb != NULL);
paint_info = gimp_paint_info_new (gimp,

View File

@ -107,8 +107,7 @@ static void gimp_paint_options_notify (GObject *object,
GParamSpec *pspec);
G_DEFINE_TYPE (GimpPaintOptions, gimp_paint_options,
GIMP_TYPE_TOOL_OPTIONS)
G_DEFINE_TYPE (GimpPaintOptions, gimp_paint_options, GIMP_TYPE_TOOL_OPTIONS)
#define parent_class gimp_paint_options_parent_class
@ -545,6 +544,7 @@ gimp_paint_options_new (GimpPaintInfo *paint_info)
options = g_object_new (paint_info->paint_options_type,
"gimp", paint_info->gimp,
"name", GIMP_OBJECT (paint_info)->name,
"paint-info", paint_info,
NULL);

View File

@ -199,7 +199,8 @@ gimp_tools_init (Gimp *gimp)
default_order = g_list_reverse (default_order);
g_object_set_data (G_OBJECT (gimp), "gimp-tools-default-order", default_order);
g_object_set_data (G_OBJECT (gimp),
"gimp-tools-default-order", default_order);
}
void