Re: Change colour of arrow buttons
- From: Peter Krueger <pkrueger appss de>
- To: Thomas Keaney <se40319 cs may ie>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Change colour of arrow buttons
- Date: Wed, 3 Mar 2004 17:42:51 +0100 (MET)
On Wed, 3 Mar 2004, Thomas Keaney wrote:
There just ordinary buttons without a label. The arrows are then packed into
the buttons.
Hello Thomas,
then try the following code:
GdkColor color;
gdk_color_parse("blue", &color);
GtkWidget *pArrow = gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
gtk_widget_modify_fg(pArrow, GTK_STATE_NORMAL, &color);
If you have lots of arrows and you want to change all arrows to the same
color you should have a look at the "Resource Files" section of the docs.
You can use them to define e.g. the color for all your arrows at once.
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]