[gimp] Invalidate all the item stack's previews recursively
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Invalidate all the item stack's previews recursively
- Date: Sat, 1 Aug 2009 17:24:42 +0000 (UTC)
commit ad66250f90f27b4e7bb0023df7a501cd1bb0f246
Author: Michael Natterer <mitch gimp org>
Date: Sat Aug 1 19:23:59 2009 +0200
Invalidate all the item stack's previews recursively
app/core/gimpitemstack.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpitemstack.c b/app/core/gimpitemstack.c
index 34f6e0b..9363417 100644
--- a/app/core/gimpitemstack.c
+++ b/app/core/gimpitemstack.c
@@ -114,12 +114,23 @@ gimp_item_stack_new (GType item_type)
NULL);
}
+static void
+gimp_item_stack_invalidate_preview (GimpViewable *viewable)
+{
+ GimpContainer *children = gimp_viewable_get_children (viewable);
+
+ if (children)
+ gimp_item_stack_invalidate_previews (GIMP_ITEM_STACK (children));
+
+ gimp_viewable_invalidate_preview (viewable);
+}
+
void
gimp_item_stack_invalidate_previews (GimpItemStack *stack)
{
g_return_if_fail (GIMP_IS_ITEM_STACK (stack));
gimp_container_foreach (GIMP_CONTAINER (stack),
- (GFunc) gimp_viewable_invalidate_preview,
+ (GFunc) gimp_item_stack_invalidate_preview,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]