From dedcb6c735b9199a15b5895b96e091a344dff187 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Fri, 25 Dec 2009 20:28:19 +0100 Subject: [PATCH] Fix compile when lcms is disabled (someone please check that this fix is correct). --- src/svg/svg-color.cpp | 2 ++ src/widgets/sp-color-notebook.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp index ff5a6c2d3..7d43b68ee 100644 --- a/src/svg/svg-color.cpp +++ b/src/svg/svg-color.cpp @@ -464,6 +464,7 @@ sp_svg_create_color_hash() return colors; } +#if ENABLE_LCMS //helper function borrowed from src/widgets/sp-color-icc-selector.cpp: void getThings( DWORD space, gchar const**& namers, gchar const**& tippies, guint const*& scalies ); @@ -497,6 +498,7 @@ g_message("transform to sRGB done"); } } } +#endif //ENABLE_LCMS /* * Some discussion at http://markmail.org/message/bhfvdfptt25kgtmj diff --git a/src/widgets/sp-color-notebook.cpp b/src/widgets/sp-color-notebook.cpp index 56b60d120..3ba39dd30 100644 --- a/src/widgets/sp-color-notebook.cpp +++ b/src/widgets/sp-color-notebook.cpp @@ -374,8 +374,10 @@ void ColorNotebook::init() sp_set_font_size_smaller (rgbabox); gtk_widget_show_all (rgbabox); +#if ENABLE_LCMS //the "too much ink" icon is initially hidden gtk_widget_hide(GTK_WIDGET(_box_toomuchink)); +#endif //ENABLE_LCMS gtk_table_attach (GTK_TABLE (table), rgbabox, 0, 2, row, row + 1, GTK_FILL, GTK_SHRINK, XPAD, YPAD); -- 2.30.2