gimp r27569 - in trunk: . app/core
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27569 - in trunk: . app/core
- Date: Thu, 6 Nov 2008 19:44:51 +0000 (UTC)
Author: mitch
Date: Thu Nov 6 19:44:51 2008
New Revision: 27569
URL: http://svn.gnome.org/viewvc/gimp?rev=27569&view=rev
Log:
2008-11-06 Michael Natterer <mitch gimp org>
* app/core/gimpdrawablestack.[ch]: move the invalidate_previews()
API from here...
* app/core/gimpitemstack.[ch]: ...to here.
* app/core/gimpimage.c: changed accordingly.
Modified:
trunk/ChangeLog
trunk/app/core/gimpdrawablestack.c
trunk/app/core/gimpdrawablestack.h
trunk/app/core/gimpimage.c
trunk/app/core/gimpitemstack.c
trunk/app/core/gimpitemstack.h
Modified: trunk/app/core/gimpdrawablestack.c
==============================================================================
--- trunk/app/core/gimpdrawablestack.c (original)
+++ trunk/app/core/gimpdrawablestack.c Thu Nov 6 19:44:51 2008
@@ -281,16 +281,6 @@
return stack->graph;
}
-void
-gimp_drawable_stack_invalidate_previews (GimpDrawableStack *stack)
-{
- g_return_if_fail (GIMP_IS_DRAWABLE_STACK (stack));
-
- gimp_container_foreach (GIMP_CONTAINER (stack),
- (GFunc) gimp_viewable_invalidate_preview,
- NULL);
-}
-
/* private functions */
Modified: trunk/app/core/gimpdrawablestack.h
==============================================================================
--- trunk/app/core/gimpdrawablestack.h (original)
+++ trunk/app/core/gimpdrawablestack.h Thu Nov 6 19:44:51 2008
@@ -53,12 +53,10 @@
};
-GType gimp_drawable_stack_get_type (void) G_GNUC_CONST;
-GimpContainer * gimp_drawable_stack_new (GType drawable_type);
+GType gimp_drawable_stack_get_type (void) G_GNUC_CONST;
+GimpContainer * gimp_drawable_stack_new (GType drawable_type);
-GeglNode * gimp_drawable_stack_get_graph (GimpDrawableStack *stack);
-
-void gimp_drawable_stack_invalidate_previews (GimpDrawableStack *stack);
+GeglNode * gimp_drawable_stack_get_graph (GimpDrawableStack *stack);
#endif /* __GIMP_DRAWABLE_STACK_H__ */
Modified: trunk/app/core/gimpimage.c
==============================================================================
--- trunk/app/core/gimpimage.c (original)
+++ trunk/app/core/gimpimage.c Thu Nov 6 19:44:51 2008
@@ -736,10 +736,10 @@
image);
g_signal_connect_object (config, "notify::transparency-type",
- G_CALLBACK (gimp_drawable_stack_invalidate_previews),
+ G_CALLBACK (gimp_item_stack_invalidate_previews),
image->layers, G_CONNECT_SWAPPED);
g_signal_connect_object (config, "notify::transparency-size",
- G_CALLBACK (gimp_drawable_stack_invalidate_previews),
+ G_CALLBACK (gimp_item_stack_invalidate_previews),
image->layers, G_CONNECT_SWAPPED);
g_signal_connect_object (config, "notify::layer-previews",
G_CALLBACK (gimp_viewable_size_changed),
@@ -1136,7 +1136,7 @@
gimp_image_get_width (image),
gimp_image_get_height (image));
- gimp_drawable_stack_invalidate_previews (GIMP_DRAWABLE_STACK (image->layers));
+ gimp_item_stack_invalidate_previews (GIMP_ITEM_STACK (image->layers));
}
}
@@ -3792,6 +3792,6 @@
{
g_return_if_fail (GIMP_IS_IMAGE (image));
- gimp_drawable_stack_invalidate_previews (GIMP_DRAWABLE_STACK (image->layers));
- gimp_drawable_stack_invalidate_previews (GIMP_DRAWABLE_STACK (image->channels));
+ gimp_item_stack_invalidate_previews (GIMP_ITEM_STACK (image->layers));
+ gimp_item_stack_invalidate_previews (GIMP_ITEM_STACK (image->channels));
}
Modified: trunk/app/core/gimpitemstack.c
==============================================================================
--- trunk/app/core/gimpitemstack.c (original)
+++ trunk/app/core/gimpitemstack.c Thu Nov 6 19:44:51 2008
@@ -113,3 +113,13 @@
"unique-names", TRUE,
NULL);
}
+
+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,
+ NULL);
+}
Modified: trunk/app/core/gimpitemstack.h
==============================================================================
--- trunk/app/core/gimpitemstack.h (original)
+++ trunk/app/core/gimpitemstack.h Thu Nov 6 19:44:51 2008
@@ -45,8 +45,10 @@
};
-GType gimp_item_stack_get_type (void) G_GNUC_CONST;
-GimpContainer * gimp_item_stack_new (GType item_type);
+GType gimp_item_stack_get_type (void) G_GNUC_CONST;
+GimpContainer * gimp_item_stack_new (GType item_type);
+
+void gimp_item_stack_invalidate_previews (GimpItemStack *stack);
#endif /* __GIMP_ITEM_STACK_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]