Re: toolbar color
- From: Narayana Pattipati <narayana pattipati wipro com>
- To: Grace Yeung <yeung mrcmry com>
- Cc: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: toolbar color
- Date: Thu, 15 Jan 2004 12:46:45 +0530
You can do the following to change background color:
GdkColor color;
gdk_color_parse ("red", &color);
gtk_widget_modify_bg (GTK_WIDGET(toolbar1), GTK_STATE_NORMAL, &color);
(OR)
In your code, you need to access style1->bg[] instead of style1->fg[].
HTH,
Narayana
Grace Yeung wrote:
I would like to know where the background color of the gtk toolbar is
stored and how I can access that field. I don't seem to be able to
change it with the following code...
style1 = gtk_style_new ();
gdk_color_parse ("red", &style1->fg[GTK_STATE_NORMAL]);
gtk_widget_set_style (toolbar1, style1);
Thanks for any help.
Grace
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]