zenity return color format

Asked by joel

What color format is returned by zenitys color dialog:
I choose this: #914E4E
and I get this in the output terminal: #91914e4e4e4e

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu zenity Edit question
Assignee:
No assignee Edit question
Solved by:
joel
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What command are you using?

Revision history for this message
joel (aullidolunar) said :
#2

Hello:

I'm using this one: zenity --color-selection
Zenity's version is: 3.4.0

Revision history for this message
Thomas Krüger (thkrueger) said :
#3

You will wonder but this is the right output for GTK/GDK, see the API reference:
http://developer.gnome.org/gdk/stable/gdk-Colormaps-and-Colors.html#gdk-color-to-string

Revision history for this message
joel (aullidolunar) said :
#4

Oh, I see, I just need to parse to extract the right values.
Thanks!