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.
This commit is contained in:
Sven Neumann 2005-11-01 14:41:41 +00:00 committed by Sven Neumann
parent a6bb2b5751
commit 275c9b4d3e
5 changed files with 20 additions and 13 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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