Re: GtkStyles and RC-Files.
- From: Simon Budig <Simon Budig unix-ag uni-siegen de>
- To: Sven Neumann <sven gimp org>
- Cc: gtk-list gnome org
- Subject: Re: GtkStyles and RC-Files.
- Date: Thu, 26 Jul 2001 17:37:32 +0200
Simon Budig (Simon Budig unix-ag uni-siegen de) wrote:
> Sven Neumann (sven gimp org) wrote:
> > Of course you can name your buttons "foobw_okbutton", "foobw_cancelbutton"
> > and the like as long as it matches the definition in the gtkrc.
>
> Ok, this works and is a solution for my problem.
Hmm - maybe I said this too early.
Somehow the matching against widget-names is weird.
I have attached two files, a testbug.c which is written for gtk+-1.2.10
and a testbug.gtkrc which gets parsed at runtime.
In this combination everything works as expected. The two buttons have
red resb. green text on black background in the normal state.
However, if I change the lines
widget "*brokkoli*" style "red"
widget "*gemuese*" style "green"
to
widget "*brokkoli" style "red"
widget "*gemuese" style "green"
somehow only the half style gets applied. I have a black background
and black text here, but I also had (in a similiar program dark grey
text appeared).
When I change that to
widget "brokkoli" style "red"
widget "gemuese" style "green"
the styles don't get applied.
Is there some weird Name-mangling going on inside the library? What is
hapening here?
Thanks for your help,
Simon
--
Simon Budig unix-ag org http://www.home.unix-ag.org/simon/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]