gimp r27690 - in trunk: . app/core
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27690 - in trunk: . app/core
- Date: Wed, 19 Nov 2008 23:39:28 +0000 (UTC)
Author: mitch
Date: Wed Nov 19 23:39:28 2008
New Revision: 27690
URL: http://svn.gnome.org/viewvc/gimp?rev=27690&view=rev
Log:
2008-11-20 Michael Natterer <mitch gimp org>
* app/core/gimpundo.h (struct GimpUndoAccumulator): remove members
"quick_mask_changed" and "alpha_changed" (the former was unused
and the latter is entirely handled by the image's flush
accumulator now.
* app/core/gimpimage-undo.c
* app/core/gimplayerundo.c: changed accordingly.
Modified:
trunk/ChangeLog
trunk/app/core/gimpimage-undo.c
trunk/app/core/gimplayerundo.c
trunk/app/core/gimpundo.h
Modified: trunk/app/core/gimpimage-undo.c
==============================================================================
--- trunk/app/core/gimpimage-undo.c (original)
+++ trunk/app/core/gimpimage-undo.c Wed Nov 19 23:39:28 2008
@@ -393,12 +393,6 @@
if (accum.unit_changed)
gimp_image_unit_changed (image);
- if (accum.quick_mask_changed)
- gimp_image_quick_mask_changed (image);
-
- if (accum.alpha_changed)
- gimp_image_alpha_changed (image);
-
/* let others know that we just popped an action */
gimp_image_undo_event (image,
(undo_mode == GIMP_UNDO_MODE_UNDO) ?
Modified: trunk/app/core/gimplayerundo.c
==============================================================================
--- trunk/app/core/gimplayerundo.c (original)
+++ trunk/app/core/gimplayerundo.c Wed Nov 19 23:39:28 2008
@@ -178,12 +178,9 @@
{
GimpLayerUndo *layer_undo = GIMP_LAYER_UNDO (undo);
GimpLayer *layer = GIMP_LAYER (GIMP_ITEM_UNDO (undo)->item);
- gboolean old_has_alpha;
GIMP_UNDO_CLASS (parent_class)->pop (undo, undo_mode, accum);
- old_has_alpha = gimp_image_has_alpha (undo->image);
-
if ((undo_mode == GIMP_UNDO_MODE_UNDO &&
undo->undo_type == GIMP_UNDO_LAYER_ADD) ||
(undo_mode == GIMP_UNDO_MODE_REDO &&
@@ -217,7 +214,4 @@
GIMP_ITEM (mask)->removed = FALSE;
}
}
-
- if (old_has_alpha != gimp_image_has_alpha (undo->image))
- accum->alpha_changed = TRUE;
}
Modified: trunk/app/core/gimpundo.h
==============================================================================
--- trunk/app/core/gimpundo.h (original)
+++ trunk/app/core/gimpundo.h Wed Nov 19 23:39:28 2008
@@ -36,10 +36,6 @@
gboolean resolution_changed;
gboolean unit_changed;
-
- gboolean quick_mask_changed;
-
- gboolean alpha_changed;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]