Permalink
Browse files

skin-whitening: add the little pink effect.

  • Loading branch information...
1 parent 04cf428 commit 6e375feb58bf9347643a79559047b80d03e99a6a @hejiann committed Jul 31, 2012
View
@@ -1,7 +1,7 @@
*.o
beautify
beautify-textures.h
-skin-whitening
+# skin-whitening
skin-whitening-images.h
# rip-border
rip-border-textures.h
View
@@ -51,28 +51,29 @@ texture-border: slim the plug-in size by only provide top textures and let other
texture-border: add scrollbar to textures and make the dialog display quickly.
rip-border: slim the plug-in size by only provide top textures and let other textures can be download.
rip-border: add scrollbar to textures and make the dialog display quickly.
+skin whitening: add the little pink effect.
2012-07-30:
beautify: fix missing effect.
-beautify: add glass drops effect.
-beautify: add life sketch effect.
-beautify: add color pencil effect.
-rip-border: add custom texures support.
-beautify: add sunset gradient effect.
-beautify: add rainbow gradient effect.
+beautify: add the glass drops effect.
+beautify: add the life sketch effect.
+beautify: add the color pencil effect.
+rip-border: add the custom texures support.
+beautify: add the sunset gradient effect.
+beautify: add the rainbow gradient effect.
2012-07-29
texture-border: add custom texures support.
-skin-whitening: add reset feature.
+skin-whitening: add the reset feature.
skin-whitening: fix plug-in-skin-whitening procedure to let this filter can be used in scirpts.
Change all the beautify plug-ins under the "Filters" menu instead of "Tools" menu.
-beautify: add classic studio effect.
-beautify: add night view effect.
-beautify: add colorful glow effect.
+beautify: add the classic studio effect.
+beautify: add the night view effect.
+beautify: add the colorful glow effect.
2012-07-27
-beautify: add sketch effect
-beautify: add recall effect
+beautify: add the sketch effect
+beautify: add the recall effect
beautify: fix the plug-in-beautify procedure to let this plug-in can be used in a script
beautify: fix gimp-2.6 issue: Procedure 'gimp-layer-new' has been called with value '100' for argument 'mode'
File renamed without changes.
@@ -0,0 +1,45 @@
+# GIMP curves tool settings
+
+(time 0)
+(time 0)
+(channel value)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.000000 -1.000000 -1.000000 0.121569 0.121569 -1.000000 -1.000000 0.247059 0.247059 -1.000000 -1.000000 0.372549 0.372549 -1.000000 -1.000000 0.498039 0.498039 -1.000000 -1.000000 0.623529 0.623529 -1.000000 -1.000000 0.749020 0.749020 -1.000000 -1.000000 0.874510 0.874510 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.000000 0.003922 0.007843 0.011765 0.015686 0.019608 0.023530 0.027451 0.031373 0.035294 0.039216 0.043137 0.047059 0.050981 0.054902 0.058824 0.062745 0.066667 0.070589 0.074510 0.078432 0.082353 0.086275 0.090196 0.094118 0.098040 0.101961 0.105883 0.109804 0.113726 0.117647 0.121569 0.125491 0.129412 0.133334 0.137255 0.141177 0.145098 0.149020 0.152942 0.156863 0.160785 0.164706 0.168628 0.172549 0.176471 0.180392 0.184314 0.188236 0.192157 0.196079 0.200000 0.203922 0.207843 0.211765 0.215687 0.219608 0.223530 0.227451 0.231373 0.235294 0.239216 0.243137 0.247059 0.250981 0.254902 0.258824 0.262745 0.266667 0.270588 0.274510 0.278431 0.282353 0.286275 0.290196 0.294118 0.298039 0.301961 0.305882 0.309804 0.313726 0.317647 0.321569 0.325490 0.329412 0.333333 0.337255 0.341177 0.345098 0.349020 0.352941 0.356863 0.360784 0.364706 0.368627 0.372549 0.376471 0.380392 0.384314 0.388235 0.392157 0.396078 0.400000 0.403921 0.407843 0.411765 0.415686 0.419608 0.423529 0.427451 0.431372 0.435294 0.439216 0.443137 0.447059 0.450980 0.454902 0.458823 0.462745 0.466667 0.470588 0.474510 0.478431 0.482353 0.486274 0.490196 0.494117 0.498039 0.501961 0.505882 0.509804 0.513725 0.517647 0.521568 0.525490 0.529411 0.533333 0.537255 0.541176 0.545098 0.549019 0.552941 0.556862 0.560784 0.564705 0.568627 0.572549 0.576470 0.580392 0.584313 0.588235 0.592156 0.596078 0.600000 0.603921 0.607843 0.611764 0.615686 0.619607 0.623529 0.627451 0.631372 0.635294 0.639215 0.643137 0.647059 0.650980 0.654902 0.658823 0.662745 0.666666 0.670588 0.674510 0.678431 0.682353 0.686274 0.690196 0.694118 0.698039 0.701961 0.705883 0.709804 0.713726 0.717647 0.721569 0.725490 0.729412 0.733334 0.737255 0.741177 0.745098 0.749020 0.752942 0.756863 0.760785 0.764706 0.768628 0.772549 0.776471 0.780393 0.784314 0.788236 0.792157 0.796079 0.800000 0.803922 0.807844 0.811765 0.815687 0.819608 0.823530 0.827451 0.831373 0.835294 0.839216 0.843138 0.847059 0.850981 0.854902 0.858824 0.862745 0.866667 0.870588 0.874510 0.878432 0.882353 0.886275 0.890196 0.894118 0.898039 0.901961 0.905883 0.909804 0.913726 0.917647 0.921569 0.925490 0.929412 0.933333 0.937255 0.941177 0.945098 0.949020 0.952941 0.956863 0.960784 0.964706 0.968627 0.972549 0.976471 0.980392 0.984314 0.988235 0.992157 0.996078 1.000000))
+(time 0)
+(channel red)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.007843 -1.000000 -1.000000 0.121569 0.160784 -1.000000 -1.000000 0.247059 0.317647 -1.000000 -1.000000 0.372549 0.462745 -1.000000 -1.000000 0.498039 0.592157 -1.000000 -1.000000 0.623529 0.713725 -1.000000 -1.000000 0.749020 0.819608 -1.000000 -1.000000 0.874510 0.913725 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.012785 0.017726 0.022668 0.027609 0.032550 0.037491 0.042431 0.047372 0.052311 0.057251 0.062190 0.067128 0.072066 0.077003 0.081939 0.086875 0.091809 0.096743 0.101676 0.106608 0.111539 0.116469 0.121398 0.126326 0.131253 0.136178 0.141102 0.146025 0.150946 0.155866 0.160784 0.165706 0.170637 0.175575 0.180520 0.185470 0.190425 0.195384 0.200345 0.205308 0.210272 0.215236 0.220198 0.225157 0.230114 0.235066 0.240013 0.244954 0.249887 0.254813 0.259729 0.264635 0.269530 0.274412 0.279282 0.284137 0.288978 0.293802 0.298609 0.303398 0.308168 0.312918 0.317647 0.322361 0.327067 0.331765 0.336454 0.341134 0.345805 0.350466 0.355116 0.359756 0.364386 0.369003 0.373610 0.378204 0.382786 0.387355 0.391912 0.396455 0.400984 0.405499 0.409999 0.414485 0.418955 0.423410 0.427849 0.432272 0.436678 0.441067 0.445439 0.449793 0.454129 0.458446 0.462745 0.467023 0.471278 0.475512 0.479726 0.483919 0.488093 0.492248 0.496385 0.500505 0.504608 0.508696 0.512768 0.516826 0.520871 0.524902 0.528922 0.532929 0.536927 0.540914 0.544891 0.548860 0.552822 0.556776 0.560723 0.564665 0.568602 0.572534 0.576463 0.580389 0.584313 0.588235 0.592157 0.596078 0.599999 0.603918 0.607836 0.611750 0.615660 0.619567 0.623468 0.627364 0.631253 0.635135 0.639009 0.642874 0.646730 0.650576 0.654412 0.658235 0.662047 0.665846 0.669631 0.673401 0.677157 0.680896 0.684620 0.688326 0.692014 0.695683 0.699333 0.702963 0.706572 0.710160 0.713725 0.717269 0.720795 0.724302 0.727791 0.731263 0.734717 0.738154 0.741574 0.744979 0.748367 0.751739 0.755097 0.758440 0.761768 0.765082 0.768382 0.771669 0.774943 0.778204 0.781453 0.784690 0.787915 0.791129 0.794332 0.797525 0.800707 0.803880 0.807043 0.810197 0.813342 0.816479 0.819608 0.822727 0.825835 0.828931 0.832016 0.835089 0.838151 0.841201 0.844240 0.847268 0.850283 0.853288 0.856281 0.859262 0.862232 0.865190 0.868137 0.871073 0.873996 0.876909 0.879810 0.882699 0.885577 0.888444 0.891299 0.894142 0.896974 0.899795 0.902604 0.905401 0.908187 0.910962 0.913725 0.916474 0.919206 0.921922 0.924622 0.927308 0.929978 0.932635 0.935278 0.937909 0.940527 0.943133 0.945727 0.948312 0.950885 0.953449 0.956004 0.958551 0.961089 0.963620 0.966143 0.968661 0.971172 0.973678 0.976179 0.978676 0.981169 0.983659 0.986146 0.988631 0.991114 0.993596 0.996078))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.007843 -1.000000 -1.000000 0.121569 0.145098 -1.000000 -1.000000 0.247059 0.290196 -1.000000 -1.000000 0.372549 0.427451 -1.000000 -1.000000 0.498039 0.556863 -1.000000 -1.000000 0.623529 0.678431 -1.000000 -1.000000 0.749020 0.792157 -1.000000 -1.000000 0.874510 0.898039 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.012244 0.016644 0.021045 0.025447 0.029849 0.034252 0.038656 0.043061 0.047468 0.051876 0.056286 0.060697 0.065111 0.069527 0.073945 0.078366 0.082790 0.087216 0.091645 0.096078 0.100514 0.104954 0.109397 0.113844 0.118296 0.122751 0.127211 0.131675 0.136145 0.140619 0.145098 0.149587 0.154089 0.158603 0.163128 0.167663 0.172208 0.176760 0.181320 0.185886 0.190456 0.195031 0.199608 0.204188 0.208768 0.213348 0.217927 0.222504 0.227078 0.231647 0.236211 0.240769 0.245319 0.249861 0.254394 0.258917 0.263428 0.267926 0.272411 0.276882 0.281337 0.285775 0.290196 0.294604 0.299004 0.303397 0.307782 0.312159 0.316529 0.320891 0.325245 0.329592 0.333931 0.338262 0.342586 0.346902 0.351210 0.355511 0.359804 0.364089 0.368367 0.372637 0.376899 0.381154 0.385401 0.389641 0.393873 0.398097 0.402313 0.406522 0.410723 0.414917 0.419102 0.423280 0.427451 0.431614 0.435769 0.439917 0.444056 0.448189 0.452313 0.456430 0.460539 0.464641 0.468735 0.472821 0.476900 0.480971 0.485034 0.489089 0.493137 0.497178 0.501210 0.505235 0.509253 0.513262 0.517264 0.521259 0.525245 0.529224 0.533196 0.537159 0.541115 0.545064 0.549005 0.552938 0.556863 0.560781 0.564691 0.568593 0.572488 0.576375 0.580254 0.584126 0.587990 0.591847 0.595696 0.599537 0.603370 0.607196 0.611014 0.614825 0.618627 0.622423 0.626210 0.629990 0.633762 0.637527 0.641283 0.645033 0.648774 0.652508 0.656234 0.659953 0.663664 0.667367 0.671063 0.674751 0.678431 0.682104 0.685769 0.689426 0.693076 0.696718 0.700352 0.703979 0.707598 0.711209 0.714813 0.718409 0.721997 0.725578 0.729151 0.732717 0.736274 0.739824 0.743367 0.746902 0.750429 0.753948 0.757460 0.760964 0.764461 0.767950 0.771431 0.774904 0.778370 0.781828 0.785279 0.788722 0.792157 0.795585 0.799004 0.802417 0.805821 0.809218 0.812607 0.815989 0.819363 0.822729 0.826088 0.829439 0.832782 0.836118 0.839446 0.842766 0.846078 0.849383 0.852681 0.855970 0.859252 0.862527 0.865793 0.869052 0.872304 0.875548 0.878784 0.882012 0.885233 0.888446 0.891651 0.894849 0.898039 0.901220 0.904389 0.907548 0.910696 0.913834 0.916963 0.920082 0.923192 0.926294 0.929387 0.932472 0.935550 0.938621 0.941685 0.944742 0.947794 0.950839 0.953880 0.956915 0.959945 0.962971 0.965994 0.969012 0.972028 0.975040 0.978050 0.981058 0.984064 0.987069 0.990073 0.993075 0.996078))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.007843 -1.000000 -1.000000 0.121569 0.145098 -1.000000 -1.000000 0.247059 0.290196 -1.000000 -1.000000 0.372549 0.427451 -1.000000 -1.000000 0.498039 0.556863 -1.000000 -1.000000 0.623529 0.678431 -1.000000 -1.000000 0.749020 0.792157 -1.000000 -1.000000 0.874510 0.898039 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.012244 0.016644 0.021045 0.025447 0.029849 0.034252 0.038656 0.043061 0.047468 0.051876 0.056286 0.060697 0.065111 0.069527 0.073945 0.078366 0.082790 0.087216 0.091645 0.096078 0.100514 0.104954 0.109397 0.113844 0.118296 0.122751 0.127211 0.131675 0.136145 0.140619 0.145098 0.149587 0.154089 0.158603 0.163128 0.167663 0.172208 0.176760 0.181320 0.185886 0.190456 0.195031 0.199608 0.204188 0.208768 0.213348 0.217927 0.222504 0.227078 0.231647 0.236211 0.240769 0.245319 0.249861 0.254394 0.258917 0.263428 0.267926 0.272411 0.276882 0.281337 0.285775 0.290196 0.294604 0.299004 0.303397 0.307782 0.312159 0.316529 0.320891 0.325245 0.329592 0.333931 0.338262 0.342586 0.346902 0.351210 0.355511 0.359804 0.364089 0.368367 0.372637 0.376899 0.381154 0.385401 0.389641 0.393873 0.398097 0.402313 0.406522 0.410723 0.414917 0.419102 0.423280 0.427451 0.431614 0.435769 0.439917 0.444056 0.448189 0.452313 0.456430 0.460539 0.464641 0.468735 0.472821 0.476900 0.480971 0.485034 0.489089 0.493137 0.497178 0.501210 0.505235 0.509253 0.513262 0.517264 0.521259 0.525245 0.529224 0.533196 0.537159 0.541115 0.545064 0.549005 0.552938 0.556863 0.560781 0.564691 0.568593 0.572488 0.576375 0.580254 0.584126 0.587990 0.591847 0.595696 0.599537 0.603370 0.607196 0.611014 0.614825 0.618627 0.622423 0.626210 0.629990 0.633762 0.637527 0.641283 0.645033 0.648774 0.652508 0.656234 0.659953 0.663664 0.667367 0.671063 0.674751 0.678431 0.682104 0.685769 0.689426 0.693076 0.696718 0.700352 0.703979 0.707598 0.711209 0.714813 0.718409 0.721997 0.725578 0.729151 0.732717 0.736274 0.739824 0.743367 0.746902 0.750429 0.753948 0.757460 0.760964 0.764461 0.767950 0.771431 0.774904 0.778370 0.781828 0.785279 0.788722 0.792157 0.795585 0.799004 0.802417 0.805821 0.809218 0.812607 0.815989 0.819363 0.822729 0.826088 0.829439 0.832782 0.836118 0.839446 0.842766 0.846078 0.849383 0.852681 0.855970 0.859252 0.862527 0.865793 0.869052 0.872304 0.875548 0.878784 0.882012 0.885233 0.888446 0.891651 0.894849 0.898039 0.901220 0.904389 0.907548 0.910696 0.913834 0.916963 0.920082 0.923192 0.926294 0.929387 0.932472 0.935550 0.938621 0.941685 0.944742 0.947794 0.950839 0.953880 0.956915 0.959945 0.962971 0.965994 0.969012 0.972028 0.975040 0.978050 0.981058 0.984064 0.987069 0.990073 0.993075 0.996078))
+(time 0)
+(channel alpha)
+(curve
+ (curve-type free)
+ (n-points 17)
+ (points 34 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000)
+ (n-samples 256)
+ (samples 256 0.000000 0.003922 0.007843 0.011765 0.015686 0.019608 0.023529 0.027451 0.031373 0.035294 0.039216 0.043137 0.047059 0.050980 0.054902 0.058824 0.062745 0.066667 0.070588 0.074510 0.078431 0.082353 0.086275 0.090196 0.094118 0.098039 0.101961 0.105882 0.109804 0.113725 0.117647 0.121569 0.125490 0.129412 0.133333 0.137255 0.141176 0.145098 0.149020 0.152941 0.156863 0.160784 0.164706 0.168627 0.172549 0.176471 0.180392 0.184314 0.188235 0.192157 0.196078 0.200000 0.203922 0.207843 0.211765 0.215686 0.219608 0.223529 0.227451 0.231373 0.235294 0.239216 0.243137 0.247059 0.250980 0.254902 0.258824 0.262745 0.266667 0.270588 0.274510 0.278431 0.282353 0.286275 0.290196 0.294118 0.298039 0.301961 0.305882 0.309804 0.313725 0.317647 0.321569 0.325490 0.329412 0.333333 0.337255 0.341176 0.345098 0.349020 0.352941 0.356863 0.360784 0.364706 0.368627 0.372549 0.376471 0.380392 0.384314 0.388235 0.392157 0.396078 0.400000 0.403922 0.407843 0.411765 0.415686 0.419608 0.423529 0.427451 0.431373 0.435294 0.439216 0.443137 0.447059 0.450980 0.454902 0.458824 0.462745 0.466667 0.470588 0.474510 0.478431 0.482353 0.486275 0.490196 0.494118 0.498039 0.501961 0.505882 0.509804 0.513725 0.517647 0.521569 0.525490 0.529412 0.533333 0.537255 0.541176 0.545098 0.549020 0.552941 0.556863 0.560784 0.564706 0.568627 0.572549 0.576471 0.580392 0.584314 0.588235 0.592157 0.596078 0.600000 0.603922 0.607843 0.611765 0.615686 0.619608 0.623529 0.627451 0.631373 0.635294 0.639216 0.643137 0.647059 0.650980 0.654902 0.658824 0.662745 0.666667 0.670588 0.674510 0.678431 0.682353 0.686275 0.690196 0.694118 0.698039 0.701961 0.705882 0.709804 0.713725 0.717647 0.721569 0.725490 0.729412 0.733333 0.737255 0.741176 0.745098 0.749020 0.752941 0.756863 0.760784 0.764706 0.768627 0.772549 0.776471 0.780392 0.784314 0.788235 0.792157 0.796078 0.800000 0.803922 0.807843 0.811765 0.815686 0.819608 0.823529 0.827451 0.831373 0.835294 0.839216 0.843137 0.847059 0.850980 0.854902 0.858824 0.862745 0.866667 0.870588 0.874510 0.878431 0.882353 0.886275 0.890196 0.894118 0.898039 0.901961 0.905882 0.909804 0.913725 0.917647 0.921569 0.925490 0.929412 0.933333 0.937255 0.941176 0.945098 0.949020 0.952941 0.956863 0.960784 0.964706 0.968627 0.972549 0.976471 0.980392 0.984314 0.988235 0.992157 0.996078 1.000000))
+
+# end of curves tool settings
@@ -23,6 +23,7 @@ void
run_effect (gint32 image_ID, WhiteningEffectType effect)
{
gint32 layer = gimp_image_get_active_layer (image_ID);
+
switch (effect)
{
case WHITENING_EFFECT_LITTLE_WHITENING:
@@ -79,5 +80,45 @@ run_effect (gint32 image_ID, WhiteningEffectType effect)
gimp_curves_spline (layer, GIMP_HISTOGRAM_BLUE, 18, pts);
break;
}
+ case WHITENING_EFFECT_LITTLE_PINK:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.160784 * 255,
+ 0.247059 * 255, 0.317647 * 255,
+ 0.372549 * 255, 0.462745 * 255,
+ 0.498039 * 255, 0.592157 * 255,
+ 0.623529 * 255, 0.713725 * 255,
+ 0.749020 * 255, 0.819608 * 255,
+ 0.874510 * 255, 0.913725 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.145098 * 255,
+ 0.247059 * 255, 0.290196 * 255,
+ 0.372549 * 255, 0.427451 * 255,
+ 0.498039 * 255, 0.556863 * 255,
+ 0.623529 * 255, 0.678431 * 255,
+ 0.749020 * 255, 0.792157 * 255,
+ 0.874510 * 255, 0.898039 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.145098 * 255,
+ 0.247059 * 255, 0.290196 * 255,
+ 0.372549 * 255, 0.427451 * 255,
+ 0.498039 * 255, 0.556863 * 255,
+ 0.623529 * 255, 0.678431 * 255,
+ 0.749020 * 255, 0.792157 * 255,
+ 0.874510 * 255, 0.898039 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ gimp_curves_spline (layer, GIMP_HISTOGRAM_RED, 18, red_pts);
+ gimp_curves_spline (layer, GIMP_HISTOGRAM_GREEN, 18, green_pts);
+ gimp_curves_spline (layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
+ break;
+ }
}
}
@@ -21,7 +21,7 @@ typedef enum
WHITENING_EFFECT_LITTLE_WHITENING,
WHITENING_EFFECT_MODERATE_WHITENING,
WHITENING_EFFECT_HIGH_WHITENING,
- WHITENING_EFFECT_LITTLE_PINK, // TODO
+ WHITENING_EFFECT_LITTLE_PINK,
WHITENING_EFFECT_MODERATE_PINK, // TODO
WHITENING_EFFECT_HIGH_PINK, // TODO
WHITENING_EFFECT_LITTLE_FLESH, // TODO
View
@@ -38,6 +38,7 @@ static const WhiteningEffectType effects[] =
WHITENING_EFFECT_LITTLE_WHITENING,
WHITENING_EFFECT_MODERATE_WHITENING,
WHITENING_EFFECT_HIGH_WHITENING,
+ WHITENING_EFFECT_LITTLE_PINK,
};
static void query (void);
@@ -355,20 +356,23 @@ effect_icon_new (WhiteningEffectType effect)
switch (effect) {
case WHITENING_EFFECT_LITTLE_WHITENING:
data = skin_whitening_1;
- title = "Little W";
+ title = "Little Whitening";
break;
case WHITENING_EFFECT_MODERATE_WHITENING:
data = skin_whitening_2;
- title = "Middle W";
+ title = "Middle Whitening";
break;
case WHITENING_EFFECT_HIGH_WHITENING:
data = skin_whitening_3;
- title = "High W";
+ title = "High Whitening";
+ break;
+ case WHITENING_EFFECT_LITTLE_PINK:
+ data = skin_whitening_4;
+ title = "Little Pink";
break;
}
- GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
- gtk_container_set_border_width (GTK_CONTAINER (box), 12);
+ GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
/* image */
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_inline (-1, data, FALSE, NULL);
@@ -383,6 +387,8 @@ effect_icon_new (WhiteningEffectType effect)
/* label */
GtkWidget *label = gtk_label_new (title);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+ gtk_widget_set_size_request (label, 80, -1);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
gtk_widget_show (label);

0 comments on commit 6e375fe

Please sign in to comment.