Re: The '*' in gtk rcstrings? (was Re: Setting the background colour of a container)



La plume légère, à Wed, Sep 13, 2000 at 03:06:22PM -0700, heure d'inpiration,
learfox furry ao net écrivait en ces mots:
The above string was given by WolfGang I think, but what I noticed

No, it wasn't me, I promise ;-)

was that the name '*some_blue_fixed_widget' was used instead of
'some_blue_fixed_widget'. I tried this example and only with the * did
it work.

Is there a reason the * should be in there? what does * mean?

Because only one character can be contained in a gchar. To use a
string, you have to define a pointer (hence the '*') to the first
character of that string.


W




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]