mirror of
https://github.com/brl/mutter.git
synced 2025-04-13 21:59:38 +00:00
compositor: Drop unused private functions
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3492>
This commit is contained in:
parent
77d71b5530
commit
ad49ecccf7
@ -1,7 +0,0 @@
|
|||||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "meta/meta-background-actor.h"
|
|
||||||
|
|
||||||
MtkRegion *meta_background_actor_get_clip_region (MetaBackgroundActor *self);
|
|
@ -21,10 +21,9 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "compositor/meta-background-actor-private.h"
|
|
||||||
#include "compositor/meta-background-content-private.h"
|
#include "compositor/meta-background-content-private.h"
|
||||||
|
|
||||||
#include "compositor/meta-cullable.h"
|
#include "compositor/meta-cullable.h"
|
||||||
|
#include "meta/meta-background-actor.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
@ -193,20 +192,3 @@ cullable_iface_init (MetaCullableInterface *iface)
|
|||||||
iface->cull_unobscured = meta_background_actor_cull_unobscured;
|
iface->cull_unobscured = meta_background_actor_cull_unobscured;
|
||||||
iface->cull_redraw_clip = meta_background_actor_cull_redraw_clip;
|
iface->cull_redraw_clip = meta_background_actor_cull_redraw_clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* meta_background_actor_get_clip_region:
|
|
||||||
* @self: a #MetaBackgroundActor
|
|
||||||
*
|
|
||||||
* Return value (transfer none): a #MtkRegion that represents the part of
|
|
||||||
* the background not obscured by other #MetaBackgroundActor or
|
|
||||||
* #MetaWindowActor objects.
|
|
||||||
*/
|
|
||||||
MtkRegion *
|
|
||||||
meta_background_actor_get_clip_region (MetaBackgroundActor *self)
|
|
||||||
{
|
|
||||||
if (!self->content)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return meta_background_content_get_clip_region (self->content);
|
|
||||||
}
|
|
||||||
|
@ -21,5 +21,3 @@
|
|||||||
#include "meta/meta-dnd.h"
|
#include "meta/meta-dnd.h"
|
||||||
|
|
||||||
MetaDnd * meta_dnd_new (MetaBackend *backend);
|
MetaDnd * meta_dnd_new (MetaBackend *backend);
|
||||||
|
|
||||||
MetaBackend * meta_dnd_get_backend (MetaDnd *dnd);
|
|
||||||
|
@ -117,14 +117,6 @@ meta_dnd_new (MetaBackend *backend)
|
|||||||
return dnd;
|
return dnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
MetaBackend *
|
|
||||||
meta_dnd_get_backend (MetaDnd *dnd)
|
|
||||||
{
|
|
||||||
MetaDndPrivate *priv = meta_dnd_get_instance_private (dnd);
|
|
||||||
|
|
||||||
return priv->backend;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef HAVE_X11
|
#ifdef HAVE_X11
|
||||||
void
|
void
|
||||||
meta_dnd_init_xdnd (MetaX11Display *x11_display)
|
meta_dnd_init_xdnd (MetaX11Display *x11_display)
|
||||||
@ -252,8 +244,8 @@ meta_dnd_handle_xdnd_event (MetaBackend *backend,
|
|||||||
static MetaWaylandDataDevice *
|
static MetaWaylandDataDevice *
|
||||||
data_device_from_dnd (MetaDnd *dnd)
|
data_device_from_dnd (MetaDnd *dnd)
|
||||||
{
|
{
|
||||||
MetaBackend *backend = meta_dnd_get_backend (dnd);
|
MetaDndPrivate *priv = meta_dnd_get_instance_private (dnd);
|
||||||
MetaContext *context = meta_backend_get_context (backend);
|
MetaContext *context = meta_backend_get_context (priv->backend);
|
||||||
MetaWaylandCompositor *compositor =
|
MetaWaylandCompositor *compositor =
|
||||||
meta_context_get_wayland_compositor (context);
|
meta_context_get_wayland_compositor (context);
|
||||||
|
|
||||||
|
@ -44,11 +44,6 @@ struct _MetaFeedbackActorClass
|
|||||||
ClutterActorClass parent_class;
|
ClutterActorClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ClutterActor * meta_feedback_actor_new (MetaCompositor *compositor,
|
|
||||||
float anchor_x,
|
|
||||||
float anchor_y);
|
|
||||||
|
|
||||||
void meta_feedback_actor_set_anchor (MetaFeedbackActor *actor,
|
void meta_feedback_actor_set_anchor (MetaFeedbackActor *actor,
|
||||||
float anchor_x,
|
float anchor_x,
|
||||||
float anchor_y);
|
float anchor_y);
|
||||||
|
@ -196,29 +196,6 @@ meta_feedback_actor_init (MetaFeedbackActor *self)
|
|||||||
clutter_actor_set_reactive (CLUTTER_ACTOR (self), FALSE);
|
clutter_actor_set_reactive (CLUTTER_ACTOR (self), FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* meta_feedback_actor_new:
|
|
||||||
*
|
|
||||||
* Creates a new actor to draw the current drag and drop surface.
|
|
||||||
*
|
|
||||||
* Return value: the newly created background actor
|
|
||||||
*/
|
|
||||||
ClutterActor *
|
|
||||||
meta_feedback_actor_new (MetaCompositor *compositor,
|
|
||||||
float anchor_x,
|
|
||||||
float anchor_y)
|
|
||||||
{
|
|
||||||
MetaFeedbackActor *self;
|
|
||||||
|
|
||||||
self = g_object_new (META_TYPE_FEEDBACK_ACTOR,
|
|
||||||
"compositor", compositor,
|
|
||||||
"anchor-x", anchor_x,
|
|
||||||
"anchor-y", anchor_y,
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
return CLUTTER_ACTOR (self);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_feedback_actor_set_anchor (MetaFeedbackActor *self,
|
meta_feedback_actor_set_anchor (MetaFeedbackActor *self,
|
||||||
float anchor_x,
|
float anchor_x,
|
||||||
|
@ -20,5 +20,3 @@
|
|||||||
#include "meta/types.h"
|
#include "meta/types.h"
|
||||||
|
|
||||||
MetaLaters * meta_laters_new (MetaCompositor *compositor);
|
MetaLaters * meta_laters_new (MetaCompositor *compositor);
|
||||||
|
|
||||||
void meta_laters_free (MetaLaters *laters);
|
|
||||||
|
@ -51,7 +51,6 @@ void meta_shaped_texture_set_viewport_dst_size (MetaShapedTexture *stex,
|
|||||||
void meta_shaped_texture_reset_viewport_dst_size (MetaShapedTexture *stex);
|
void meta_shaped_texture_reset_viewport_dst_size (MetaShapedTexture *stex);
|
||||||
void meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,
|
void meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,
|
||||||
int buffer_scale);
|
int buffer_scale);
|
||||||
int meta_shaped_texture_get_buffer_scale (MetaShapedTexture *stex);
|
|
||||||
|
|
||||||
gboolean meta_shaped_texture_update_area (MetaShapedTexture *stex,
|
gboolean meta_shaped_texture_update_area (MetaShapedTexture *stex,
|
||||||
int x,
|
int x,
|
||||||
|
@ -1535,14 +1535,6 @@ meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,
|
|||||||
invalidate_size (stex);
|
invalidate_size (stex);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
meta_shaped_texture_get_buffer_scale (MetaShapedTexture *stex)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (META_IS_SHAPED_TEXTURE (stex), 1.0);
|
|
||||||
|
|
||||||
return stex->buffer_scale;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* meta_shaped_texture_get_width:
|
* meta_shaped_texture_get_width:
|
||||||
* @stex: A #MetaShapedTexture
|
* @stex: A #MetaShapedTexture
|
||||||
|
@ -70,8 +70,6 @@ MetaWindowActorChanges meta_window_actor_sync_actor_geometry (MetaWindowActor *s
|
|||||||
gboolean did_placement);
|
gboolean did_placement);
|
||||||
|
|
||||||
void meta_window_actor_update_opacity (MetaWindowActor *self);
|
void meta_window_actor_update_opacity (MetaWindowActor *self);
|
||||||
void meta_window_actor_mapped (MetaWindowActor *self);
|
|
||||||
void meta_window_actor_unmapped (MetaWindowActor *self);
|
|
||||||
void meta_window_actor_sync_updates_frozen (MetaWindowActor *self);
|
void meta_window_actor_sync_updates_frozen (MetaWindowActor *self);
|
||||||
|
|
||||||
META_EXPORT_TEST
|
META_EXPORT_TEST
|
||||||
|
@ -294,7 +294,6 @@ mutter_sources = [
|
|||||||
'compositor/edge-resistance.c',
|
'compositor/edge-resistance.c',
|
||||||
'compositor/edge-resistance.h',
|
'compositor/edge-resistance.h',
|
||||||
'compositor/meta-background-actor.c',
|
'compositor/meta-background-actor.c',
|
||||||
'compositor/meta-background-actor-private.h',
|
|
||||||
'compositor/meta-background-content.c',
|
'compositor/meta-background-content.c',
|
||||||
'compositor/meta-background-content-private.h',
|
'compositor/meta-background-content-private.h',
|
||||||
'compositor/meta-background.c',
|
'compositor/meta-background.c',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user