xfconf data type quesions

Jannis Pohlmann jannis at xfce.org
Sun Oct 7 14:19:35 CEST 2007


Am Sun, 7 Oct 2007 11:16:44 +0200
schrieb "Nick Schermer" <nickschermer at gmail.com>:

> First of all, I don't see why alpha is part of a color. But apart from
> that, why not convert the color into a hex decimal string (like
> gdk_color_to_string does). The # shows we're talking about a color
> (well most people will recognize it that way) and strings like
> #33335555ffff are easy to customize.
> 
> We could even add a convenient function in the library to save a
> gdkcolor, since what we mostly use in Xfce/Gtk (gdkcolor -> convert ->
> xfconf_channel_set_string and the other way around for parsing the
> string to a gdkcolor with gdk_color_parse).

I haven't read all of Brian's explanations, but his #6 (if properly
implemented) would be very flexible for any kinds of lists. But for
colours I prefer your idea of using a HTML-/CSS-like colour string.

  - Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20071007/150cb072/attachment.pgp>


More information about the Xfce4-dev mailing list