app: move the undo impl object typedefs out of the *-types.h files

They are completely private to the undo system and don't need to
be used anywhere else. Removes some clutter from the typed headers.
This commit is contained in:
Michael Natterer 2016-05-20 18:29:13 +02:00
parent 2ef8719cbe
commit 5080da50e6
23 changed files with 27 additions and 31 deletions

View File

@ -154,24 +154,9 @@ typedef struct _GimpGroupLayer GimpGroupLayer;
/* undo objects */
typedef struct _GimpUndo GimpUndo;
typedef struct _GimpImageUndo GimpImageUndo;
typedef struct _GimpItemUndo GimpItemUndo;
typedef struct _GimpItemPropUndo GimpItemPropUndo;
typedef struct _GimpChannelUndo GimpChannelUndo;
typedef struct _GimpChannelPropUndo GimpChannelPropUndo;
typedef struct _GimpDrawableUndo GimpDrawableUndo;
typedef struct _GimpDrawableModUndo GimpDrawableModUndo;
typedef struct _GimpLayerMaskUndo GimpLayerMaskUndo;
typedef struct _GimpLayerMaskPropUndo GimpLayerMaskPropUndo;
typedef struct _GimpLayerUndo GimpLayerUndo;
typedef struct _GimpLayerPropUndo GimpLayerPropUndo;
typedef struct _GimpGroupLayerUndo GimpGroupLayerUndo;
typedef struct _GimpMaskUndo GimpMaskUndo;
typedef struct _GimpGuideUndo GimpGuideUndo;
typedef struct _GimpSamplePointUndo GimpSamplePointUndo;
typedef struct _GimpUndoStack GimpUndoStack;
typedef struct _GimpUndoAccumulator GimpUndoAccumulator;
typedef struct _GimpUndo GimpUndo;
typedef struct _GimpUndoStack GimpUndoStack;
typedef struct _GimpUndoAccumulator GimpUndoAccumulator;
/* Symmetry transformations */

View File

@ -30,6 +30,7 @@
#define GIMP_CHANNEL_PROP_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CHANNEL_PROP_UNDO, GimpChannelPropUndoClass))
typedef struct _GimpChannelPropUndo GimpChannelPropUndo;
typedef struct _GimpChannelPropUndoClass GimpChannelPropUndoClass;
struct _GimpChannelPropUndo

View File

@ -30,6 +30,7 @@
#define GIMP_CHANNEL_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CHANNEL_UNDO, GimpChannelUndoClass))
typedef struct _GimpChannelUndo GimpChannelUndo;
typedef struct _GimpChannelUndoClass GimpChannelUndoClass;
struct _GimpChannelUndo

View File

@ -30,6 +30,7 @@
#define GIMP_DRAWABLE_MOD_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_DRAWABLE_MOD_UNDO, GimpDrawableModUndoClass))
typedef struct _GimpDrawableModUndo GimpDrawableModUndo;
typedef struct _GimpDrawableModUndoClass GimpDrawableModUndoClass;
struct _GimpDrawableModUndo

View File

@ -30,6 +30,7 @@
#define GIMP_DRAWABLE_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_DRAWABLE_UNDO, GimpDrawableUndoClass))
typedef struct _GimpDrawableUndo GimpDrawableUndo;
typedef struct _GimpDrawableUndoClass GimpDrawableUndoClass;
struct _GimpDrawableUndo

View File

@ -30,6 +30,7 @@
#define GIMP_GROUP_LAYER_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_GROUP_LAYER_UNDO, GimpGroupLayerUndoClass))
typedef struct _GimpGroupLayerUndo GimpGroupLayerUndo;
typedef struct _GimpGroupLayerUndoClass GimpGroupLayerUndoClass;
struct _GimpGroupLayerUndo

View File

@ -30,6 +30,7 @@
#define GIMP_GUIDE_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_GUIDE_UNDO, GimpGuideUndoClass))
typedef struct _GimpGuideUndo GimpGuideUndo;
typedef struct _GimpGuideUndoClass GimpGuideUndoClass;
struct _GimpGuideUndo

View File

@ -30,6 +30,7 @@
#define GIMP_IMAGE_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_IMAGE_UNDO, GimpImageUndoClass))
typedef struct _GimpImageUndo GimpImageUndo;
typedef struct _GimpImageUndoClass GimpImageUndoClass;
struct _GimpImageUndo

View File

@ -30,6 +30,7 @@
#define GIMP_ITEM_PROP_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_ITEM_PROP_UNDO, GimpItemPropUndoClass))
typedef struct _GimpItemPropUndo GimpItemPropUndo;
typedef struct _GimpItemPropUndoClass GimpItemPropUndoClass;
struct _GimpItemPropUndo

View File

@ -30,6 +30,7 @@
#define GIMP_ITEM_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_ITEM_UNDO, GimpItemUndoClass))
typedef struct _GimpItemUndo GimpItemUndo;
typedef struct _GimpItemUndoClass GimpItemUndoClass;
struct _GimpItemUndo

View File

