cleanup: Fix various typos

Using the typos cli app

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3169>
This commit is contained in:
Bilal Elmoussaoui
2023-08-10 01:44:52 +02:00
committed by Marge Bot
parent 04f18ae726
commit cd27cb5c85
41 changed files with 77 additions and 77 deletions

View File

@@ -698,7 +698,7 @@ check_barrier (MetaInputCaptureSession *session,
meta_dbus_session_manager_get_backend (session->session_manager);
MetaMonitorManager *monitor_manager =
meta_backend_get_monitor_manager (backend);
gboolean has_adjecent_monitor = FALSE;
gboolean has_adjacent_monitor = FALSE;
GList *logical_monitors;
GList *l;
@@ -731,13 +731,13 @@ check_barrier (MetaInputCaptureSession *session,
case LINE_ADJACENCY_NONE:
break;
case LINE_ADJACENCY_CONTAINED:
if (has_adjecent_monitor)
if (has_adjacent_monitor)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
"Adjecent to multiple monitor edges");
"Adjacent to multiple monitor edges");
return FALSE;
}
has_adjecent_monitor = TRUE;
has_adjacent_monitor = TRUE;
break;
case LINE_ADJACENCY_OVERLAP:
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA,
@@ -750,7 +750,7 @@ check_barrier (MetaInputCaptureSession *session,
}
}
return has_adjecent_monitor;
return has_adjacent_monitor;
}
static unsigned int

View File

@@ -1158,7 +1158,7 @@ meta_remote_desktop_session_cancel_transfer_requests (MetaRemoteDesktopSession *
}
static gboolean
transfer_request_cleanup_timout (gpointer user_data)
transfer_request_cleanup_timeout (gpointer user_data)
{
MetaRemoteDesktopSession *session = user_data;
@@ -1307,7 +1307,7 @@ reset_transfer_cleanup_timeout (MetaRemoteDesktopSession *session)
g_clear_handle_id (&session->transfer_request_timeout_id, g_source_remove);
session->transfer_request_timeout_id =
g_timeout_add (TRANSFER_REQUEST_CLEANUP_TIMEOUT_MS,
transfer_request_cleanup_timout,
transfer_request_cleanup_timeout,
session);
}

View File

