This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdk-window-get-events returns all-events-mask


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]