Re: Getting hex string from a GdkColor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 08, 2005 at 06:06:34PM +0200, Stefano Esposito wrote:
> i've a color button from which i obtain a GdkColor with gtk_color_button_get_color(). Now i need the hex string representing this color but all that i find searching in the api docs is a function that obtain a GdkColor from an hex string. Any hints?

Use g_strdup_printf() (or g_snprintf(), or g_string_printf()
or whatever) to format the three numbers in hex.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux