zenity return color format

Asked by joel on 2012-07-25

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:
2012-07-26
Last query:
2012-07-26
Last reply:
2012-07-25

What command are you using?

joel (aullidolunar) said : #2

Hello:

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

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

joel (aullidolunar) said : #4

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