GNOME Bugzilla – Bug 634994
Explicitly declare internal reserved bits in GdkModifierType
Last modified: 2011-05-16 16:40:52 UTC
XKB and GDK both add "internal" bits to GdkModifierType. In C, this typically doesn't cause problems as bitfields are just integers, and there's no validation. However for bindings, it's normal to convert enumerations to "native" enumeration types, which don't support unknown bits. See bug 597292.
Created attachment 174607 [details] [review] Explicitly declare internal reserved bits in GdkModifierType
Review of attachment 174607 [details] [review]: This is somewhat obnoxious. Isn't this what you are supposed to use GDK_MODIFIER_MASK for ?
(In reply to comment #2) > Review of attachment 174607 [details] [review]: > > This is somewhat obnoxious. Isn't this what you are supposed to use > GDK_MODIFIER_MASK for ? You mean, any time we get a GdkModifierType value from C, we should & it with GDK_MODIFIER_MASK? The basic answer is we don't have a place to do that anymore with automatic bindings.
Ping on this patch...
Go ahead, if you still need this. Any other enumerations where we need such masks ?