Re: Change button label colour to white
- From: Peter Krueger <pkrueger appss de>
- To: Thomas Keaney <se40319 cs may ie>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Change button label colour to white
- Date: Wed, 3 Mar 2004 12:35:33 +0100 (MET)
On Tue, 2 Mar 2004, Thomas Keaney wrote:
How would I change the button's label colour to white?
Hello Thomas,
first you can access the GtkLabel of the button with
GtkWidget *pLabel = gtk_bin_get_child(GTK_BIN(pButton));
Then setup a white color:
GdkColor color;
gdk_color_parse("white", &color);
And finally apply the color to the label:
gtk_widget_modify_fg(pLabel, GTK_STATE_NORMAL, &color);
Regards,
Peter
--
====================================================================
Peter Krüger
applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany
Phone: +49-(0)391-54486-19388
Fax: +49-(0)391-54486-19222
email: krueger appss de
URL: http://www.appss.de
Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Mageburg
"Virtual business becomes reality!"
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]