Re: [gtk-list] just curious



>  how come many of gdk enums start with 1 << 1, and not 1 << 0?

Actually, only two of them do :-)

This is mostly for historical reasons.  Look at the event mask
translation table in gdkwindow.c:46 and at the translation code in
gdkwindow.c:317.  There is no reason not to start from 0, but that
code originally did it like that, so it stuck.

  Federico



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