Re: [gtk-list] sources



Alexander Kotelnikov wrote:

> Hello,
> I'm browsing gtk code and meet construnctions like this:
> guint         parent_sensitive : 1;
>                                ^^^
> can anybody tell me what does this mean?

It's regular C. It means that this should only take one bit in memory. When
you have lots of field in a structure, that should only take two value
(boolean), then instead of using lots of byte, you can pack all the fields by
defining the size in bits.

> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



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