mirror of https://github.com/GNOME/gimp.git
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:
parent
2ef8719cbe
commit
5080da50e6
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue