[gimp] app: add gimp_drawable_get_filters() which returns the filter stack
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add gimp_drawable_get_filters() which returns the filter stack
- Date: Tue, 16 Apr 2013 18:21:26 +0000 (UTC)
commit 2538d6fea70e8ab5f180b39e53b7dcfcd0bf658f
Author: Michael Natterer <mitch gimp org>
Date: Tue Apr 16 20:20:00 2013 +0200
app: add gimp_drawable_get_filters() which returns the filter stack
app/core/gimpdrawable-filter.c | 8 ++++++++
app/core/gimpdrawable-filter.h | 26 ++++++++++++++------------
2 files changed, 22 insertions(+), 12 deletions(-)
---
diff --git a/app/core/gimpdrawable-filter.c b/app/core/gimpdrawable-filter.c
index 39fd1bb..fae6267 100644
--- a/app/core/gimpdrawable-filter.c
+++ b/app/core/gimpdrawable-filter.c
@@ -33,6 +33,14 @@
#include "gimpprogress.h"
+GimpContainer *
+gimp_drawable_get_filters (GimpDrawable *drawable)
+{
+ g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
+
+ return drawable->private->filter_stack;
+}
+
void
gimp_drawable_add_filter (GimpDrawable *drawable,
GimpFilter *filter)
diff --git a/app/core/gimpdrawable-filter.h b/app/core/gimpdrawable-filter.h
index 8401c07..0fe5f77 100644
--- a/app/core/gimpdrawable-filter.h
+++ b/app/core/gimpdrawable-filter.h
@@ -21,18 +21,20 @@
#define __GIMP_DRAWABLE_FILTER_H__
-void gimp_drawable_add_filter (GimpDrawable *drawable,
- GimpFilter *filter);
-void gimp_drawable_remove_filter (GimpDrawable *drawable,
- GimpFilter *filter);
-
-gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
- GimpFilter *filter);
-
-void gimp_drawable_merge_filter (GimpDrawable *drawable,
- GimpFilter *filter,
- GimpProgress *progress,
- const gchar *undo_desc);
+GimpContainer * gimp_drawable_get_filters (GimpDrawable *drawable);
+
+void gimp_drawable_add_filter (GimpDrawable *drawable,
+ GimpFilter *filter);
+void gimp_drawable_remove_filter (GimpDrawable *drawable,
+ GimpFilter *filter);
+
+gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
+ GimpFilter *filter);
+
+void gimp_drawable_merge_filter (GimpDrawable *drawable,
+ GimpFilter *filter,
+ GimpProgress *progress,
+ const gchar *undo_desc);
#endif /* __GIMP_DRAWABLE_FILTER_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]