mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
81d11ac0a8
g_signal_emit_by_name() is used to emit signals on ClutterContainer when actors are removed or added. It happens to do various interface lookups which are a bit unneccessary and can allocate memory. Simply using emission wrappers makes all of that go away. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1083
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/*
|
|
* Clutter.
|
|
*
|
|
* An OpenGL based 'interactive canvas' library.
|
|
*
|
|
* Copyright 2020 Red Hat, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __CLUTTER_CONTAINER_PRIVATE_H__
|
|
#define __CLUTTER_CONTAINER_PRIVATE_H__
|
|
|
|
#include <clutter/clutter-container.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void _clutter_container_emit_actor_added (ClutterContainer *container,
|
|
ClutterActor *actor);
|
|
void _clutter_container_emit_actor_removed (ClutterContainer *container,
|
|
ClutterActor *actor);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __CLUTTER_CONTAINER_PRIVATE_H__ */
|