Re: entry background color
- From: Jun Ma <ma_jun1973 yahoo com>
- To: Olexiy Avramchenko <olexiy irtech cn ua>
- Cc: Olexiy Avramchenko <ath irtech cn ua>, gtk-list gnome org
- Subject: Re: entry background color
- Date: Tue, 22 Apr 2003 10:37:58 +0800 (CST)
Thanks a lot! It works.
Regards,
Jun
--- Olexiy Avramchenko <olexiy irtech cn ua>
的正文:> 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
>
_________________________________________________________
Do You Yahoo!?
下载免费即时聊天软件“雅虎通”感受动感聊天魅力,赶快用你的雅虎电邮帐号登陆吧~
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]