gboolean gdk_event_get_state ( const GdkEvent* event, GdkModifierType* state )
If the event contains a “state” field, puts that field in
stores an empty state (0). Returns
TRUE if there was a state field
in the event.
event may be
NULL, in which case it’s treated
as if the event had no state field.
Return location for state.
The argument will be set by the function. The caller of the method takes ownership of the data, and is responsible for freeing it.