Re: [gtk-list] Re: GGAD pseudo-error?



Alan Olsen wrote:

> On Sun, 27 Feb 2000, Antonio Campos wrote:
>
> > On chapter 10,  inside 10.5.4
> > the line that says:
> >
> > if ( (state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK )
> >
> > shouldn't just be?:
> >
> > if ( state & GDK_SHIFT_MASK )
>
> What if GDK_SHIFT_MASK == 0?
>
> alan@ctrl-alt-del.com | Note to AOL users: for a quick shortcut to reply
> Alan Olsen            | to my mail, just hit the ctrl, alt and del keys.
>     "In the future, everything will have its 15 minutes of blame."
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

According to gdktypes.h:

GDK_SHIFT_MASK    = 1 << 0

So, it seems that GDK_SHIFT_MASK is not 0, as never should happen with bit
masks. So, I still think is a bug in the book.



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