core: Rename gimp_drawable_has_filters ()...
...to gimp_drawable_has_visible_filters (). With NDE filters, it's now possible to have filters that are not active but still attached to a layer. This patch renames the API to prevent confusion as seen in prior commits.
This commit is contained in:
parent
c19f6509ea
commit
af8cc019e3
5 changed files with 23 additions and 23 deletions
|
|
@ -58,7 +58,7 @@ gimp_drawable_get_filters (GimpDrawable *drawable)
|
|||
}
|
||||
|
||||
gboolean
|
||||
gimp_drawable_has_filters (GimpDrawable *drawable)
|
||||
gimp_drawable_has_visible_filters (GimpDrawable *drawable)
|
||||
{
|
||||
GList *list;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,29 +21,29 @@
|
|||
#define __GIMP_DRAWABLE_FILTERS_H__
|
||||
|
||||
|
||||
GimpContainer * gimp_drawable_get_filters (GimpDrawable *drawable);
|
||||
GimpContainer * gimp_drawable_get_filters (GimpDrawable *drawable);
|
||||
|
||||
gboolean gimp_drawable_has_filters (GimpDrawable *drawable);
|
||||
gboolean gimp_drawable_has_visible_filters (GimpDrawable *drawable);
|
||||
|
||||
void gimp_drawable_add_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_remove_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_clear_filters (GimpDrawable *drawable);
|
||||
void gimp_drawable_add_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_remove_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_clear_filters (GimpDrawable *drawable);
|
||||
|
||||
void gimp_drawable_merge_filters (GimpDrawable *drawable);
|
||||
void gimp_drawable_merge_filters (GimpDrawable *drawable);
|
||||
|
||||
gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
|
||||
gboolean gimp_drawable_merge_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter,
|
||||
GimpProgress *progress,
|
||||
const gchar *undo_desc,
|
||||
const Babl *format,
|
||||
gboolean clip,
|
||||
gboolean cancellable,
|
||||
gboolean update);
|
||||
gboolean gimp_drawable_merge_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter,
|
||||
GimpProgress *progress,
|
||||
const gchar *undo_desc,
|
||||
const Babl *format,
|
||||
gboolean clip,
|
||||
gboolean cancellable,
|
||||
gboolean update);
|
||||
|
||||
|
||||
#endif /* __GIMP_DRAWABLE_FILTERS_H__ */
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ gimp_drawable_calculate_histogram_internal (GimpDrawable *drawable,
|
|||
GeglBuffer *buffer = gimp_drawable_get_buffer (drawable);
|
||||
GimpProjectable *projectable = NULL;
|
||||
|
||||
if (with_filters && gimp_drawable_has_filters (drawable))
|
||||
if (with_filters && gimp_drawable_has_visible_filters (drawable))
|
||||
{
|
||||
GimpTileHandlerValidate *validate;
|
||||
GeglNode *node;
|
||||
|
|
|
|||
|
|
@ -1548,7 +1548,7 @@ gimp_drawable_get_buffer_with_effects (GimpDrawable *drawable)
|
|||
|
||||
if (drawable->private->paint_count == 0)
|
||||
{
|
||||
if (gimp_drawable_has_filters (drawable))
|
||||
if (gimp_drawable_has_visible_filters (drawable))
|
||||
{
|
||||
GeglNode *source = NULL;
|
||||
GeglBuffer *buffer;
|
||||
|
|
@ -2076,7 +2076,7 @@ gimp_drawable_end_paint (GimpDrawable *drawable)
|
|||
drawable->private->paint_count--;
|
||||
|
||||
/* Refresh filters after painting */
|
||||
if (gimp_drawable_has_filters (drawable) &&
|
||||
if (gimp_drawable_has_visible_filters (drawable) &&
|
||||
drawable->private->paint_count == 0)
|
||||
{
|
||||
gimp_item_set_visible (GIMP_ITEM (drawable), FALSE, FALSE);
|
||||
|
|
|
|||
|
|
@ -2359,7 +2359,7 @@ gimp_group_layer_proj_update (GimpProjection *proj,
|
|||
* negatively impacts the performance of the warp tool, which does perform
|
||||
* accurate drawable updates while using a filter.
|
||||
*/
|
||||
if (gimp_drawable_has_filters (GIMP_DRAWABLE (group)))
|
||||
if (gimp_drawable_has_visible_filters (GIMP_DRAWABLE (group)))
|
||||
{
|
||||
width = -1;
|
||||
height = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue