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:
parent
f22b6a442c
commit
904f619419
@ -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
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user