[gimp] app: "disable" SIOX but in an evil way that keeps the tool building
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: "disable" SIOX but in an evil way that keeps the tool building
- Date: Sun, 20 May 2012 19:06:16 +0000 (UTC)
commit 236ea4ddfe6d152418a50c7fc05c935ff17bf199
Author: Michael Natterer <mitch gimp org>
Date: Sun May 20 21:05:17 2012 +0200
app: "disable" SIOX but in an evil way that keeps the tool building
Will probably crash hilariously when using it.
app/base/siox.c | 4 ++++
app/base/siox.h | 4 ++++
app/core/gimpdrawable-foreground-extract.c | 12 ++++++++++++
3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/app/base/siox.c b/app/base/siox.c
index 24e8964..98ced84 100644
--- a/app/base/siox.c
+++ b/app/base/siox.c
@@ -33,6 +33,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#if 0
+
#include "config.h"
#include <glib-object.h>
@@ -1415,3 +1417,5 @@ siox_done (SioxState *state)
g_printerr ("siox.c: siox_done()\n");
#endif
}
+
+#endif
diff --git a/app/base/siox.h b/app/base/siox.h
index 18d9f99..3d6502d 100644
--- a/app/base/siox.h
+++ b/app/base/siox.h
@@ -41,6 +41,8 @@
#define SIOX_DEFAULT_SENSITIVITY_A 1.28
#define SIOX_DEFAULT_SENSITIVITY_B 2.56
+#if 0
+
/* FIXME: turn this into an enum */
#define SIOX_DRB_ADD 0
#define SIOX_DRB_SUBTRACT 1
@@ -79,5 +81,7 @@ void siox_drb (SioxState *state,
gint brush_mode,
gfloat threshold);
+#endif
+
#endif /* __SIOX_H__ */
diff --git a/app/core/gimpdrawable-foreground-extract.c b/app/core/gimpdrawable-foreground-extract.c
index 6c74679..83b5061 100644
--- a/app/core/gimpdrawable-foreground-extract.c
+++ b/app/core/gimpdrawable-foreground-extract.c
@@ -23,8 +23,10 @@
#include "core-types.h"
+#if 0
#include "base/siox.h"
#include "base/tile-manager.h"
+#endif
#include "gegl/gimp-gegl-utils.h"
@@ -45,6 +47,7 @@ gimp_drawable_foreground_extract (GimpDrawable *drawable,
GimpDrawable *mask,
GimpProgress *progress)
{
+#if 0
SioxState *state;
const gdouble sensitivity[3] = { SIOX_DEFAULT_SENSITIVITY_L,
SIOX_DEFAULT_SENSITIVITY_A,
@@ -70,6 +73,7 @@ gimp_drawable_foreground_extract (GimpDrawable *drawable,
gimp_drawable_foreground_extract_siox_done (state);
}
+#endif
}
SioxState *
@@ -79,6 +83,7 @@ gimp_drawable_foreground_extract_siox_init (GimpDrawable *drawable,
gint width,
gint height)
{
+#if 0
GeglBuffer *buffer;
const guchar *colormap = NULL;
gboolean intersect;
@@ -112,6 +117,9 @@ gimp_drawable_foreground_extract_siox_init (GimpDrawable *drawable,
return siox_init (gimp_gegl_buffer_get_tiles (buffer), colormap,
offset_x, offset_y,
x, y, width, height);
+#endif
+
+ return NULL;
}
void
@@ -123,6 +131,7 @@ gimp_drawable_foreground_extract_siox (GimpDrawable *mask,
gboolean multiblob,
GimpProgress *progress)
{
+#if 0
GeglBuffer *buffer;
gint x1, y1;
gint x2, y2;
@@ -162,12 +171,15 @@ gimp_drawable_foreground_extract_siox (GimpDrawable *mask,
gimp_progress_end (progress);
gimp_drawable_update (mask, x1, y1, x2, y2);
+#endif
}
void
gimp_drawable_foreground_extract_siox_done (SioxState *state)
{
+#if 0
g_return_if_fail (state != NULL);
siox_done (state);
+#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]