cleanup: Remove unused callbacks
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3570>
This commit is contained in:
parent
4c4735cdf6
commit
467120d5aa
5 changed files with 2 additions and 46 deletions
|
@ -83,9 +83,7 @@ typedef ClutterActorTraverseVisitFlags (*ClutterTraverseCallback) (ClutterActor
|
||||||
* @user_data: The private data specified when starting the iteration
|
* @user_data: The private data specified when starting the iteration
|
||||||
*
|
*
|
||||||
* A generic callback for iterating over actor, such as with
|
* A generic callback for iterating over actor, such as with
|
||||||
* _clutter_actor_foreach_child. The difference when compared to
|
* _clutter_actor_foreach_child.
|
||||||
* #ClutterCallback is that it returns a boolean so it is possible to break
|
|
||||||
* out of an iteration early.
|
|
||||||
*
|
*
|
||||||
* Return value: %TRUE to continue iterating or %FALSE to break iteration
|
* Return value: %TRUE to continue iterating or %FALSE to break iteration
|
||||||
* early.
|
* early.
|
||||||
|
|
|
@ -56,24 +56,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterActor, g_object_unref)
|
||||||
typedef struct _ClutterActorClass ClutterActorClass;
|
typedef struct _ClutterActorClass ClutterActorClass;
|
||||||
typedef struct _ClutterActorPrivate ClutterActorPrivate;
|
typedef struct _ClutterActorPrivate ClutterActorPrivate;
|
||||||
|
|
||||||
/**
|
|
||||||
* ClutterCallback:
|
|
||||||
* @actor: a #ClutterActor
|
|
||||||
* @data: (closure): user data
|
|
||||||
*
|
|
||||||
* Generic callback
|
|
||||||
*/
|
|
||||||
typedef void (*ClutterCallback) (ClutterActor *actor,
|
|
||||||
gpointer data);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* CLUTTER_CALLBACK:
|
|
||||||
* @f: a function
|
|
||||||
*
|
|
||||||
* Convenience macro to cast a function to #ClutterCallback
|
|
||||||
*/
|
|
||||||
#define CLUTTER_CALLBACK(f) ((ClutterCallback) (f))
|
|
||||||
|
|
||||||
|
|
||||||
struct _ClutterActor
|
struct _ClutterActor
|
||||||
{
|
{
|
||||||
|
|
|
@ -429,7 +429,7 @@ clutter_binding_pool_find (const gchar *name)
|
||||||
* @action_name: the name of the action
|
* @action_name: the name of the action
|
||||||
* @key_val: key symbol
|
* @key_val: key symbol
|
||||||
* @modifiers: bitmask of modifiers
|
* @modifiers: bitmask of modifiers
|
||||||
* @callback: (type Clutter.BindingActionFunc): function to be called
|
* @callback: function to be called
|
||||||
* when the action is activated
|
* when the action is activated
|
||||||
* @data: data to be passed to @callback
|
* @data: data to be passed to @callback
|
||||||
* @notify: function to be called when the action is removed
|
* @notify: function to be called when the action is removed
|
||||||
|
|
|
@ -42,27 +42,6 @@ G_DECLARE_FINAL_TYPE (ClutterBindingPool,
|
||||||
BINDING_POOL,
|
BINDING_POOL,
|
||||||
GObject)
|
GObject)
|
||||||
|
|
||||||
/**
|
|
||||||
* ClutterBindingActionFunc:
|
|
||||||
* @gobject: a #GObject
|
|
||||||
* @action_name: the name of the action
|
|
||||||
* @key_val: the key symbol
|
|
||||||
* @modifiers: bitmask of the modifier flags
|
|
||||||
* @user_data: data passed to the function
|
|
||||||
*
|
|
||||||
* The prototype for the callback function registered with
|
|
||||||
* [method@Clutter.BindingPool.install_action] and invoked by
|
|
||||||
* [method@Clutter.BindingPool.activate].
|
|
||||||
*
|
|
||||||
* Return value: the function should return %TRUE if the key
|
|
||||||
* binding has been handled, and return %FALSE otherwise
|
|
||||||
*/
|
|
||||||
typedef gboolean (* ClutterBindingActionFunc) (GObject *gobject,
|
|
||||||
const gchar *action_name,
|
|
||||||
guint key_val,
|
|
||||||
ClutterModifierType modifiers,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterBindingPool * clutter_binding_pool_new (const gchar *name);
|
ClutterBindingPool * clutter_binding_pool_new (const gchar *name);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
#include "backends/native/meta-kms-types.h"
|
#include "backends/native/meta-kms-types.h"
|
||||||
#include "backends/native/meta-kms-types-private.h"
|
#include "backends/native/meta-kms-types-private.h"
|
||||||
|
|
||||||
typedef void (* MetaKmsCallback) (MetaKms *kms,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
void meta_kms_queue_callback (MetaKms *kms,
|
void meta_kms_queue_callback (MetaKms *kms,
|
||||||
GMainContext *main_context,
|
GMainContext *main_context,
|
||||||
MetaThreadCallback callback,
|
MetaThreadCallback callback,
|
||||||
|
|
Loading…
Reference in a new issue