Max value for colors < 255
Hi,
I have GTK+ 2.13.6, and had problems compiling Inkscape 0.46, until I found this patch http://launchpadlibrarian.net/15113774/gtk-clist.patch. Inkscape compiled pretty well, but now the color values are gone wild :-P I can't raise any of the color components more than 245. Even the default colors (in the color bar) are semi transparents (the alpha channel is at 245).
I can write the HTML color "FF0000FF", and then the drawing turns solid red. But in the "fill and border" pannel, the values are at 245 (for red and alpha). If I try to change one of those values, they return to theier "correct" values (254), the image turns transparent again, and the HTML color shows "F50000F5".
Here is a screenshot: http://drmad.org/inkscape-245-problem.png
I've work with Inkscape 0.46 with a older GTK version without any problem. Help :(
Wow... same results here. It happens for all sliders though, not just the rgb ones. So the CMYK sliders won't go above 90. I wonder if this is our issue or gtk's... unfortunately I don't have time to do more testing right now. Would you please file a bug in Launchpad though, so this can be followed up on?
Thanks, Josh
Oliver Etchebarne Bejarano wrote:
Hi,
I have GTK+ 2.13.6, and had problems compiling Inkscape 0.46, until I found this patch http://launchpadlibrarian.net/15113774/gtk-clist.patch. Inkscape compiled pretty well, but now the color values are gone wild :-P I can't raise any of the color components more than 245. Even the default colors (in the color bar) are semi transparents (the alpha channel is at 245).
I can write the HTML color "FF0000FF", and then the drawing turns solid red. But in the "fill and border" pannel, the values are at 245 (for red and alpha). If I try to change one of those values, they return to theier "correct" values (254), the image turns transparent again, and the HTML color shows "F50000F5".
Here is a screenshot: http://drmad.org/inkscape-245-problem.png
I've work with Inkscape 0.46 with a older GTK version without any problem. Help :(
I reported this some time ago: https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/257685
Mattias
Josh Andler kirjutas:
Wow... same results here. It happens for all sliders though, not just the rgb ones. So the CMYK sliders won't go above 90. I wonder if this is our issue or gtk's... unfortunately I don't have time to do more testing right now. Would you please file a bug in Launchpad though, so this can be followed up on?
Thanks, Josh
Oliver Etchebarne Bejarano wrote:
Hi,
I have GTK+ 2.13.6, and had problems compiling Inkscape 0.46, until I found this patch http://launchpadlibrarian.net/15113774/gtk-clist.patch. Inkscape compiled pretty well, but now the color values are gone wild :-P I can't raise any of the color components more than 245. Even the default colors (in the color bar) are semi transparents (the alpha channel is at 245).
I can write the HTML color "FF0000FF", and then the drawing turns solid red. But in the "fill and border" pannel, the values are at 245 (for red and alpha). If I try to change one of those values, they return to theier "correct" values (254), the image turns transparent again, and the HTML color shows "F50000F5".
Here is a screenshot: http://drmad.org/inkscape-245-problem.png
I've work with Inkscape 0.46 with a older GTK version without any problem. Help :(
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
To this GTK+ bug report there came such comment, which clearly states this is inkscape bug:
------- Comment #1 from Matthias Clasen 2008-09-04 00:47 UTC ------- GTK+ is simply enforcing documented behaviour now. The fix is to set page_size to 0 when using adjustments for simple scalar values, such as in a slider.
From the release notes:
* GtkAdjustment now enforces that values are restricted to the range [lower, upper - page_size]. This has always been the documented behaviour, and the recommended practice is to set page_size to 0 when using adjustments for simple scalar values, like in a slider or spin button.
The lauhcpad bug itself can be seen here: https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/257685
In hope that developers will get to this issue soon.
Mattias
participants (3)
-
Josh Andler
-
Mattias
-
Oliver Etchebarne Bejarano