Re: How to change color of the text in gtk button

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

 



Hello Luiz,
a GtkButton is derived from GtkBin. This means that the GtkButton widget
itself draws background and frame, but the button's contents (e.g. the
label) is drawn by its child. You have to change the attributes of this
child widget (GtkWidget *child = gtk_bin_get_child(GTK_BIN(button))) to
get another text color. You can also change the font of this label with
gtk_widget_modify_font().

Regards...Peter

> From: "Luiz Rafael Culik Guimaraes" <culikr@xxxxxxxxxx>
> To: <gtk-list@xxxxxxxxx>
> Subject: How to change color of the text  in gtk button
> Date: Thu, 28 Aug 2003 23:59:24 -0300
>
> Dear Friends
>
> As subject, i successfully change the color of the button , but the text on
> center still black
> also, can buttons has diferent fonts on text
>
> Regards
> Luiz
-- 
====================================================================
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@xxxxxxxx
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.
====================================================================

_______________________________________________

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