RE: [gtk-list] Changing the background color of a text-area widg
- From: Evan Lawrence <evan worldpath net>
- To: Lior Chen <liorc usa net>
- Cc: GTK Mailing List <gtk-list redhat com>
- Subject: RE: [gtk-list] Changing the background color of a text-area widg
- Date: Fri, 03 Apr 1998 09:11:59 -0000 (???)
You need to create and assign a style to the widget, using something like this
to create it:
style = gtk_style_new ();
Then assign the background color you want to it:
style->bg[GTK_STATE_NORMAL] = style->white;
This will make it white, then just attach the style to the widget:
gtk_widget_set_style (textwidget, style);
You'll probably want to check into the style functions a little more, but you
get the idea.. Hope this helps..
On 03-Apr-98 Lior Chen wrote:
> Hi,
>
> How do I change the background-color of a text area widget? I didn't find
> such an option in the 'Widget attributes' section.
>
> - Lior Chen <liorc@usa.net>
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
--
Evan Lawrence
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]