@@ -649,7 +649,7 @@ maybe_add_damaged_regions_metadata (MetaScreenCastStreamSrc *src,
{
spa_meta_for_each (meta_region, spa_meta_video_damage)
{
g_warning ("Not enough buffers (%d) to accomodate damaged "
g_warning ("Not enough buffers (%d) to accommodate damaged "
"regions (%d)", num_buffers_available, n_rectangles);
meta_region->region = SPA_REGION (0, 0,
priv->video_format.size.width,

View File

@@ -1047,7 +1047,7 @@ realize_cursor_sprite_for_crtc (MetaCursorRenderer *renderer,
meta_kms_crtc_get_id (kms_crtc),
meta_kms_device_get_path (kms_device));
COGL_TRACE_BEGIN_SCOPED (CursorRendererNAtiveRealize,
COGL_TRACE_BEGIN_SCOPED (CursorRendererNativeRealize,
"Cursor Renderer Native (realize for crtc)");
if (META_IS_CURSOR_SPRITE_XCURSOR (cursor_sprite))
{

View File

@@ -3508,7 +3508,7 @@ set_keyboard_map (GTask *task)
* @seat_impl: 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

@@ -655,7 +655,7 @@ meta_compositor_switch_workspace (MetaCompositor *compositor,
/* 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.
* relative position toward the desktop window.
*/
meta_finish_workspace_switch (compositor);
}

View File

@@ -25,7 +25,7 @@
* Some pixel formats that are used in the wild are a bit more complex than
* just ARGB and all its variants. For example: a component might be put in a
* different plane (i.e. at a different place in memory). Another example are
* formats that use Y, U, and V components rather than RGB; if we composit them
* formats that use Y, U, and V components rather than RGB; if we composite them
* onto an RGBA framebuffer, we have to make sure for example that these get
* converted to the right color format first (using e.g. a shader).
*/

View File

@@ -68,7 +68,7 @@ meta_surface_actor_wayland_is_opaque (MetaSurfaceActor *actor)
return meta_shaped_texture_is_opaque (stex);
}
#define UNOBSCURED_TRESHOLD 0.1
#define UNOBSCURED_THRESHOLD 0.1
gboolean
meta_surface_actor_wayland_is_view_primary (MetaSurfaceActor *actor,
@@ -149,10 +149,10 @@ meta_surface_actor_wayland_is_view_primary (MetaSurfaceActor *actor,
refresh_rate = clutter_stage_view_get_refresh_rate (view);
if ((refresh_rate > highest_refresh_rate &&
(biggest_unobscurred_fraction < UNOBSCURED_TRESHOLD ||
unobscurred_fraction > UNOBSCURED_TRESHOLD)) ||
(biggest_unobscurred_fraction < UNOBSCURED_TRESHOLD &&
unobscurred_fraction > UNOBSCURED_TRESHOLD))
(biggest_unobscurred_fraction < UNOBSCURED_THRESHOLD ||
unobscurred_fraction > UNOBSCURED_THRESHOLD)) ||
(biggest_unobscurred_fraction < UNOBSCURED_THRESHOLD &&
unobscurred_fraction > UNOBSCURED_THRESHOLD))
{
current_primary_view = view;
highest_refresh_rate = refresh_rate;

View File

@@ -344,7 +344,7 @@ meta_context_real_configure (MetaContext *context,
* @error: a return location for errors
*
* Returns: %TRUE if the commandline arguments (if any) were valid and if the
* configuration has been successfull, %FALSE otherwise
* configuration has been successful, %FALSE otherwise
*/
gboolean
meta_context_configure (MetaContext *context,

View File

@@ -1649,7 +1649,7 @@ meta_preference_to_string (MetaPreference pref)
return "VISUAL_BELL_TYPE";
case META_PREF_GNOME_ACCESSIBILITY:
return "GNOME_ACCESSIBILTY";
return "GNOME_ACCESSIBILITY";
case META_PREF_GNOME_ANIMATIONS:
return "GNOME_ANIMATIONS";

View File

@@ -50,7 +50,7 @@
* To update or initialize reference images for tests, set the
* MUTTER_REF_TEST_UPDATE environment variable.
*
* The MUTTER_REF_TEST_UPDATE is interpreted as a comma seperated list of
* The MUTTER_REF_TEST_UPDATE is interpreted as a comma separated list of
* regular expressions. If the test path matches any of the regular
* expressions, the test reference image will be updated, unless the
* existing reference image is pixel identical to the newly created one.

View File

@@ -244,7 +244,7 @@ on_sync_event (WaylandDisplay *display,
{
g_assert (serial == 0);
/* Sync event 0 is sent when the popup window actor is destryed;
/* Sync event 0 is sent when the popup window actor is destroyed;
* prepare for opening a popup for the same wl_surface.
*/
wl_surface_attach (popup_surface, NULL, 0, 0);

View File

@@ -795,7 +795,7 @@ meta_wayland_keyboard_set_focus (MetaWaylandKeyboard *keyboard,
&keyboard->resource_list,
wl_resource_get_client (focus_surface_resource));
/* Make sure a11y masks are applied before braodcasting modifiers */
/* Make sure a11y masks are applied before broadcasting modifiers */
kbd_a11y_apply_mask (keyboard);
if (!wl_list_empty (&keyboard->focus_resource_list))

View File

@@ -550,7 +550,7 @@ save_yourself_callback (SmcConn smc_conn,
/* ignore Global style saves
*
* This interpretaion of the Local/Global/Both styles
* This interpretation of the Local/Global/Both styles
* was discussed extensively on the xdg-list. See:
*
* https://listman.redhat.com/pipermail/xdg-list/2002-July/000615.html

View File

@@ -6,7 +6,7 @@
* A system which can inspect sets of properties of given windows
* and take appropriate action given their values.
*
* Note that all the meta_window_reload_propert* functions require a
* Note that all the meta_window_reload_property* functions require a
* round trip to the server.
*
* The guts of this system are in meta_display_init_window_prop_hooks().
@@ -1894,7 +1894,7 @@ RELOAD_STRING (gtk_menubar_object_path, "gtk-menubar-object-path")
/**
* meta_x11_display_init_window_prop_hooks:
* @x11_display: The #MetaDX11isplay
* @x11_display: The #MetaX11Display
*
* Initialises the property hooks system. Each row in the table named "hooks"
* represents an action to take when a property is found on a newly-created

View File

@@ -6,7 +6,7 @@
* A system which can inspect sets of properties of given windows
* and take appropriate action given their values.
*
* Note that all the meta_window_reload_propert* functions require a
* Note that all the meta_window_reload_property* functions require a
* round trip to the server.
*/
@@ -61,7 +61,7 @@ void meta_window_load_initial_properties (MetaWindow *window);
* meta_x11_display_init_window_prop_hooks:
* @x11_display: The X11 display.
*
* Initialises the hooks used for the reload_propert* functions
* Initialises the hooks used for the reload_property* functions
* on a particular display, and stores a pointer to them in the
* x11_display.
*/
@@ -70,7 +70,7 @@ void meta_x11_display_init_window_prop_hooks (MetaX11Display *x11_display);
/**
* meta_x11_display_free_window_prop_hooks:
* @x11_display: The X11 display.
* Frees the hooks used for the reload_propert* functions
* Frees the hooks used for the reload_property* functions
* for a particular display.
*/
void meta_x11_display_free_window_prop_hooks (MetaX11Display *x11_display);