summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59d1775)
raw | patch | inline | side by side (parent: 59d1775)
author | Felipe C. da S. Sanches <juca@members.fsf.org> | |
Sun, 13 Dec 2009 15:32:09 +0000 (13:32 -0200) | ||
committer | Felipe C. da S. Sanches <juca@members.fsf.org> | |
Sun, 13 Dec 2009 15:32:09 +0000 (13:32 -0200) |
src/widgets/sp-color-notebook.cpp | patch | blob | history |
index 1870c2960d0fbf0c5140b7f2b69b5b4750e85ae3..56b60d1206e678074bead2d82a6158e68fe220c6 100644 (file)
sp_set_font_size_smaller (rgbabox);
gtk_widget_show_all (rgbabox);
+
+ //the "too much ink" icon is initially hidden
+ gtk_widget_hide(GTK_WIDGET(_box_toomuchink));
+
gtk_table_attach (GTK_TABLE (table), rgbabox, 0, 2, row, row + 1, GTK_FILL, GTK_SHRINK, XPAD, YPAD);
#ifdef SPCS_PREVIEW
/* update too-much-ink icon */
gtk_widget_set_sensitive (_box_toomuchink, false);
if (color.icc){
- double ink_sum = 0;
- for (unsigned int i=0; i<color.icc->colors.size(); i++){
- ink_sum += color.icc->colors[i];
- }
+ Inkscape::ColorProfile* prof = SP_ACTIVE_DOCUMENT->profileManager->find(color.icc->colorProfile.c_str());
+ if (prof->getColorSpace() == icSigCmykData || prof->getColorSpace() == icSigCmyData){
+ gtk_widget_show(GTK_WIDGET(_box_toomuchink));
+ double ink_sum = 0;
+ for (unsigned int i=0; i<color.icc->colors.size(); i++){
+ ink_sum += color.icc->colors[i];
+ }
- /* Some literature states that when the sum of paint values exceed 320%, it is considered to be a satured color,
- which means the paper can get too wet due to an excessive ammount of ink. This may lead to several issues
- such as misalignment and poor quality of printing in general.*/
- if ( ink_sum > 3.2 )
- gtk_widget_set_sensitive (_box_toomuchink, true);
+ /* Some literature states that when the sum of paint values exceed 320%, it is considered to be a satured color,
+ which means the paper can get too wet due to an excessive ammount of ink. This may lead to several issues
+ such as misalignment and poor quality of printing in general.*/
+ if ( ink_sum > 3.2 )
+ gtk_widget_set_sensitive (_box_toomuchink, true);
+ } else {
+ gtk_widget_hide(GTK_WIDGET(_box_toomuchink));
+ }
}
#endif //ENABLE_LCMS