summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Corr??a da Silva Sanches <juca@members.fsf.org>2009-08-01 04:01:00 +0000
committerJucaBlues <JucaBlues@users.sourceforge.net>2009-08-01 04:01:00 +0000
commit8ef2626fa8bbdf13da2c9fccd9d7b45e4bb0247a (patch)
tree7d1fefaa0a4daeec5aba972052b290014c9e12be
parentparsing and handling of icc-color in feFlood SVG Filters (diff)
downloadinkscape-8ef2626fa8bbdf13da2c9fccd9d7b45e4bb0247a.tar.gz
inkscape-8ef2626fa8bbdf13da2c9fccd9d7b45e4bb0247a.zip
enabling all icc-color related debug messages
(bzr r8050.1.5)
-rw-r--r--src/color-profile.cpp11
-rw-r--r--src/dropper-context.cpp8
-rw-r--r--src/sp-image.cpp11
-rw-r--r--src/widgets/sp-color-icc-selector.cpp4
4 files changed, 28 insertions, 6 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 20e870242..de9dc6959 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -1,6 +1,6 @@
-//#define DEBUG_LCMS
+#define DEBUG_LCMS
#include <glib/gstdio.h>
#include <sys/fcntl.h>
@@ -36,7 +36,7 @@ static cmsHPROFILE colorprofile_get_proof_profile_handle();
#ifdef DEBUG_LCMS
extern guint update_in_progress;
-#define DEBUG_MESSAGE(key, ...) \
+#define DEBUG_MESSAGE_SCISLAC(key, ...) \
{\
Inkscape::Preferences *prefs = Inkscape::Preferences::get();\
bool dump = prefs->getBool(Glib::ustring("/options/scislac/") + #key);\
@@ -62,6 +62,13 @@ extern guint update_in_progress;
gtk_widget_show_all( dialog );\
}\
}
+
+
+#define DEBUG_MESSAGE(key, ...)\
+{\
+ g_message( __VA_ARGS__ );\
+}
+
#endif // DEBUG_LCMS
static SPObjectClass *cprof_parent_class;
diff --git a/src/dropper-context.cpp b/src/dropper-context.cpp
index 985e3ac51..5c66eca46 100644
--- a/src/dropper-context.cpp
+++ b/src/dropper-context.cpp
@@ -138,6 +138,14 @@ static void sp_dropper_context_finish(SPEventContext *ec)
/**
+ * Returns the current dropper context icc-color.
+ */
+SPColor* sp_dropper_context_get_icc_color(SPEventContext *ec)
+{
+ //TODO: implement-me!
+}
+
+/**
* Returns the current dropper context color.
*/
guint32 sp_dropper_context_get_color(SPEventContext *ec)
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 65aad1e2d..f4ab3d9ef 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -51,8 +51,15 @@
#if ENABLE_LCMS
#include "color-profile-fns.h"
#include "color-profile.h"
-//#define DEBUG_LCMS
+#define DEBUG_LCMS
#ifdef DEBUG_LCMS
+
+
+#define DEBUG_MESSAGE(key, ...)\
+{\
+ g_message( __VA_ARGS__ );\
+}
+
#include "preferences.h"
#include <gtk/gtkmessagedialog.h>
#endif // DEBUG_LCMS
@@ -105,7 +112,7 @@ extern "C"
#ifdef DEBUG_LCMS
extern guint update_in_progress;
-#define DEBUG_MESSAGE(key, ...) \
+#define DEBUG_MESSAGE_SCISLAC(key, ...) \
{\
Inkscape::Preferences *prefs = Inkscape::Preferences::get();\
bool dump = prefs->getBool("/options/scislac/" #key);\
diff --git a/src/widgets/sp-color-icc-selector.cpp b/src/widgets/sp-color-icc-selector.cpp
index ae837117a..2872dace0 100644
--- a/src/widgets/sp-color-icc-selector.cpp
+++ b/src/widgets/sp-color-icc-selector.cpp
@@ -17,12 +17,12 @@
#include "inkscape.h"
#include "profile-manager.h"
-#define noDEBUG_LCMS
+#define DEBUG_LCMS
#if ENABLE_LCMS
#include "color-profile-fns.h"
#include "color-profile.h"
-#define DEBUG_LCMS
+
#ifdef DEBUG_LCMS
#include "preferences.h"
#include <gtk/gtkmessagedialog.h>