[events] Added handling of missing type to clutter_event_get_state

clutter_event_get_state wasn't returning the state for
CLUTTER_BUTTON_RELEASE, the information was there it just needed to
be returned correctly.
This commit is contained in:
Øyvind Kolås 2009-04-30 11:54:09 +01:00
parent 48ac45f060
commit 8e6e09c8ef

View File

@ -95,6 +95,7 @@ clutter_event_get_state (ClutterEvent *event)
case CLUTTER_KEY_RELEASE:
return event->key.modifier_state;
case CLUTTER_BUTTON_PRESS:
case CLUTTER_BUTTON_RELEASE:
return event->button.modifier_state;
case CLUTTER_MOTION:
return event->motion.modifier_state;