Re: Setting the color of a label
| From: | Andrei Zmievski | Date: | Fri, 30 Nov 2001 00:54:52 +0000 |
| Subject: | Re: Setting the color of a label | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-771@lists.php.net to get a copy of this message | ||
At 04:06 PM 11/29/01 -0800, pqadmin@physicianquest.com wrote:
OK... I cant figure out for the life of me, how to set a GtkLabel a certain color. set_style() doesnt seem to work as it does for GtkClist (e.g.: set_cell_style()). How do I go about doing this?Labels don't have their own GdkWindows, they just render the text on the window of their parent. You need to add label to a GtkEventBox and then set the style on the box. -Andrei