osx: Fixed warnings in osx event implementation

This commit is contained in:
Roman Kudiyarov 2010-07-24 11:54:19 +07:00 committed by Robert Bragg
parent af8308295c
commit dc23b88de2

View File

@ -186,10 +186,10 @@ clutter_event_osx_translate (NSEvent *nsevent, ClutterEvent *event)
event->motion.modifier_state = [nsevent clutterModifierState]; event->motion.modifier_state = [nsevent clutterModifierState];
[nsevent clutterX:&(event->button.x) y:&(event->button.y)]; [nsevent clutterX:&(event->button.x) y:&(event->button.y)];
CLUTTER_NOTE (EVENT, "button %d %s at %d,%d clicks=%d", CLUTTER_NOTE (EVENT, "button %d %s at %f,%f clicks=%d",
[nsevent buttonNumber], (int)[nsevent buttonNumber],
event->type == CLUTTER_BUTTON_PRESS ? "press" : "release", event->type == CLUTTER_BUTTON_PRESS ? "press" : "release",
event->button.x, event->button.y, (float)event->button.x, (float)event->button.y,
event->button.click_count); event->button.click_count);
return TRUE; return TRUE;
@ -202,9 +202,9 @@ clutter_event_osx_translate (NSEvent *nsevent, ClutterEvent *event)
[nsevent clutterX:&(event->motion.x) y:&(event->motion.y)]; [nsevent clutterX:&(event->motion.x) y:&(event->motion.y)];
event->motion.modifier_state = [nsevent clutterModifierState]; event->motion.modifier_state = [nsevent clutterModifierState];
CLUTTER_NOTE (EVENT, "motion %d at %d,%d", CLUTTER_NOTE (EVENT, "motion %d at %f,%f",
[nsevent buttonNumber], (int)[nsevent buttonNumber],
event->button.x, event->button.y); (float)event->button.x, (float)event->button.y);
return TRUE; return TRUE;
case NSKeyDown: case NSKeyDown:
@ -228,7 +228,7 @@ clutter_event_osx_translate (NSEvent *nsevent, ClutterEvent *event)
return TRUE; return TRUE;
default: default:
CLUTTER_NOTE (EVENT, "unhandled event %d", [nsevent type]); CLUTTER_NOTE (EVENT, "unhandled event %d", (int)[nsevent type]);
break; break;
} }