From 904f619419b414e5de86b4bca5cd0f811ef02c87 Mon Sep 17 00:00:00 2001 From: Roman Kudiyarov Date: Thu, 15 Jul 2010 19:04:28 +0700 Subject: [PATCH] osx: Implemented hide cursor backend implementation Add implementation for hide cursor in stage. Also added using this feature in test-animator. --- clutter/osx/clutter-stage-osx.c | 5 ++++- tests/interactive/test-animator.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/clutter/osx/clutter-stage-osx.c b/clutter/osx/clutter-stage-osx.c index 8207f0a0d..26f5bc52c 100644 --- a/clutter/osx/clutter-stage-osx.c +++ b/clutter/osx/clutter-stage-osx.c @@ -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 diff --git a/tests/interactive/test-animator.c b/tests/interactive/test-animator.c index 48227bf35..7ece86992 100644 --- a/tests/interactive/test-animator.c +++ b/tests/interactive/test-animator.c @@ -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),