Re: entry background color



Jun Ma wrote:

>Thank you. I used the function, but the background is
>still white.
>
Use gtk_widget_modify_base function:

void entry_color_modify(GtkWidget *entry)
{
GdkColor color;
color.red = color.blue = 0, color.green = 65000;
gtk_widget_modify_base(entry, GTK_STATE_NORMAL, &color); /* sets bg of
your entry to weird green colour */
}

Olexiy




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