*: Fix spelling mistakes found by codespell

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1410
This commit is contained in:
Björn Daase
2020-08-26 11:49:50 +02:00
committed by Robert Mader
parent 5962ee7939
commit 5ec9bde64f
133 changed files with 243 additions and 243 deletions

View File

@ -34,7 +34,7 @@
* - Input device configuration (using the #ClutterDeviceManager)
* - Creating the #MetaRenderer
* - Setting up the stage of the scene graph (using #MetaStage)
* - Creating the object that deals wih the cursor (using #MetaCursorTracker)
* - Creating the object that deals with the cursor (using #MetaCursorTracker)
* and its possible pointer constraint (using #MetaPointerConstraint)
* - Setting the cursor sprite (using #MetaCursorRenderer)
* - Interacting with logind (using the appropriate D-Bus interface)
@ -1329,7 +1329,7 @@ meta_backend_get_client_pointer_constraint (MetaBackend *backend)
* @constraint: (nullable): the client constraint to follow.
*
* Sets the current pointer constraint and removes (and unrefs) the previous
* one. If @constrant is %NULL, this means that there is no
* one. If @constraint is %NULL, this means that there is no
* #MetaPointerConstraint active.
*/
void

View File

@ -34,7 +34,7 @@ meta_create_xkb_context (void)
/*
* We can only append search paths in libxkbcommon, so we start with an
* emtpy set, then add the XDG dir, then add the default search paths.
* empty set, then add the XDG dir, then add the default search paths.
*/
ctx = xkb_context_new (XKB_CONTEXT_NO_DEFAULT_INCLUDES);

View File

@ -48,7 +48,7 @@ struct _MetaLogicalMonitor
It can be matched to a winsys_id of a MetaOutput.
This is used as an opaque token on reconfiguration when switching from
clone to extened, to decide on what output the windows should go next
clone to extended, to decide on what output the windows should go next
(it's an attempt to keep windows on the same monitor, and preferably on
the primary one).
*/

View File

@ -1531,7 +1531,7 @@ meta_monitor_config_store_constructed (GObject *object)
META_MONITOR_CONFIG_STORE_ERROR_NEEDS_MIGRATION))
g_warning ("System monitor configuration file (%s) is "
"incompatible; ask your administrator to migrate "
"the system monitor configuation.",
"the system monitor configuration.",
system_file_path);
else
g_warning ("Failed to read monitors config file '%s': %s",

View File

@ -73,7 +73,7 @@ typedef struct _MetaMonitorPrivate
* It can be matched to a winsys_id of a MetaOutput.
*
* This is used as an opaque token on reconfiguration when switching from
* clone to extened, to decide on what output the windows should go next
* clone to extended, to decide on what output the windows should go next
* (it's an attempt to keep windows on the same monitor, and preferably on
* the primary one).
*/

View File

@ -494,7 +494,7 @@ update_stickykeys_event (ClutterEvent *event,
static void
notify_stickykeys_change (MetaInputDeviceNative *device)
{
/* Everytime sticky keys setting is changed, clear the masks */
/* Every time sticky keys setting is changed, clear the masks */
device->stickykeys_depressed_mask = 0;
update_internal_xkb_state (device, 0, 0);

View File

@ -38,7 +38,7 @@
#include "backends/meta-gles3-table.h"
/*
* GL/gl.h being included may conflit with gl3.h on some architectures.
* GL/gl.h being included may conflict with gl3.h on some architectures.
* Make sure that hasn't happened on any architecture.
*/
#ifdef GL_VERSION_1_1

View File

@ -3142,7 +3142,7 @@ meta_seat_native_reclaim_devices (MetaSeatNative *seat)
* @seat: the #ClutterSeat created by the evdev backend
* @keymap: the new keymap
*
* Instructs @evdev to use the speficied keyboard map. This will cause
* Instructs @evdev to use the specified keyboard map. This will cause
* the backend to drop the state and create a new one with the new
* map. To avoid state being lost, callers should ensure that no key
* is pressed when calling this function.

View File

@ -958,7 +958,7 @@ translate_raw_event (MetaSeatX11 *seat_x11,
/* We don't get actual pointer location with raw events, and we cannot
* rely on `clutter_input_device_get_coords()` either because of
* unreparented toplevels (like all client-side decoration windows),
* so we need to explicitely query the pointer here...
* so we need to explicitly query the pointer here...
*/
if (meta_input_device_x11_get_pointer_location (device, &x, &y))
_clutter_input_pointer_a11y_on_motion_event (device, x, y);

View File

@ -764,7 +764,7 @@ meta_compositor_switch_workspace (MetaCompositor *compositor,
{
priv->switch_workspace_in_progress--;
/* We have to explicitely call this to fix up stacking order of the
/* We have to explicitly call this to fix up stacking order of the
* actors; this is because the abs stacking position of actors does not
* necessarily change during the window hiding/unhiding, only their
* relative position toward the destkop window.
@ -1057,7 +1057,7 @@ on_presented (ClutterStage *stage,
* clock_gettime(CLOCK_MONOTONIC), so the same as g_get_monotonic_time),
* but there's no exposure of that through the API. clock_gettime()
* is fairly fast, so calling it twice and subtracting to get a
* nearly-zero number is acceptable, if a litle ugly.
* nearly-zero number is acceptable, if a little ugly.
*/
current_cogl_time = cogl_get_clock_time (priv->context);
current_monotonic_time = g_get_monotonic_time ();
@ -1318,8 +1318,8 @@ meta_compositor_class_init (MetaCompositorClass *klass)
* meta_disable_unredirect_for_display:
* @display: a #MetaDisplay
*
* Disables unredirection, can be usefull in situations where having
* unredirected windows is undesireable like when recording a video.
* Disables unredirection, can be useful in situations where having
* unredirected windows is undesirable like when recording a video.
*
*/
void

View File

@ -222,7 +222,7 @@ out:
*
* Loads an image to use as a background, or returns a reference to an
* image that is already in the process of loading or loaded. In either
* case, what is returned is a #MetaBackgroundImage which can be derefenced
* case, what is returned is a #MetaBackgroundImage which can be dereferenced
* to get a #CoglTexture. If meta_background_image_is_loaded() returns %TRUE,
* the background is loaded, otherwise the MetaBackgroundImage::loaded
* signal will be emitted exactly once. The 'loaded' state means that the

View File

@ -19,7 +19,7 @@
/**
* SECTION:meta-shadow-factory
* @title: MetaShadowFactory
* @short_description: Create and cache shadow textures for abritrary window shapes
* @short_description: Create and cache shadow textures for arbitrary window shapes
*/
#include "config.h"

View File

@ -1515,9 +1515,9 @@ meta_shaped_texture_new (void)
* @stex: A #MetaShapedTexture
* @buffer_scale: The scale that should be applied to coorsinate space
*
* Instructs @stex to intepret the geometry of the input texture by scaling it
* Instructs @stex to interpret the geometry of the input texture by scaling it
* with @buffer_scale. This means that the #CoglTexture that is provided by a
* client is alreay scaled by that factor.
* client is already scaled by that factor.
*/
void
meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,

View File

@ -506,7 +506,7 @@ has_shadow (MetaWindowActorX11 *actor_x11)
if (actor_x11->shadow_mode == META_SHADOW_MODE_FORCED_ON)
return TRUE;
/* Leaving out shadows for maximized and fullscreen windows is an effeciency
/* Leaving out shadows for maximized and fullscreen windows is an efficiency
* win and also prevents the unsightly effect of the shadow of maximized
* window appearing on an adjacent window */
if ((meta_window_get_maximized (window) == META_MAXIMIZE_BOTH) ||

View File

@ -33,7 +33,7 @@
* in visual mode and calls through to bell_visual_notify(). That
* function then checks what kind of visual flash you like, and calls either
* bell_flash_fullscreen()-- which calls bell_flash_screen() to do
* its work-- or bell_flash_frame(), which flashes the focussed window
* its work-- or bell_flash_frame(), which flashes the focused window
* using bell_flash_window(), unless there is no such window, in
* which case it flashes the screen instead.
*

View File

@ -72,7 +72,7 @@ char* meta_rectangle_edge_list_to_string (
/* Resize old_rect to the given new_width and new_height, but store the
* result in rect. NOTE THAT THIS IS RESIZE ONLY SO IT CANNOT BE USED FOR
* A MOVERESIZE OPERATION (that simplies the routine a little bit as it
* A MOVERESIZE OPERATION (that simplifies the routine a little bit as it
* means there's no difference between META_GRAVITY_NORTH_WEST and
* META_GRAVITY_STATIC. Also, I lied a little bit--technically, you could use
* it in a MoveResize operation if you muck with old_rect just right).
@ -119,7 +119,7 @@ GList* meta_rectangle_expand_region_conditionally (
const int min_y);
/* Expand rect in direction to the size of expand_to, and then clip out any
* overlapping struts oriented orthognal to the expansion direction. (Think
* overlapping struts oriented orthogonal to the expansion direction. (Think
* horizontal or vertical maximization)
*/
META_EXPORT_TEST

View File

@ -681,7 +681,7 @@ get_size_limits (MetaWindow *window,
MetaRectangle *min_size,
MetaRectangle *max_size)
{
/* We pack the results into MetaRectangle structs just for convienience; we
/* We pack the results into MetaRectangle structs just for convenience; we
* don't actually use the position of those rects.
*/
min_size->x = min_size->y = max_size->x = max_size->y = 0;

View File

@ -1546,7 +1546,7 @@ meta_display_lookup_stack_id (MetaDisplay *display,
}
/* We return a pointer into a ring of static buffers. This is to make
* using this function for debug-logging convenient and avoid tempory
* using this function for debug-logging convenient and avoid temporary
* strings that must be freed. */
const char *
meta_display_describe_stack_id (MetaDisplay *display,
@ -2215,7 +2215,7 @@ meta_display_ping_window (MetaWindow *window,
/**
* meta_display_pong_for_serial:
* @display: the display we got the pong from
* @serial: the serial in the pong repsonse
* @serial: the serial in the pong response
*
* Process the pong (the response message) from the ping we sent
* to the window. This involves removing the timeout, calling the
@ -2371,7 +2371,7 @@ mru_cmp (gconstpointer a,
*
* Determine the list of windows that should be displayed for Alt-TAB
* functionality. The windows are returned in most recently used order.
* If @workspace is not %NULL, the list only conains windows that are on
* If @workspace is not %NULL, the list only contains windows that are on
* @workspace or have the demands-attention hint set; otherwise it contains
* all windows.
*

View File

@ -1049,7 +1049,7 @@ meta_display_add_keybinding (MetaDisplay *display,
* Remove keybinding @name; the function will fail if @name is not a known
* keybinding or has not been added with meta_display_add_keybinding().
*
* Returns: %TRUE if the binding has been removed sucessfully,
* Returns: %TRUE if the binding has been removed successfully,
* otherwise %FALSE
*/
gboolean

View File

@ -238,7 +238,7 @@ meta_workspace_manager_new (MetaDisplay *display)
/* This is the default layout extracted from default
* variable values in update_num_workspaces ()
* This can be overriden using _NET_DESKTOP_LAYOUT in
* This can be overridden using _NET_DESKTOP_LAYOUT in
* meta_x11_display_new (), if it's specified */
meta_workspace_manager_update_workspace_layout (workspace_manager,
META_DISPLAY_TOPLEFT,
@ -497,7 +497,7 @@ meta_workspace_manager_update_num_workspaces (MetaWorkspaceManager *workspace_ma
* @new_index: the new index of the passed workspace
*
* Reorder a workspace to a new index. If the workspace is currently active
* the "active-workspace-changed" signal will be emited.
* the "active-workspace-changed" signal will be emitted.
* If the workspace's index is the same as @new_index or the workspace
* will not be found in the list, this function will return.
*

View File

@ -728,7 +728,7 @@ ensure_above (MetaWindow *above,
if (is_transient && above->layer < below->layer)
{
meta_topic (META_DEBUG_STACK,
"Promoting window %s from layer %u to %u due to contraint\n",
"Promoting window %s from layer %u to %u due to constraint\n",
above->desc, above->layer, below->layer);
above->layer = below->layer;
}

View File

@ -5361,7 +5361,7 @@ meta_window_set_focused_internal (MetaWindow *window,
* will be provided set by the task bar or other user interface element
* displaying the icon, and is relative to the root window.
*
* Return value: %TRUE if the icon geometry was succesfully retrieved.
* Return value: %TRUE if the icon geometry was successfully retrieved.
*/
gboolean
meta_window_get_icon_geometry (MetaWindow *window,

View File

@ -173,7 +173,7 @@ meta_workspace_get_property (GObject *object,
case PROP_N_WINDOWS:
/*
* This is reliable, but not very efficient; should we store
* the list lenth ?
* the list length ?
*/
g_value_set_uint (value, g_list_length (ws->windows));
break;
@ -1207,7 +1207,7 @@ meta_motion_direction_to_string (MetaMotionDirection direction)
* @workspace: a #MetaWorkspace
* @direction: a #MetaMotionDirection, relative to @workspace
*
* Calculate and retrive the workspace that is next to @workspace,
* Calculate and retrieve the workspace that is next to @workspace,
* according to @direction and the current workspace layout, as set
* by meta_screen_override_workspace_layout().
*

View File

@ -456,14 +456,14 @@ void meta_frame_borders_clear (MetaFrameBorders *self);
#define META_DEFAULT_ICON_NAME "window"
/* Main loop priorities determine when activity in the GLib
* will take precendence over the others. Priorities are sometimes
* will take precedence over the others. Priorities are sometimes
* used to enforce ordering: give A a higher priority than B if
* A must occur before B. But that poses a problem since then
* if A occurs frequently enough, B will never occur.
*
* Anything we want to occur more or less immediately should
* have a priority of G_PRIORITY_DEFAULT. When we want to
* coelesce multiple things together, the appropriate place to
* coalesce multiple things together, the appropriate place to
* do it is usually META_PRIORITY_BEFORE_REDRAW.
*
* Note that its usually better to use meta_later_add() rather
@ -476,7 +476,7 @@ void meta_frame_borders_clear (MetaFrameBorders *self);
* delayed. This happens if the screen is updating rapidly: we
* are spending all our time either redrawing or waiting for a
* vblank-synced buffer swap. (When X is improved to allow
* clutter to do the buffer-swap asychronously, this will get
* clutter to do the buffer-swap asynchronously, this will get
* better.)
*/

View File

@ -101,7 +101,7 @@
or not
- "presentation" (b): whether this output is
for presentation only
Note: properties might be ignored if not consistenly
Note: properties might be ignored if not consistently
applied to all outputs in the same clone group. In
general, it's expected that presentation or primary
outputs will not be cloned.
@ -360,7 +360,7 @@
@layout_mode current layout mode represents the way logical monitors
are layed out on the screen. Possible modes include:
are laid out on the screen. Possible modes include:
1 : physical
2 : logical

View File

@ -147,7 +147,7 @@ main (int argc, char *argv[])
if (cally_util_a11y_init (&argc, &argv) == FALSE)
{
g_error ("This example requires the accessibility support, "
"especifically AtkUtil implementation loaded, "
"specifically AtkUtil implementation loaded, "
"as it tries to register and remove event listeners");
}

View File

@ -29,10 +29,10 @@ actor_pivot (void)
clutter_actor_set_pivot_point (actor_implicit, 0.5, 0.5);
clutter_actor_set_pivot_point (actor_explicit, 0.5, 0.5);
/* Implict transformation */
/* Implicit transformation */
clutter_actor_set_rotation_angle (actor_implicit, CLUTTER_Z_AXIS, angle);
/* Explict transformation */
/* Explicit transformation */
clutter_matrix_init_identity(&transform);
cogl_matrix_rotate (&transform, angle, 0, 0, 1.0);
clutter_actor_set_transform (actor_explicit, &transform);

View File

@ -218,7 +218,7 @@ test_coglbox_paint (ClutterActor *self,
cogl_framebuffer_rotate (framebuffer, priv->frame, 0, 1, 0);
cogl_framebuffer_translate (framebuffer, -tex_width / 2, 0, 0);
/* Draw a hand and refect it */
/* Draw a hand and reflect it */
cogl_framebuffer_draw_textured_rectangle (framebuffer, material,
0, 0, tex_width, tex_height,
0, 0, 1, 1);

View File

@ -217,9 +217,9 @@ test_grab_main (int argc, char *argv[])
clutter_test_init (&argc, &argv);
g_print ("Red box: aquire grab on press, releases it on next button release\n");
g_print ("Blue box: aquire grab on press, destroys the blue box actor on release\n");
g_print ("Yellow box: aquire grab on press, releases grab on next press on yellow box\n");
g_print ("Red box: acquire grab on press, releases it on next button release\n");
g_print ("Blue box: acquire grab on press, destroys the blue box actor on release\n");
g_print ("Yellow box: acquire grab on press, releases grab on next press on yellow box\n");
g_print ("Green box: toggle per actor motion events.\n\n");
g_print ("Cyan box: toggle grab (from cyan box) for keyboard events.\n\n");

View File

@ -23,7 +23,7 @@ class Database
[1,0,1, 0.8],
[1,1,0, 0.8],
#[0.5,0.5,0.5,0.8],
# gray doesnt have sufficient contrast against background
# gray doesn't have sufficient contrast against background
[0.5,0.5,1, 0.8],
[0.5,1,0.5, 0.8],
[0.5,1,1, 0.8],

View File

@ -16,7 +16,7 @@ clutter_perf_fps_init (void)
g_setenv ("vblank_mode", "0", FALSE);
g_setenv ("CLUTTER_VBLANK", "none", FALSE);
/* also overrride internal default FPS */
/* also override internal default FPS */
g_setenv ("CLUTTER_DEFAULT_FPS", "1000", FALSE);
if (g_getenv ("CLUTTER_PERFORMANCE_TEST_DURATION"))
@ -89,7 +89,7 @@ static gboolean perf_fake_mouse_cb (gpointer stage)
if (!inited) /* XXX:
force clutter to do handle our motion events,
by forcibly updating the input device's state
this shoudl be possible to do in a better
this should be possible to do in a better
manner in the future, a versioning check
will have to be added when this is possible
without a hack... and the means to do the

View File

@ -175,7 +175,7 @@ test_case_parse_window_id (TestCase *test,
const char *slash = strchr (client_and_window_id, '/');
char *tmp;
if (slash == NULL)
BAD_COMMAND ("client/window ID %s doesnt' contain a /", client_and_window_id);
BAD_COMMAND ("client/window ID %s doesn't contain a /", client_and_window_id);
*window_id = slash + 1;
@ -1131,7 +1131,7 @@ main (int argc, char **argv)
g_free (curdir);
}
/* Then initalize mutter with a different set of arguments */
/* Then initialize mutter with a different set of arguments */
char *fake_args[] = { NULL, (char *)"--wayland", (char *)"--nested" };
fake_args[0] = argv[0];

View File

@ -207,7 +207,7 @@ main (int argc,
meta_anonymous_file_close_fd (other_fd);
/* Test an artificial out-of-space situation by setting the maximium file
/* Test an artificial out-of-space situation by setting the maximum file
* size this process may create to 2 bytes, if memfd_create with
* MAPMODE_PRIVATE is used, everything should still work (the existing FD
* should be used). */

View File

@ -64,7 +64,7 @@ meta_ui_new (MetaX11Display *x11_display)
* handle style changes. This means that the dummy widget we create
* to get the style for title bars actually needs to be mapped
* and fully tracked as a MetaWindow. Horrible, but mostly harmless -
* the window is a 1x1 overide redirect window positioned offscreen.
* the window is a 1x1 override redirect window positioned offscreen.
*/
gtk_widget_show (GTK_WIDGET (ui->frames));

View File

@ -695,7 +695,7 @@ dma_buf_bind (struct wl_client *client,
*
* Creates the global Wayland object that exposes the linux-dmabuf protocol.
*
* Returns: Whether the initialization was succesfull. If this is %FALSE,
* Returns: Whether the initialization was successful. If this is %FALSE,
* clients won't be able to use the linux-dmabuf protocol to pass buffers.
*/
gboolean

View File

@ -1386,7 +1386,7 @@ handle_other_xevent (MetaX11Display *x11_display,
}
break;
case MapNotify:
/* NB: override redirect windows wont cause a map request so we
/* NB: override redirect windows won't cause a map request so we
* watch out for map notifies against any root windows too if a
* compositor is enabled: */
if (window == NULL && event->xmap.event == x11_display->xroot)

View File

@ -448,7 +448,7 @@ query_xi_extension (MetaX11Display *x11_display)
}
/*
* Initialises the bell subsystem. This involves intialising
* Initialises the bell subsystem. This involves initialising
* XKB (which, despite being a keyboard extension, is the
* place to look for bell notifications), then asking it
* to send us bell notifications, and then also switching

View File

@ -1505,7 +1505,7 @@ meta_window_x11_move_resize_internal (MetaWindow *window,
* we grow the frame more than we shrink. The idea is to avoid
* messing up the window contents by having a temporary situation
* where the frame is smaller than the window. However, if we're
* cooperating with the client to create an atomic frame upate,
* cooperating with the client to create an atomic frame update,
* and the window is redirected, then we should always update
* the frame first, since updating the frame will force a new
* backing pixmap to be allocated, and the old backing pixmap