mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
clutter: Remove clutter_container_sort_depth_order
Unused. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2057>
This commit is contained in:
parent
136caca5d5
commit
1a978df4a7
@ -139,11 +139,6 @@ container_real_lower (ClutterContainer *container,
|
|||||||
clutter_actor_set_child_below_sibling (self, child, sibling);
|
clutter_actor_set_child_below_sibling (self, child, sibling);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
container_real_sort_depth_order (ClutterContainer *container)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_container_default_init (ClutterContainerInterface *iface)
|
clutter_container_default_init (ClutterContainerInterface *iface)
|
||||||
{
|
{
|
||||||
@ -215,7 +210,6 @@ clutter_container_default_init (ClutterContainerInterface *iface)
|
|||||||
iface->remove = container_real_remove;
|
iface->remove = container_real_remove;
|
||||||
iface->raise = container_real_raise;
|
iface->raise = container_real_raise;
|
||||||
iface->lower = container_real_lower;
|
iface->lower = container_real_lower;
|
||||||
iface->sort_depth_order = container_real_sort_depth_order;
|
|
||||||
|
|
||||||
iface->child_meta_type = G_TYPE_INVALID;
|
iface->child_meta_type = G_TYPE_INVALID;
|
||||||
iface->create_child_meta = create_child_meta;
|
iface->create_child_meta = create_child_meta;
|
||||||
@ -608,42 +602,6 @@ clutter_container_lower_child (ClutterContainer *container,
|
|||||||
iface->lower (container, actor, sibling);
|
iface->lower (container, actor, sibling);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_container_sort_depth_order:
|
|
||||||
* @container: a #ClutterContainer
|
|
||||||
*
|
|
||||||
* Sorts a container's children using their depth. This function should not
|
|
||||||
* be normally used by applications.
|
|
||||||
*
|
|
||||||
* Since: 0.6
|
|
||||||
*
|
|
||||||
* Deprecated: 1.10: The #ClutterContainerIface.sort_depth_order() virtual
|
|
||||||
* function should not be used any more; the default implementation in
|
|
||||||
* #ClutterContainer does not do anything.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
clutter_container_sort_depth_order (ClutterContainer *container)
|
|
||||||
{
|
|
||||||
ClutterContainerIface *iface;
|
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_CONTAINER (container));
|
|
||||||
|
|
||||||
iface = CLUTTER_CONTAINER_GET_IFACE (container);
|
|
||||||
|
|
||||||
#ifdef CLUTTER_ENABLE_DEBUG
|
|
||||||
if (G_UNLIKELY (_clutter_diagnostic_enabled ()))
|
|
||||||
{
|
|
||||||
if (iface->sort_depth_order != container_real_sort_depth_order)
|
|
||||||
_clutter_diagnostic_message ("The ClutterContainer::sort_depth_order() "
|
|
||||||
"virtual function has been deprecated "
|
|
||||||
"and it should not be overridden by "
|
|
||||||
"newly written code");
|
|
||||||
}
|
|
||||||
#endif /* CLUTTER_ENABLE_DEBUG */
|
|
||||||
|
|
||||||
iface->sort_depth_order (container);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_container_find_child_by_name:
|
* clutter_container_find_child_by_name:
|
||||||
* @container: a #ClutterContainer
|
* @container: a #ClutterContainer
|
||||||
|
@ -63,9 +63,6 @@ typedef struct _ClutterContainerIface ClutterContainerIface;
|
|||||||
* deprecated and it should not be overridden.
|
* deprecated and it should not be overridden.
|
||||||
* @lower: virtual function for lowering a child. This virtual function is
|
* @lower: virtual function for lowering a child. This virtual function is
|
||||||
* deprecated and it should not be overridden.
|
* deprecated and it should not be overridden.
|
||||||
* @sort_depth_order: virtual function for sorting the children of a
|
|
||||||
* container depending on their depth. This virtual function is deprecated
|
|
||||||
* and it should not be overridden.
|
|
||||||
* @child_meta_type: The GType used for storing auxiliary information about
|
* @child_meta_type: The GType used for storing auxiliary information about
|
||||||
* each of the containers children.
|
* each of the containers children.
|
||||||
* @create_child_meta: virtual function that gets called for each added
|
* @create_child_meta: virtual function that gets called for each added
|
||||||
@ -104,7 +101,6 @@ struct _ClutterContainerIface
|
|||||||
void (* lower) (ClutterContainer *container,
|
void (* lower) (ClutterContainer *container,
|
||||||
ClutterActor *actor,
|
ClutterActor *actor,
|
||||||
ClutterActor *sibling);
|
ClutterActor *sibling);
|
||||||
void (* sort_depth_order) (ClutterContainer *container);
|
|
||||||
|
|
||||||
/* ClutterChildMeta management */
|
/* ClutterChildMeta management */
|
||||||
GType child_meta_type;
|
GType child_meta_type;
|
||||||
|
@ -65,9 +65,6 @@ void clutter_container_lower_child (ClutterContaine
|
|||||||
ClutterActor *actor,
|
ClutterActor *actor,
|
||||||
ClutterActor *sibling);
|
ClutterActor *sibling);
|
||||||
|
|
||||||
CLUTTER_DEPRECATED
|
|
||||||
void clutter_container_sort_depth_order (ClutterContainer *container);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __CLUTTER_CONTAINER_DEPRECATED_H__ */
|
#endif /* __CLUTTER_CONTAINER_DEPRECATED_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user