clutter/actor: Drop depth property and functions

It is deprecated in favor of the 'z-position' property, and
the implementation itself redirects to the z-position, so
just drop it and replace all get|set_depth calls to their
z-position counterparts.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1332
This commit is contained in:
Georges Basile Stavracas Neto
2020-06-26 13:59:11 -03:00
committed by Robert Mader
parent e5542c3210
commit 387a13f0ab
5 changed files with 12 additions and 130 deletions

View File

@ -63,7 +63,7 @@ main (int argc, char *argv[])
button3 = clutter_rectangle_new_with_color (CLUTTER_COLOR_Blue);
clutter_actor_set_position (button3, 0, 2 * SIZE);
clutter_actor_set_size (button3, SIZE, SIZE);
clutter_actor_set_depth( button3, DEPTH);
clutter_actor_set_z_position (button3, DEPTH);
/* a nested hierarchy, to check that the relative positions are
computed properly */

View File

@ -16,7 +16,7 @@ group_depth_sorting (void)
child = clutter_rectangle_new ();
clutter_actor_set_size (child, 20, 20);
clutter_actor_set_depth (child, 0);
clutter_actor_set_z_position (child, 0);
clutter_actor_set_name (child, "zero");
clutter_container_add_actor (CLUTTER_CONTAINER (group), child);
@ -27,7 +27,7 @@ group_depth_sorting (void)
child = clutter_rectangle_new ();
clutter_actor_set_size (child, 20, 20);
clutter_actor_set_depth (child, 10);
clutter_actor_set_z_position (child, 10);
clutter_actor_set_name (child, "plus-ten");
clutter_container_add_actor (CLUTTER_CONTAINER (group), child);
@ -39,7 +39,7 @@ group_depth_sorting (void)
child = clutter_rectangle_new ();
clutter_actor_set_size (child, 20, 20);
clutter_actor_set_depth (child, -10);
clutter_actor_set_z_position (child, -10);
clutter_actor_set_name (child, "minus-ten");
clutter_container_add_actor (CLUTTER_CONTAINER (group), child);