Commit 275c9b4d authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

fixed compiler warning.

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

	* app/core/gimpbrushgenerated.c: fixed compiler warning.

	* app/core/gimpobject.c: turned "name" into a construct property.
parent a6bb2b57
2005-11-01 Sven Neumann <sven@gimp.org>
* app/core/gimpbrushgenerated.c: fixed compiler warning.
* app/core/gimpobject.c: turned "name" into a construct property.
2005-11-01 Sven Neumann <sven@gimp.org>
* app/core/gimpbrushgenerated.c (gimp_brush_generated_load): use
......
......@@ -566,7 +566,7 @@ GList *
gimp_brush_generated_load (const gchar *filename,
GError **error)
{
GimpBrushGenerated *brush;
GimpBrush *brush;
FILE *file;
gchar string[256];
gchar *name = NULL;
......@@ -706,11 +706,11 @@ gimp_brush_generated_load (const gchar *filename,
fclose (file);
brush = gimp_brush_generated_new (name, shape, radius, spikes,
hardness, aspect_ratio, angle);
brush = GIMP_BRUSH (gimp_brush_generated_new (name, shape, radius, spikes,
hardness, aspect_ratio, angle));
g_free (name);
GIMP_BRUSH (brush)->spacing = spacing;
brush->spacing = spacing;
return g_list_prepend (NULL, brush);
......
......@@ -566,7 +566,7 @@ GList *
gimp_brush_generated_load (const gchar *filename,
GError **error)
{
GimpBrushGenerated *brush;
GimpBrush *brush;
FILE *file;
gchar string[256];
gchar *name = NULL;
......@@ -706,11 +706,11 @@ gimp_brush_generated_load (const gchar *filename,
fclose (file);
brush = gimp_brush_generated_new (name, shape, radius, spikes,
hardness, aspect_ratio, angle);
brush = GIMP_BRUSH (gimp_brush_generated_new (name, shape, radius, spikes,
hardness, aspect_ratio, angle));
g_free (name);
GIMP_BRUSH (brush)->spacing = spacing;
brush->spacing = spacing;
return g_list_prepend (NULL, brush);
......
......@@ -566,7 +566,7 @@ GList *
gimp_brush_generated_load (const gchar *filename,
GError **error)
{
GimpBrushGenerated *brush;
GimpBrush *brush;
FILE *file;
gchar string[256];
gchar *name = NULL;
......@@ -706,11 +706,11 @@ gimp_brush_generated_load (const gchar *filename,
fclose (file);
brush = gimp_brush_generated_new (name, shape, radius, spikes,
hardness, aspect_ratio, angle);
brush = GIMP_BRUSH (gimp_brush_generated_new (name, shape, radius, spikes,
hardness, aspect_ratio, angle));
g_free (name);
GIMP_BRUSH (brush)->spacing = spacing;
brush->spacing = spacing;
return g_list_prepend (NULL, brush);
......
......@@ -134,7 +134,8 @@ gimp_object_class_init (GimpObjectClass *klass)
g_param_spec_string ("name",
NULL, NULL,
NULL,
G_PARAM_READWRITE));
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
}
static void
......
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