diff --git a/src/sp-feflood.cpp b/src/sp-feflood.cpp
index e10c871afd5767461a10f364e3ed44d798c24122..924fb8f648e5c9955135b2000680323c846df5cf 100644 (file)
--- a/src/sp-feflood.cpp
+++ b/src/sp-feflood.cpp
#include "sp-feflood.h"
#include "xml/repr.h"
-//#define SP_MACROS_SILENT
-//#include "macros.h"
-
-#define DEBUG_FEFLOOD
-#ifdef DEBUG_FEFLOOD
-# 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
/* FeFlood base class */
static void sp_feFlood_update(SPObject *object, SPCtx *ctx, guint flags);
static Inkscape::XML::Node *sp_feFlood_write(SPObject *object, Inkscape::XML::Node *repr, guint flags);
-static SPObjectClass *feFlood_parent_class;
+static SPFilterPrimitiveClass *feFlood_parent_class;
GType
sp_feFlood_get_type()
(GInstanceInitFunc) sp_feFlood_init,
NULL, /* value_table */
};
- feFlood_type = g_type_register_static(SP_TYPE_OBJECT, "SPFeFlood", &feFlood_info, (GTypeFlags)0);
+ feFlood_type = g_type_register_static(SP_TYPE_FILTER_PRIMITIVE, "SPFeFlood", &feFlood_info, (GTypeFlags)0);
}
return feFlood_type;
}
{
SPObjectClass *sp_object_class = (SPObjectClass *)klass;
- feFlood_parent_class = (SPObjectClass*)g_type_class_peek_parent(klass);
+ feFlood_parent_class = (SPFilterPrimitiveClass*)g_type_class_peek_parent(klass);
sp_object_class->build = sp_feFlood_build;
sp_object_class->release = sp_feFlood_release;
static void
sp_feFlood_init(SPFeFlood *feFlood)
{
- debug("0x%p",feFlood);
}
/**
static void
sp_feFlood_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
{
- debug("0x%p",object);
if (((SPObjectClass *) feFlood_parent_class)->build) {
((SPObjectClass *) feFlood_parent_class)->build(object, document, repr);
}
static void
sp_feFlood_release(SPObject *object)
{
- debug("0x%p",object);
-
if (((SPObjectClass *) feFlood_parent_class)->release)
((SPObjectClass *) feFlood_parent_class)->release(object);
}
static void
sp_feFlood_set(SPObject *object, unsigned int key, gchar const *value)
{
- debug("0x%p %s(%u): '%s'",object,
- sp_attribute_name(key),key,value);
SPFeFlood *feFlood = SP_FEFLOOD(object);
+ (void)feFlood;
- switch(key) {\r
+ switch(key) {
/*DEAL WITH SETTING ATTRIBUTES HERE*/
default:
if (((SPObjectClass *) feFlood_parent_class)->set)
static void
sp_feFlood_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)) {
static Inkscape::XML::Node *
sp_feFlood_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) {
// is this sane?
repr->mergeFrom(SP_OBJECT_REPR(object), "id");
} else {
- repr = SP_OBJECT_REPR(object)->duplicate();
+ repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME
}
}