osx: Implemented hide cursor backend implementation

Add implementation for hide cursor in stage. Also added using this
feature in test-animator.
This commit is contained in:
Roman Kudiyarov 2010-07-15 19:04:28 +07:00 committed by Robert Bragg
parent f22b6a442c
commit 904f619419
2 changed files with 5 additions and 2 deletions

View File

@ -479,7 +479,10 @@ static void
clutter_stage_osx_set_cursor_visible (ClutterStageWindow *stage_window,
gboolean cursor_visible)
{
;/* FIXME */
if ( cursor_visible )
[NSCursor unhide];
else
[NSCursor hide];
}
static void

View File

@ -121,8 +121,8 @@ test_animator_main (gint argc,
clutter_animator_property_set_interpolation (animator, G_OBJECT (rects[0]),
"y", CLUTTER_INTERPOLATION_CUBIC);
clutter_stage_hide_cursor(CLUTTER_STAGE (stage));
clutter_actor_show (stage);
clutter_animator_set_duration (animator, 5000);
g_signal_connect (clutter_animator_start (animator),