note 438 added to gtk.gtkstyle.php
| From: | dpgirago at mdanderson dot org | Date: | Mon, 02 Aug 2004 17:21:47 +0000 |
| Subject: | note 438 added to gtk.gtkstyle.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2550@lists.php.net to get a copy of this message | ||
FWIW:
If all else fails, use gtk::widget_get_default_style();
------------------------------------------------------
$window = &new GtkWindow();
$appStyle = gtk::widget_get_default_style();
$basicBackGroundColor = &new GdkColor('#E0EEE0');
$mouseOverColor = &new GdkColor('#CFDEF1');
$appStyle->bg[GTK_STATE_NORMAL] = $basicBackGroundColor;
$appStyle->bg[GTK_STATE_PRELIGHT] = $mouseOverColor;
$window->set_style($appStyle);
It was the only way I could get colors changed on GtkScrolledWindow scrollbars and GtkCList column
headers.
http://gtk.php.net:80/manual/en/gtk.gtkstyle.php