Re: background color of scrollable window
- From: Jyothi <jyothi ncoretech com>
- To: Paul Davis <pbd op net>
- Cc: gtk-list gnome org
- Subject: Re: background color of scrollable window
- Date: Fri, 08 Mar 2002 11:24:04 +0530
Paul Davis wrote:
> > How to change the background color of a Scrolled window ? ...
>
> what have you tried so far?
I tried doing this , but of no use..........
GtkStyle *style1;
GtkStyle *oldstyle;
GdkColor color;
GdkColor color2;
color.red=255;
color.blue=255;
color.green=255;
color2.red=255;
color2.blue=255;
color2.green=255;
ScrolledWindow = gtk_scrolled_window_new( NULL , NULL ) ;
oldstyle = gtk_widget_get_default_style();
style1 = gtk_style_copy(oldstyle);
style1->bg[GTK_STATE_NORMAL] =color2;
style1->bg[GTK_STATE_ACTIVE] =color2;
style1->bg[GTK_STATE_PRELIGHT] =color2;
style1->bg[GTK_STATE_SELECTED] =color2;
style1->bg[GTK_STATE_INSENSITIVE] =color2;
gtk_widget_set_style( GTK_WIDGET( ScrolledWindow ) ,style1 ) ;
Thanks,
Jyothi.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]