Re: GdkColor to Hexadecimal conversion

2005-08-17 Thread Iago Rubio
On Wed, 2005-08-17 at 20:21 +1000, Nick Watts wrote: Easiest way to convert a GdkColor to its hexadecimal equivalent? If you mean an #RRGGBB string for web use: gchar* // please free me when you're done gdk_color_to_rgb_hex_string(GdkColor* color) { gchar* rgb; gfloat r, g, b;

Re: GdkColor to Hexadecimal conversion

2005-08-17 Thread David Necas (Yeti)
On Wed, Aug 17, 2005 at 12:40:13PM +0200, Iago Rubio wrote: On Wed, 2005-08-17 at 20:21 +1000, Nick Watts wrote: Easiest way to convert a GdkColor to its hexadecimal equivalent? If you mean an #RRGGBB string for web use: gchar* // please free me when you're done