app: add gimp_drawable_get_filters() which returns the filter stack

This commit is contained in:
Michael Natterer 2013-04-16 20:20:00 +02:00
parent b109e05806
commit 2538d6fea7
2 changed files with 20 additions and 10 deletions

View File

@ -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)

View File

@ -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);
GimpContainer * gimp_drawable_get_filters (GimpDrawable *drawable);
gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
GimpFilter *filter);
void gimp_drawable_add_filter (GimpDrawable *drawable,
GimpFilter *filter);
void gimp_drawable_remove_filter (GimpDrawable *drawable,
GimpFilter *filter);
void gimp_drawable_merge_filter (GimpDrawable *drawable,
GimpFilter *filter,
GimpProgress *progress,
const gchar *undo_desc);
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__ */