Problem with rc-files
- From: "Rene' Seindal" <rene seindal dk>
- To: gtk-list redhat com
- Subject: Problem with rc-files
- Date: Sat, 2 Oct 1999 00:18:20 +0200
I have a problem. I have a little game, and I want the background to be
green. I just can't get it to work right.
The top-level widget has the name "GTKabale". No other widget has been
given names.
I started with this:
style "GTKabale"
{
bg[NORMAL] = { 0, 1.0, 0 }
}
widget "*" style "GTKabale"
and the background was green. That's fine, but now gimp is green too.
They I tried to restrict it to my program alone:
style "GTKabale"
{
bg[NORMAL] = { 0, 1.0, 0 }
}
widget "GTKabale*" style "GTKabale"
and only a couple of labels were green, all the rest grey as
normal. This seems very wrong, as the file is practically copied from
the docs.
I know I can just make a separate file, but the above should work anyway.
I am using gtk+/glib 1.2.5. The application is made with glade 0.5.3.
BTW, the hierarchy is (more or less)
window (GTKabale)
vbox
hbox
fixed
hbox
button
button
button
button
pixmap
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed
hbox
label (these become green in the second example above)
label
label
label
label
--
René Seindal (rene@seindal.dk) http://www.seindal.dk/rene/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]