return a GimpUndo* instead of gboolean from all undo_push functions.
2007-01-29 Michael Natterer <mitch@gimp.org> * app/core/gimpimage-undo-push.[ch]: return a GimpUndo* instead of gboolean from all undo_push functions. Simplifies the new properly done functions quite a bit. svn path=/trunk/; revision=21800
This commit is contained in:

committed by
Michael Natterer

parent
e9b9f1bfd1
commit
9a7de0552d
@ -1,3 +1,9 @@
|
|||||||
|
2007-01-29 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/core/gimpimage-undo-push.[ch]: return a GimpUndo* instead
|
||||||
|
of gboolean from all undo_push functions. Simplifies the new
|
||||||
|
properly done functions quite a bit.
|
||||||
|
|
||||||
2007-01-29 Michael Natterer <mitch@gimp.org>
|
2007-01-29 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/core/Makefile.am
|
* app/core/Makefile.am
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -22,28 +22,28 @@
|
|||||||
|
|
||||||
/* image undos */
|
/* image undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_image_type (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_type (GimpImage *image,
|
||||||
const gchar *undo_desc);
|
const gchar *undo_desc);
|
||||||
gboolean gimp_image_undo_push_image_size (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_size (GimpImage *image,
|
||||||
const gchar *undo_desc);
|
const gchar *undo_desc);
|
||||||
gboolean gimp_image_undo_push_image_resolution (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_resolution (GimpImage *image,
|
||||||
const gchar *undo_desc);
|
const gchar *undo_desc);
|
||||||
gboolean gimp_image_undo_push_image_guide (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_guide (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpGuide *guide);
|
GimpGuide *guide);
|
||||||
gboolean gimp_image_undo_push_image_grid (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_grid (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpGrid *grid);
|
GimpGrid *grid);
|
||||||
gboolean gimp_image_undo_push_image_sample_point (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_sample_point (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpSamplePoint *sample_point);
|
GimpSamplePoint *sample_point);
|
||||||
gboolean gimp_image_undo_push_image_colormap (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_colormap (GimpImage *image,
|
||||||
const gchar *undo_desc);
|
const gchar *undo_desc);
|
||||||
|
|
||||||
|
|
||||||
/* drawable undo */
|
/* drawable undo */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_drawable (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_drawable (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpDrawable *drawable,
|
GimpDrawable *drawable,
|
||||||
TileManager *tiles,
|
TileManager *tiles,
|
||||||
@ -52,157 +52,157 @@ gboolean gimp_image_undo_push_drawable (GimpImage *image,
|
|||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height);
|
gint height);
|
||||||
gboolean gimp_image_undo_push_drawable_mod (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_drawable_mod (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpDrawable *drawable);
|
GimpDrawable *drawable);
|
||||||
|
|
||||||
|
|
||||||
/* mask undo */
|
/* mask undo */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_mask (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_mask (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpChannel *mask);
|
GimpChannel *mask);
|
||||||
|
|
||||||
|
|
||||||
/* item undos */
|
/* item undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_item_rename (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_item_rename (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpItem *item);
|
GimpItem *item);
|
||||||
gboolean gimp_image_undo_push_item_displace (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_item_displace (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpItem *item);
|
GimpItem *item);
|
||||||
gboolean gimp_image_undo_push_item_visibility (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_item_visibility (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpItem *item);
|
GimpItem *item);
|
||||||
gboolean gimp_image_undo_push_item_linked (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_item_linked (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpItem *item);
|
GimpItem *item);
|
||||||
|
|
||||||
|
|
||||||
/* layer undos */
|
/* layer undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_layer_add (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_add (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer,
|
GimpLayer *layer,
|
||||||
gint prev_position,
|
gint prev_position,
|
||||||
GimpLayer *prev_layer);
|
GimpLayer *prev_layer);
|
||||||
gboolean gimp_image_undo_push_layer_remove (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_remove (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer,
|
GimpLayer *layer,
|
||||||
gint prev_position,
|
gint prev_position,
|
||||||
GimpLayer *prev_layer);
|
GimpLayer *prev_layer);
|
||||||
gboolean gimp_image_undo_push_layer_reposition (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_reposition (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer);
|
GimpLayer *layer);
|
||||||
gboolean gimp_image_undo_push_layer_mode (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_mode (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer);
|
GimpLayer *layer);
|
||||||
gboolean gimp_image_undo_push_layer_opacity (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_opacity (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer);
|
GimpLayer *layer);
|
||||||
gboolean gimp_image_undo_push_layer_lock_alpha (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_lock_alpha (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer);
|
GimpLayer *layer);
|
||||||
|
|
||||||
|
|
||||||
/* text layer undos */
|
/* text layer undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_text_layer (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_text_layer (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpTextLayer *layer,
|
GimpTextLayer *layer,
|
||||||
const GParamSpec *pspec);
|
const GParamSpec *pspec);
|
||||||
gboolean gimp_image_undo_push_text_layer_modified (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_text_layer_modified (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpTextLayer *layer);
|
GimpTextLayer *layer);
|
||||||
|
|
||||||
|
|
||||||
/* layer mask undos */
|
/* layer mask undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_layer_mask_add (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_mask_add (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer,
|
GimpLayer *layer,
|
||||||
GimpLayerMask *mask);
|
GimpLayerMask *mask);
|
||||||
gboolean gimp_image_undo_push_layer_mask_remove (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_mask_remove (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *layer,
|
GimpLayer *layer,
|
||||||
GimpLayerMask *mask);
|
GimpLayerMask *mask);
|
||||||
gboolean gimp_image_undo_push_layer_mask_apply (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_mask_apply (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayerMask *mask);
|
GimpLayerMask *mask);
|
||||||
gboolean gimp_image_undo_push_layer_mask_show (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_layer_mask_show (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayerMask *mask);
|
GimpLayerMask *mask);
|
||||||
|
|
||||||
|
|
||||||
/* channel undos */
|
/* channel undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_channel_add (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_channel_add (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpChannel *channel,
|
GimpChannel *channel,
|
||||||
gint prev_position,
|
gint prev_position,
|
||||||
GimpChannel *prev_channel);
|
GimpChannel *prev_channel);
|
||||||
gboolean gimp_image_undo_push_channel_remove (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_channel_remove (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpChannel *channel,
|
GimpChannel *channel,
|
||||||
gint prev_position,
|
gint prev_position,
|
||||||
GimpChannel *prev_channel);
|
GimpChannel *prev_channel);
|
||||||
gboolean gimp_image_undo_push_channel_reposition (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_channel_reposition (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpChannel *channel);
|
GimpChannel *channel);
|
||||||
gboolean gimp_image_undo_push_channel_color (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_channel_color (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpChannel *channel);
|
GimpChannel *channel);
|
||||||
|
|
||||||
|
|
||||||
/* vectors undos */
|
/* vectors undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_vectors_add (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_vectors_add (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpVectors *vectors,
|
GimpVectors *vectors,
|
||||||
gint prev_position,
|
gint prev_position,
|
||||||
GimpVectors *prev_vectors);
|
GimpVectors *prev_vectors);
|
||||||
gboolean gimp_image_undo_push_vectors_remove (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_vectors_remove (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpVectors *channel,
|
GimpVectors *channel,
|
||||||
gint prev_position,
|
gint prev_position,
|
||||||
GimpVectors *prev_vectors);
|
GimpVectors *prev_vectors);
|
||||||
gboolean gimp_image_undo_push_vectors_mod (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_vectors_mod (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpVectors *vectors);
|
GimpVectors *vectors);
|
||||||
gboolean gimp_image_undo_push_vectors_reposition (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_vectors_reposition (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpVectors *vectors);
|
GimpVectors *vectors);
|
||||||
|
|
||||||
|
|
||||||
/* floating selection undos */
|
/* floating selection undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_fs_to_layer (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_fs_to_layer (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *floating_layer,
|
GimpLayer *floating_layer,
|
||||||
GimpDrawable *drawable);
|
GimpDrawable *drawable);
|
||||||
gboolean gimp_image_undo_push_fs_rigor (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_fs_rigor (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *floating_layer);
|
GimpLayer *floating_layer);
|
||||||
gboolean gimp_image_undo_push_fs_relax (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_fs_relax (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpLayer *floating_layer);
|
GimpLayer *floating_layer);
|
||||||
|
|
||||||
|
|
||||||
/* parasite undos */
|
/* parasite undos */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_image_parasite (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_parasite (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
const GimpParasite *parasite);
|
const GimpParasite *parasite);
|
||||||
gboolean gimp_image_undo_push_image_parasite_remove (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_image_parasite_remove (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
const gchar *name);
|
const gchar *name);
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_item_parasite (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_item_parasite (GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpItem *item,
|
GimpItem *item,
|
||||||
const GimpParasite *parasite);
|
const GimpParasite *parasite);
|
||||||
gboolean gimp_image_undo_push_item_parasite_remove (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_item_parasite_remove(GimpImage *image,
|
||||||
const gchar *undo_desc,
|
const gchar *undo_desc,
|
||||||
GimpItem *item,
|
GimpItem *item,
|
||||||
const gchar *name);
|
const gchar *name);
|
||||||
@ -210,7 +210,7 @@ gboolean gimp_image_undo_push_item_parasite_remove (GimpImage *image,
|
|||||||
|
|
||||||
/* EEK undo */
|
/* EEK undo */
|
||||||
|
|
||||||
gboolean gimp_image_undo_push_cantundo (GimpImage *image,
|
GimpUndo * gimp_image_undo_push_cantundo (GimpImage *image,
|
||||||
const gchar *undo_desc);
|
const gchar *undo_desc);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user