Code

Fix compile when lcms is disabled (someone please check that this fix is correct).
authorMaximilian Albert <maximilian.albert@gmail.com>
Fri, 25 Dec 2009 19:28:19 +0000 (20:28 +0100)
committerMaximilian Albert <maximilian.albert@gmail.com>
Fri, 25 Dec 2009 19:28:19 +0000 (20:28 +0100)
src/svg/svg-color.cpp
src/widgets/sp-color-notebook.cpp

index ff5a6c2d34ba2b4acc7ded68b0ce3a9675982ae2..7d43b68eef18d75c2e82c6f7d4e967ceb1f2ee95 100644 (file)
@@ -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
index 56b60d1206e678074bead2d82a6158e68fe220c6..3ba39dd30aae8e8854756450399962e97a01f48b 100644 (file)
@@ -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);