Re: dateedit color change problem...
- From: vyadav cdotd ernet in
- To: Olexiy Avramchenko <ath beast stu cn ua>
- Cc: gtk-list gnome org
- Subject: Re: dateedit color change problem...
- Date: Tue, 27 Aug 2002 16:21:32 +0500 (GMT+0500)
hi..
i tried it but it didn't work out.
thanx.
On Tue, 27 Aug 2002, Olexiy Avramchenko wrote:
> vyadav cdotd ernet in wrote:
>
> >hi..
> > how we can change the color of date edit component.
> >
> >
> > i tried like it->
> >
> > gdk_color_parse ("light green", &color);
> > style_default=gtk_widget_get_default_style();
> > style=gtk_style_copy(style_default);
> > style->base[GTK_STATE_NORMAL] = color;
> > gtk_widget_set_style(dateedit1,style);
> >
> > but color of widget didn't change.
> > then whats the solution of it.
> >
> Use gtk_widget_modify_bg (also take a look at gtk_widget_modify_*()
> functions):
> ---
> gdk_color_parse ("light green", &color);
> gtk_widget_modify_bg(dateedit1, GTK_STATE_NORMAL, &color);
> ---
>
> Olexiy
>
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]