[gimp] app: use the newly added drawable filter api to add/remove the fs filter



commit a1ddd7dfda8042173f4ff4598ae007755478a7ae
Author: Michael Natterer <mitch gimp org>
Date:   Fri Apr 12 12:56:01 2013 +0200

    app: use the newly added drawable filter api to add/remove the fs filter

 app/core/gimpdrawable.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index 8862f5a..1aa3b10 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -979,8 +979,7 @@ gimp_drawable_sync_fs_filter (GimpDrawable *drawable,
           drawable->private->fs_filter =
             gimp_drawable_create_fs_filter (drawable, GIMP_DRAWABLE (fs));
 
-          gimp_container_add (drawable->private->filter_stack,
-                              GIMP_OBJECT (drawable->private->fs_filter));
+          gimp_drawable_add_filter (drawable, drawable->private->fs_filter);
 
           g_signal_connect (fs, "notify",
                             G_CALLBACK (gimp_drawable_fs_notify),
@@ -1017,8 +1016,7 @@ gimp_drawable_sync_fs_filter (GimpDrawable *drawable,
                                                 gimp_drawable_fs_notify,
                                                 drawable);
 
-          gimp_container_remove (drawable->private->filter_stack,
-                                 GIMP_OBJECT (drawable->private->fs_filter));
+          gimp_drawable_remove_filter (drawable, drawable->private->fs_filter);
 
           fs_source = gimp_drawable_get_source_node (GIMP_DRAWABLE (fs));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]