Am Mit, 2002-08-21 um 08.12 schrieb [EMAIL PROTECTED]:
> hi...
>
> i want to change the white background of text entry,
> if i change the background color of it then only outline of this
> widget becomes colored...if i change foreground color of it then only text
> in this gets colored...so how the white background can be changed??
> please help if anybody has tried it...
> i have written the code like it...
>
> gdk_color_parse ("yellow", &color);
> rc_style = gtk_rc_style_new ();
> rc_style->bg[GTK_STATE_NORMAL] = color;
> rc_style->fg[GTK_STATE_NORMAL]=color;
> rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_BG;
> rc_style->color_flags[GTK_STATE_NORMAL] |=GTK_RC_FG;
> gtk_widget_modify_style (entry, rc_style);
>
> thanx in advance..
>
>
Hi,
we use
gtk_widget_modify_base( GTK_WIDGET(pMf->textW), GTK_STATE_NORMAL,
color);
bernd
--
Bernd Demian <[EMAIL PROTECTED]>
CSC Ploenzke
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list