Re: [gtk-list] just curious
- From: Federico Mena Quintero <federico nuclecu unam mx>
 
- To: gtk-list redhat com
 
- Subject: Re: [gtk-list] just curious
 
- Date: Mon, 21 Jun 1999 11:23:47 -0400
 
>  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]