[gimp/warp-wip-rebased: 36/56] warp-tool: remove unneeded options_notify



commit f4281685ba2c70a7db4d5838e5b34337d4e1e3c7
Author: Michael Muré <batolettre gmail com>
Date:   Fri Jul 1 18:06:19 2011 +0200

    warp-tool: remove unneeded options_notify

 app/tools/gimpwarptool.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index 759aca0..94f1a33 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -59,9 +59,6 @@
 static void       gimp_warp_tool_start              (GimpWarpTool          *wt,
                                                      GimpDisplay           *display);
 
-static void       gimp_warp_tool_options_notify     (GimpTool              *tool,
-                                                     GimpToolOptions       *options,
-                                                     const GParamSpec      *pspec);
 static void       gimp_warp_tool_button_press       (GimpTool              *tool,
                                                      const GimpCoords      *coords,
                                                      guint32                time,
@@ -138,7 +135,6 @@ gimp_warp_tool_class_init (GimpWarpToolClass *klass)
   GimpToolClass     *tool_class      = GIMP_TOOL_CLASS (klass);
   GimpDrawToolClass *draw_tool_class = GIMP_DRAW_TOOL_CLASS (klass);
 
-  tool_class->options_notify = gimp_warp_tool_options_notify;
   tool_class->button_press   = gimp_warp_tool_button_press;
   tool_class->button_release = gimp_warp_tool_button_release;
   tool_class->key_press      = gimp_warp_tool_key_press;
@@ -267,27 +263,6 @@ gimp_warp_tool_start (GimpWarpTool *wt,
   gimp_draw_tool_start (GIMP_DRAW_TOOL (wt), display);
 }
 
-static void
-gimp_warp_tool_options_notify (GimpTool         *tool,
-                               GimpToolOptions  *options,
-                               const GParamSpec *pspec)
-{
-  GimpWarpTool *wt = GIMP_WARP_TOOL (tool);
-
-  GIMP_TOOL_CLASS (parent_class)->options_notify (tool, options, pspec);
-
-  if (! tool->display)
-    return;
-
-  gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
-
-  if (strcmp (pspec->name, "foo") == 0)
-    {
-    }
-
-  gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
-}
-
 static gboolean
 gimp_warp_tool_key_press (GimpTool    *tool,
                           GdkEventKey *kevent,


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