[gimp] app: remove gimp_filter_tool_preview()



commit 67e192e77b8998450e28deec39cef2354293fd5c
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 10 15:57:49 2016 +0200

    app: remove gimp_filter_tool_preview()
    
    Its remaining two callers are more obvious when doing a simple call to
    gimp_image_map_apply() manually.

 app/tools/gimpfiltertool.c |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/app/tools/gimpfiltertool.c b/app/tools/gimpfiltertool.c
index f9952ed..7b2f6e7 100644
--- a/app/tools/gimpfiltertool.c
+++ b/app/tools/gimpfiltertool.c
@@ -132,7 +132,6 @@ static void      gimp_filter_tool_dialog_unmap   (GtkWidget           *dialog,
                                                   GimpFilterTool      *filter_tool);
 static void      gimp_filter_tool_reset          (GimpFilterTool      *filter_tool);
 static void      gimp_filter_tool_create_map     (GimpFilterTool      *filter_tool);
-static void      gimp_filter_tool_preview        (GimpFilterTool      *filter_tool);
 
 static void      gimp_filter_tool_flush          (GimpImageMap        *image_map,
                                                   GimpFilterTool      *filter_tool);
@@ -976,19 +975,8 @@ gimp_filter_tool_create_map (GimpFilterTool *filter_tool)
                     G_CALLBACK (gimp_filter_tool_flush),
                     filter_tool);
 
-  gimp_filter_tool_preview (filter_tool);
-}
-
-static void
-gimp_filter_tool_preview (GimpFilterTool *filter_tool)
-{
-  GimpTool          *tool    = GIMP_TOOL (filter_tool);
-  GimpFilterOptions *options = GIMP_FILTER_TOOL_GET_OPTIONS (tool);
-
-  if (filter_tool->image_map && options->preview)
-    {
-      gimp_image_map_apply (filter_tool->image_map, NULL);
-    }
+  if (options->preview)
+    gimp_image_map_apply (filter_tool->image_map, NULL);
 }
 
 static void
@@ -1006,7 +994,10 @@ gimp_filter_tool_config_notify (GObject          *object,
                                 const GParamSpec *pspec,
                                 GimpFilterTool   *filter_tool)
 {
-  gimp_filter_tool_preview (filter_tool);
+  GimpFilterOptions *options = GIMP_FILTER_TOOL_GET_OPTIONS (filter_tool);
+
+  if (filter_tool->image_map && options->preview)
+    gimp_image_map_apply (filter_tool->image_map, NULL);
 }
 
 static void


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