Created attachment 309807 added tests to Christopher's patch
Yes, this looks like a better way. I had to adapt the tests because unspecified bits take other values when using gdk. I also added tests for the other direction shell -> gconf.
Hmm, I'm just seeing now in the API of gdk_color_to_string (): Since 2.12. But configure.in says: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/configure.in&rev=1.1959&mark=120#120 that seems bad :-/
Created attachment 309807
added tests to Christopher's patch
Yes, this looks like a better way. I had to adapt the tests because unspecified bits take other values when using gdk. I also added tests for the other direction shell -> gconf.
Hmm, I'm just seeing now in the API of gdk_color_to_string (): Since 2.12. But configure.in says: http:// bonsai. mozilla. org/cvsblame. cgi?file= /mozilla/ configure. in&rev= 1.1959& mark=120# 120 that seems bad :-/