Re: color in string
- From: Tim Evans <t evans aranz com>
- To: gtk-list gnome org
- Subject: Re: color in string
- Date: Tue, 02 Sep 2003 13:40:23 +1200
Luiz Rafael Culik Guimaraes wrote:
Hi
how to transform the GDK_COLOR structure resulted from an GtkColorSelection
Dialog in the form of "#33DD44"
Regads
Luiz
This is untested, but should work:
GdkColor c;
char s[8];
sprintf( s, "#%02x%02x%02x", c.red>>8, c.green>>8, c.blue>>8 );
--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]