@ -30,6 +30,7 @@
#define GIMP_LAYER_MASK_PROP_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_LAYER_MASK_PROP_UNDO, GimpLayerMaskPropUndoClass))
typedef struct _GimpLayerMaskPropUndo GimpLayerMaskPropUndo;
typedef struct _GimpLayerMaskPropUndoClass GimpLayerMaskPropUndoClass;
struct _GimpLayerMaskPropUndo

View File

@ -30,6 +30,7 @@
#define GIMP_LAYER_MASK_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_LAYER_MASK_UNDO, GimpLayerMaskUndoClass))
typedef struct _GimpLayerMaskUndo GimpLayerMaskUndo;
typedef struct _GimpLayerMaskUndoClass GimpLayerMaskUndoClass;
struct _GimpLayerMaskUndo

View File

@ -30,6 +30,7 @@
#define GIMP_LAYER_PROP_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_LAYER_PROP_UNDO, GimpLayerPropUndoClass))
typedef struct _GimpLayerPropUndo GimpLayerPropUndo;
typedef struct _GimpLayerPropUndoClass GimpLayerPropUndoClass;
struct _GimpLayerPropUndo

View File

@ -30,6 +30,7 @@
#define GIMP_LAYER_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_LAYER_UNDO, GimpLayerUndoClass))
typedef struct _GimpLayerUndo GimpLayerUndo;
typedef struct _GimpLayerUndoClass GimpLayerUndoClass;
struct _GimpLayerUndo

View File

@ -30,6 +30,7 @@
#define GIMP_MASK_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_MASK_UNDO, GimpMaskUndoClass))
typedef struct _GimpMaskUndo GimpMaskUndo;
typedef struct _GimpMaskUndoClass GimpMaskUndoClass;
struct _GimpMaskUndo

View File

@ -30,6 +30,7 @@
#define GIMP_SAMPLE_POINT_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_SAMPLE_POINT_UNDO, GimpSamplePointUndoClass))
typedef struct _GimpSamplePointUndo GimpSamplePointUndo;
typedef struct _GimpSamplePointUndoClass GimpSamplePointUndoClass;
struct _GimpSamplePointUndo

View File

@ -30,6 +30,7 @@
#define GIMP_INK_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_INK_UNDO, GimpInkUndoClass))
typedef struct _GimpInkUndo GimpInkUndo;
typedef struct _GimpInkUndoClass GimpInkUndoClass;
struct _GimpInkUndo

View File

@ -30,6 +30,7 @@
#define GIMP_PAINT_CORE_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PAINT_CORE_UNDO, GimpPaintCoreUndoClass))
typedef struct _GimpPaintCoreUndo GimpPaintCoreUndo;
typedef struct _GimpPaintCoreUndoClass GimpPaintCoreUndoClass;
struct _GimpPaintCoreUndo

View File

@ -60,12 +60,6 @@ typedef struct _GimpPerspectiveCloneOptions GimpPerspectiveCloneOptions;
typedef struct _GimpSmudgeOptions GimpSmudgeOptions;
/* paint undos */
typedef struct _GimpPaintCoreUndo GimpPaintCoreUndo;
typedef struct _GimpInkUndo GimpInkUndo;
/* functions */
typedef void (* GimpPaintRegisterCallback) (Gimp *gimp,

View File

@ -30,6 +30,7 @@
#define GIMP_VECTORS_MOD_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_VECTORS_MOD_UNDO, GimpVectorsModUndoClass))
typedef struct _GimpVectorsModUndo GimpVectorsModUndo;
typedef struct _GimpVectorsModUndoClass GimpVectorsModUndoClass;
struct _GimpVectorsModUndo

View File

@ -30,6 +30,7 @@
#define GIMP_VECTORS_PROP_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_VECTORS_PROP_UNDO, GimpVectorsPropUndoClass))
typedef struct _GimpVectorsPropUndo GimpVectorsPropUndo;
typedef struct _GimpVectorsPropUndoClass GimpVectorsPropUndoClass;
struct _GimpVectorsPropUndo

View File

@ -30,6 +30,7 @@
#define GIMP_VECTORS_UNDO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_VECTORS_UNDO, GimpVectorsUndoClass))
typedef struct _GimpVectorsUndo GimpVectorsUndo;
typedef struct _GimpVectorsUndoClass GimpVectorsUndoClass;
struct _GimpVectorsUndo

View File

@ -27,14 +27,11 @@
#include "vectors/vectors-enums.h"
typedef struct _GimpAnchor GimpAnchor;
typedef struct _GimpAnchor GimpAnchor;
typedef struct _GimpVectors GimpVectors;
typedef struct _GimpVectorsUndo GimpVectorsUndo;
typedef struct _GimpVectorsModUndo GimpVectorsModUndo;
typedef struct _GimpVectorsPropUndo GimpVectorsPropUndo;
typedef struct _GimpStroke GimpStroke;
typedef struct _GimpBezierStroke GimpBezierStroke;
typedef struct _GimpVectors GimpVectors;
typedef struct _GimpStroke GimpStroke;
typedef struct _GimpBezierStroke GimpBezierStroke;
#endif /* __VECTORS_TYPES_H__ */