[gimp] app: don't disable perspective clone on indexed drawables any longer



commit 46ce18f994dc354fa9e274bdad8d76d50cc6c9be
Author: Michael Natterer <mitch gimp org>
Date:   Sat Apr 28 11:40:06 2012 +0200

    app: don't disable perspective clone on indexed drawables any longer

 app/paint/gimpperspectiveclone.c |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/app/paint/gimpperspectiveclone.c b/app/paint/gimpperspectiveclone.c
index 9f949b5..e0321c0 100644
--- a/app/paint/gimpperspectiveclone.c
+++ b/app/paint/gimpperspectiveclone.c
@@ -44,11 +44,6 @@
 #include "gimp-intl.h"
 
 
-static gboolean     gimp_perspective_clone_start      (GimpPaintCore    *paint_core,
-                                                       GimpDrawable     *drawable,
-                                                       GimpPaintOptions *paint_options,
-                                                       const GimpCoords *coords,
-                                                       GError          **error);
 static void         gimp_perspective_clone_paint      (GimpPaintCore    *paint_core,
                                                        GimpDrawable     *drawable,
                                                        GimpPaintOptions *paint_options,
@@ -99,7 +94,6 @@ gimp_perspective_clone_class_init (GimpPerspectiveCloneClass *klass)
   GimpPaintCoreClass  *paint_core_class  = GIMP_PAINT_CORE_CLASS (klass);
   GimpSourceCoreClass *source_core_class = GIMP_SOURCE_CORE_CLASS (klass);
 
-  paint_core_class->start       = gimp_perspective_clone_start;
   paint_core_class->paint       = gimp_perspective_clone_paint;
 
   source_core_class->get_source = gimp_perspective_clone_get_source;
@@ -118,33 +112,6 @@ gimp_perspective_clone_init (GimpPerspectiveClone *clone)
   gimp_matrix3_identity (&clone->transform_inv);
 }
 
-static gboolean
-gimp_perspective_clone_start (GimpPaintCore     *paint_core,
-                              GimpDrawable      *drawable,
-                              GimpPaintOptions  *paint_options,
-                              const GimpCoords  *coords,
-                              GError           **error)
-{
-  GimpSourceCore *source_core = GIMP_SOURCE_CORE (paint_core);
-
-  if (! GIMP_PAINT_CORE_CLASS (parent_class)->start (paint_core, drawable,
-                                                     paint_options, coords,
-                                                     error))
-    {
-      return FALSE;
-    }
-
-  if (! source_core->set_source && gimp_drawable_is_indexed (drawable))
-    {
-      g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
-			   _("Perspective Clone does not operate on "
-			     "indexed layers."));
-      return FALSE;
-    }
-
-  return TRUE;
-}
-
 static void
 gimp_perspective_clone_paint (GimpPaintCore    *paint_core,
                               GimpDrawable     *drawable,



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