summaryrefslogtreecommitdiffstats
path: root/src/sp-feconvolvematrix.cpp
diff options
context:
space:
mode:
authorHugo Rodrigues <me@hugorodrigues.com>2006-08-14 18:54:26 +0000
committerhaa_rodrigues <haa_rodrigues@users.sourceforge.net>2006-08-14 18:54:26 +0000
commitf8c49ad587d2fbb058a360b677c57692b45aaa08 (patch)
tree11948ac4cd95d72ae09c1911db7cceb6643b0399 /src/sp-feconvolvematrix.cpp
parentinform user of progress during long-running simplify operations (diff)
downloadinkscape-f8c49ad587d2fbb058a360b677c57692b45aaa08.tar.gz
inkscape-f8c49ad587d2fbb058a360b677c57692b45aaa08.zip
Work on filters. spFilterPrimitive structure added. Blur slider updated. Fixed sp-object-repr.cpp typos
(bzr r1598)
Diffstat (limited to 'src/sp-feconvolvematrix.cpp')
-rw-r--r--src/sp-feconvolvematrix.cpp29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/sp-feconvolvematrix.cpp b/src/sp-feconvolvematrix.cpp
index 0db036742..f7c50971b 100644
--- a/src/sp-feconvolvematrix.cpp
+++ b/src/sp-feconvolvematrix.cpp
@@ -22,19 +22,6 @@
#include "sp-feconvolvematrix.h"
#include "xml/repr.h"
-//#define SP_MACROS_SILENT
-//#include "macros.h"
-
-#define DEBUG_FECONVOLVEMATRIX
-#ifdef DEBUG_FECONVOLVEMATRIX
-# define debug(f, a...) { g_print("%s(%d) %s:", \
- __FILE__,__LINE__,__FUNCTION__); \
- g_print(f, ## a); \
- g_print("\n"); \
- }
-#else
-# define debug(f, a...) /**/
-#endif
/* FeConvolveMatrix base class */
@@ -47,7 +34,7 @@ static void sp_feConvolveMatrix_set(SPObject *object, unsigned int key, gchar co
static void sp_feConvolveMatrix_update(SPObject *object, SPCtx *ctx, guint flags);
static Inkscape::XML::Node *sp_feConvolveMatrix_write(SPObject *object, Inkscape::XML::Node *repr, guint flags);
-static SPObjectClass *feConvolveMatrix_parent_class;
+static SPFilterPrimitiveClass *feConvolveMatrix_parent_class;
GType
sp_feConvolveMatrix_get_type()
@@ -65,7 +52,7 @@ sp_feConvolveMatrix_get_type()
(GInstanceInitFunc) sp_feConvolveMatrix_init,
NULL, /* value_table */
};
- feConvolveMatrix_type = g_type_register_static(SP_TYPE_OBJECT, "SPFeConvolveMatrix", &feConvolveMatrix_info, (GTypeFlags)0);
+ feConvolveMatrix_type = g_type_register_static(SP_TYPE_FILTER_PRIMITIVE, "SPFeConvolveMatrix", &feConvolveMatrix_info, (GTypeFlags)0);
}
return feConvolveMatrix_type;
}
@@ -75,7 +62,7 @@ sp_feConvolveMatrix_class_init(SPFeConvolveMatrixClass *klass)
{
SPObjectClass *sp_object_class = (SPObjectClass *)klass;
- feConvolveMatrix_parent_class = (SPObjectClass*)g_type_class_peek_parent(klass);
+ feConvolveMatrix_parent_class = (SPFilterPrimitiveClass*)g_type_class_peek_parent(klass);
sp_object_class->build = sp_feConvolveMatrix_build;
sp_object_class->release = sp_feConvolveMatrix_release;
@@ -87,7 +74,6 @@ sp_feConvolveMatrix_class_init(SPFeConvolveMatrixClass *klass)
static void
sp_feConvolveMatrix_init(SPFeConvolveMatrix *feConvolveMatrix)
{
- debug("0x%p",feConvolveMatrix);
}
/**
@@ -98,7 +84,6 @@ sp_feConvolveMatrix_init(SPFeConvolveMatrix *feConvolveMatrix)
static void
sp_feConvolveMatrix_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
{
- debug("0x%p",object);
if (((SPObjectClass *) feConvolveMatrix_parent_class)->build) {
((SPObjectClass *) feConvolveMatrix_parent_class)->build(object, document, repr);
}
@@ -112,8 +97,6 @@ sp_feConvolveMatrix_build(SPObject *object, SPDocument *document, Inkscape::XML:
static void
sp_feConvolveMatrix_release(SPObject *object)
{
- debug("0x%p",object);
-
if (((SPObjectClass *) feConvolveMatrix_parent_class)->release)
((SPObjectClass *) feConvolveMatrix_parent_class)->release(object);
}
@@ -124,8 +107,6 @@ sp_feConvolveMatrix_release(SPObject *object)
static void
sp_feConvolveMatrix_set(SPObject *object, unsigned int key, gchar const *value)
{
- debug("0x%p %s(%u): '%s'",object,
- sp_attribute_name(key),key,value);
SPFeConvolveMatrix *feConvolveMatrix = SP_FECONVOLVEMATRIX(object);
switch(key) {
@@ -144,8 +125,6 @@ sp_feConvolveMatrix_set(SPObject *object, unsigned int key, gchar const *value)
static void
sp_feConvolveMatrix_update(SPObject *object, SPCtx *ctx, guint flags)
{
- debug("0x%p",object);
-
if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG |
SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
@@ -164,8 +143,6 @@ sp_feConvolveMatrix_update(SPObject *object, SPCtx *ctx, guint flags)
static Inkscape::XML::Node *
sp_feConvolveMatrix_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
{
- debug("0x%p",object);
-
// Inkscape-only object, not copied during an "plain SVG" dump:
if (flags & SP_OBJECT_WRITE_EXT) {
if (repr) {