Set style of button, using custom color sets
- From: "Riswick, J.G.A. van" <J G A v Riswick tue nl>
- To: "'gtk-app-devel-list gnome org'" <gtk-app-devel-list gnome org>
- Subject: Set style of button, using custom color sets
- Date: Sat, 6 Oct 2001 19:56:46 +0200
HI!
I would like to make a button appear permanently
in the ACTIVE_STATE colors. But.. how does one change
a style in a gtk program? I tried someting like this:
I made a new gtk style which is a copy of the default
style of the application. Then after this, I added lines
like this:
activestyle->bg_gc[GTK_STATE_NORMAL]=wnd->style->bg_gc[GTK_STATE_ACTIVE];
gtk_widget_set_style(button,activestyle);
But the button doesn't appear in the color set I want.
Also in general I was wondering how to use my own colors to
display all kinds of widgets. Does anyone know an example
program in which this is done?
best regards
jos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]