From: cilix42 Date: Wed, 21 Jan 2009 20:57:33 +0000 (+0000) Subject: Fix compile when lcms is disabled X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=547b8357deffd0afabc78ef81f205622b11c1738;p=inkscape.git Fix compile when lcms is disabled --- diff --git a/src/color-profile.cpp b/src/color-profile.cpp index d3a7b9a4d..a562d756c 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -275,9 +275,8 @@ void ColorProfile::set( SPObject *object, unsigned key, gchar const *value ) #ifdef DEBUG_LCMS DEBUG_MESSAGE( lcmsOne, "cmsOpenProfileFromFile( '%s'...) = %p", fullname, (void*)cprof->profHandle ); #endif // DEBUG_LCMS - -#endif // ENABLE_LCMS g_free(fullname); +#endif // ENABLE_LCMS } } object->requestModified(SP_OBJECT_MODIFIED_FLAG); diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 36861ad2c..78b1c6f11 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -683,8 +683,10 @@ DocumentProperties::build_scripting() _add_btn.signal_clicked().connect(sigc::mem_fun(*this, &DocumentProperties::addExternalScript)); +#if ENABLE_LCMS _ExternalScriptsList.signal_button_release_event().connect_notify(sigc::mem_fun(*this, &DocumentProperties::external_scripts_list_button_release)); scripting_create_popup_menu(_ExternalScriptsList, sigc::mem_fun(*this, &DocumentProperties::removeExternalScript)); +#endif // ENABLE_LCMS //TODO: review this observers code: const GSList *current = sp_document_get_resource_list( SP_ACTIVE_DOCUMENT, "script" );