added GimpGradientSegment typedef.

2003-07-08  Michael Natterer  <mitch@gimp.org>

	* app/core/core-types.h: added GimpGradientSegment typedef.

	* app/core/gimpgradient.h: removed it here.

	* app/core/gimpgradient.c: no need to cast the return value
	of g_object_new().
This commit is contained in:
Michael Natterer 2003-07-08 14:30:57 +00:00 committed by Michael Natterer
parent 6ea9c30b13
commit efb6ff5b27
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2003-07-08 Michael Natterer <mitch@gimp.org>
* app/core/core-types.h: added GimpGradientSegment typedef.
* app/core/gimpgradient.h: removed it here.
* app/core/gimpgradient.c: no need to cast the return value
of g_object_new().
2003-07-08 Sven Neumann <sven@gimp.org>
* themes/Default/images/stock-wilber-32.png

View File

@ -121,6 +121,8 @@ typedef struct _GimpUndoAccumulator GimpUndoAccumulator;
typedef struct _GimpCoords GimpCoords;
typedef struct _GimpGradientSegment GimpGradientSegment;
typedef struct _GimpGuide GimpGuide;
typedef struct _GimpProgress GimpProgress;

View File

@ -267,7 +267,7 @@ gimp_gradient_duplicate (GimpData *data,
GimpGradient *gradient;
GimpGradientSegment *head, *prev, *cur, *orig;
gradient = GIMP_GRADIENT (g_object_new (GIMP_TYPE_GRADIENT, NULL));
gradient = g_object_new (GIMP_TYPE_GRADIENT, NULL);
gimp_data_dirty (GIMP_DATA (gradient));

View File

@ -28,8 +28,6 @@
#define GIMP_GRADIENT_DEFAULT_SAMPLE_SIZE 40
typedef struct _GimpGradientSegment GimpGradientSegment;
struct _GimpGradientSegment
{
gdouble left, middle, right;