This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: gdk-window-get-events returns all-events-mask
- From: Daniel Skarda <0rfelyus at ucw dot cz>
- To: guile-gtk at sources dot redhat dot com
- Date: Sun, 16 Mar 2003 09:50:36 +0100
- Subject: Re: gdk-window-get-events returns all-events-mask
- References: <87bs0s9hka.fsf@zip.com.au>
Hello,
> It looks like sgtk_enum_flags_init ended up sorting "all-events-mask"
> to the start of the literals array, then sgtk_flags2scm thinks it
> matches "val & info->literals[i].value".
thank you for your bugreport. I hope that
if ((val & info->literals[i].value) == info->literals [i].value)
solves your problem.
> Perhaps all-events-mask could be tagged for use only by scm2flags, not
> flags2scm.
Fortunately it is not necessary (after the bugfix). all-events-mask == 0xffff
and the last event substructure-mask == 1 << 20, so equality in above "if" is
not going to be problem anymore.
Have a nice day,
0.