Fix typos throughout

These were pointed out by codespell.
This commit is contained in:
Matthias Clasen 2024-01-07 20:43:26 -05:00
parent 7bf8669d97
commit 59578c6d18
37 changed files with 49 additions and 49 deletions

8
NEWS
View File

@ -522,7 +522,7 @@ Overview of Changes in 4.11.4, 03-07-2023
- Center newly created transient windows
* Vulkan:
- Add antialising for gradients
- Add antialiasing for gradients
- Do less work on clipped away nodes
- Redo image uploading
- Support different image depths and formats
@ -1506,7 +1506,7 @@ Overview of Changes in 4.7.0, 07-05-2022
- Event handling fixes
- Fix keyboard input on popovers
- Support OpenGL-based video playback
- Suport fullscreen
- Support fullscreen
- Improve native filechoooser size allocation
- Use CALayer and IOSurface for rendering
- Use a per-monitor CVDisplayLink
@ -1903,7 +1903,7 @@ Overview of Changes in 4.4.0
- Activate when moving focus
* GtkLabel:
- Propertly ignore double underscores for mnemonics
- Properly ignore double underscores for mnemonics
* GtkPopoverMenu:
- Fix focus cycling
@ -2450,7 +2450,7 @@ Overview of Changes in 4.1.0
- Set sort arrows in CSS
- Set menu button arrows in CSS
- Make scrollbars larger
- Supprt circular menubuttons
- Support circular menubuttons
* CSS:
- Implement transform-origin

View File

@ -1586,7 +1586,7 @@ update_font_variations (void)
}
gtk_grid_attach (GTK_GRID (demo->variations_grid), combo, 1, -1, 3, 1);
g_signal_connect (combo, "notify::selecte", G_CALLBACK (instance_changed), NULL);
g_signal_connect (combo, "notify::selected", G_CALLBACK (instance_changed), NULL);
demo->instance_combo = combo;
}

View File

@ -75,7 +75,7 @@ define colors. Color expressions resemble functions, taking 1 or more colors
and in some cases a number as arguments.
`lighter(Color)`
: produces a brigher variant of Color
: produces a brighter variant of Color
`darker(Color)`
: produces a darker variant of Color

View File

@ -62,7 +62,7 @@ are only available when GTK has been configured with `-Ddebug=true`.
`layout`
: Layout managers
`acccessibility`
`accessibility`
: Accessibility state changs
A number of keys are influencing behavior instead of just logging:
@ -371,7 +371,7 @@ does not support them.
: Force slow descriptor set layout codepath
`dynamic-indexing`
: Hardcode small number of buffer and texure arrays
: Hardcode small number of buffer and texture arrays
`nonuniform-indexing`
: Split draw calls to ensure uniform texture accesses

View File

@ -207,7 +207,7 @@ you should ensure that:
GTK will try to fill in some information by using ancillary UI control properties,
for instance the accessible name will be taken from the label used by the UI control,
or from its tooltip, if the `GTK_ACCESSIBLE_PROPERTY_LABEL` property or the
`GTK_ACCESSIBLE_RELATION_LABELLED_BY` relation are unset. Similary for the accessible
`GTK_ACCESSIBLE_RELATION_LABELLED_BY` relation are unset. Similarly for the accessible
description. Nevertheless, it is good practice and project hygiene to explicitly specify
the accessible properties, just like it's good practice to specify tooltips and style classes.

View File

@ -87,7 +87,7 @@ struct _GdkDmabufTextureBuilderClass
*
* For historical reasons, some producers of dma-bufs don't provide an explicit modifier, but
* instead return `DMA_FORMAT_MOD_INVALID` to indicate that their modifier is **_implicit_**.
* GTK tries to accomodate this situation by accepting `DMA_FORMAT_MOD_INVALID` as modifier.
* GTK tries to accommodate this situation by accepting `DMA_FORMAT_MOD_INVALID` as modifier.
*
* The operation of `GdkDmabufTextureBuilder` is quite simple: Create a texture builder,
* set all the necessary properties, and then call [method@Gdk.DmabufTextureBuilder.build]

View File

@ -331,7 +331,7 @@ gdk_draw_context_begin_frame (GdkDrawContext *context,
*
* This is only a request and if the GDK backend does not support HDR rendering
* or does not consider it worthwhile, it may choose to not honor the request.
* It may also choose to provide a differnet depth even if it was not requested.
* It may also choose to provide a different depth even if it was not requested.
* Typically the steps undertaken by a backend are:
* 1. Check if high depth is supported by this drawing backend.
* 2. Check if the compositor supports high depth.

View File

@ -653,7 +653,7 @@ gdk_gl_texture_determine_format (GdkGLTexture *self)
* Return value: (transfer full) (type GdkGLTexture): A newly-created
* `GdkTexture`
*
* Deprecated: 4.12: [class@Gdk.GLTextureBuilder] supercedes this function
* Deprecated: 4.12: [class@Gdk.GLTextureBuilder] supersedes this function
* and provides extended functionality for creating GL textures.
*/
GdkTexture *

View File

@ -51,7 +51,7 @@ struct _GdkGLTextureBuilderClass
/**
* GdkGLTextureBuilder:
*
* `GdkGLTextureBuilder` is a buider used to construct [class@Gdk.Texture] objects from
* `GdkGLTextureBuilder` is a builder used to construct [class@Gdk.Texture] objects from
* GL textures.
*
* The operation is quite simple: Create a texture builder, set all the necessary

View File

@ -1387,7 +1387,7 @@ gdk_memory_format_get_depth (GdkMemoryFormat format)
* @depth1: the first depth
* @depth2: the second depth
*
* Returns a depth that can accomodate both given depths
* Returns a depth that can accommodate both given depths
* without any loss of precision.
*
* Returns: The merged depth

View File

@ -870,7 +870,7 @@ gdk_texture_download_surface (GdkTexture *texture)
* cairo_surface_mark_dirty (surface);
* ```
*
* For more flexible download capabilites, see
* For more flexible download capabilities, see
* [struct@Gdk.TextureDownloader].
*/
void

View File

@ -22,7 +22,7 @@
* [class@Gdk.Texture].
*
* It is intended to be created as a short-term object for a single download,
* but can be used for multipe downloads of different textures or with different
* but can be used for multiple downloads of different textures or with different
* settings.
*
* `GdkTextureDownloader` can be used to convert data between different formats.

View File

@ -37,7 +37,7 @@ static const GdkDebugKey gsk_vulkan_feature_keys[] = {
{ "dmabuf", GDK_VULKAN_FEATURE_DMABUF, "Never import Dmabufs" },
{ "ycbcr", GDK_VULKAN_FEATURE_YCBCR, "Do not support Ycbcr textures" },
{ "descriptor-indexing", GDK_VULKAN_FEATURE_DESCRIPTOR_INDEXING, "Force slow descriptor set layout codepath" },
{ "dynamic-indexing", GDK_VULKAN_FEATURE_DYNAMIC_INDEXING, "Hardcode small number of buffer and texure arrays" },
{ "dynamic-indexing", GDK_VULKAN_FEATURE_DYNAMIC_INDEXING, "Hardcode small number of buffer and texture arrays" },
{ "nonuniform-indexing", GDK_VULKAN_FEATURE_NONUNIFORM_INDEXING, "Split draw calls to ensure uniform texture accesses" },
{ "semaphore-export", GDK_VULKAN_FEATURE_SEMAPHORE_EXPORT, "Disable sync of exported dmabufs" },
{ "semaphore-import", GDK_VULKAN_FEATURE_SEMAPHORE_IMPORT, "Disable sync of imported dmabufs" },

View File

@ -188,7 +188,7 @@ _edge_snapping_motion (EdgeSnapping *self,
edge_snapping_constrain_horizontal (self, change.x, &self->geometry, &new_window);
}
/* Now constrain veritcally */
/* Now constrain vertically */
if (change.y)
{
edge_snapping_constrain_vertical (self, change.y, &self->workarea, &new_window, FALSE);

View File

@ -170,7 +170,7 @@ static int getting_events = 0;
************************************************************/
/* The states in our state machine, see comments in select_thread_func()
* for descriptiions of each state
* for descriptions of each state
*/
typedef enum {
BEFORE_START,

View File

@ -598,7 +598,7 @@ gdk_macos_gl_context_make_current (GdkGLContext *context,
* are submitted.
*
* TODO: investigate if we need this because we may switch contexts
* durring composition and only need it when returning to a
* during composition and only need it when returning to a
* previous context that uses the other context.
*/
if (current != NULL)

View File

@ -28,7 +28,7 @@ GTK has two clipboards - normal clipboard and primary clipboard
Primary clipboard is only handled
internally by GTK (it's not portable to Windows).
("C:" means clipboard client (requestor), "S:" means clipboard server (provider))
("C:" means clipboard client (requester), "S:" means clipboard server (provider))
("transmute" here means "change the format of some data"; this term is used here
instead of "convert" to avoid clashing with the old g(t|d)k_selection_convert() APIs,
which are completely unrelated)
@ -1356,7 +1356,7 @@ inner_clipboard_window_procedure (HWND hwnd,
else if (returned_render->main_thread_data_handle)
{
BOOL set_data_succeeded;
/* The requestor is holding the clipboard, no
/* The requester is holding the clipboard, no
* OpenClipboard() is required/possible
*/
GDK_NOTE (DND,

View File

@ -3029,7 +3029,7 @@ gdk_event_translate (MSG *msg,
unset_bits |= GDK_TOPLEVEL_STATE_MAXIMIZED;
/*
* If we are minizing, pause all surface layout computations, and re-start the
* If we are minimizing, pause all surface layout computations, and re-start the
* computation once we are coming out of a minimized state
*/
if (!(old_state & GDK_TOPLEVEL_STATE_MINIMIZED) && set_bits & GDK_TOPLEVEL_STATE_MINIMIZED)
@ -3045,7 +3045,7 @@ gdk_event_translate (MSG *msg,
/* Whenever one window changes iconified state we need to also
* change the iconified state in all transient related windows,
* as windows doesn't give icons for transient childrens.
* as windows doesn't give icons for transient children.
*/
if ((old_state & GDK_TOPLEVEL_STATE_MINIMIZED) !=
(new_state & GDK_TOPLEVEL_STATE_MINIMIZED))

View File

@ -211,7 +211,7 @@ struct _GdkW32DragMoveResizeContext
gboolean revealed;
/* Arrays of GdkRectangle pairs, describing the areas of the virtual
* desktop that trigger various AeroSnap window transofrmations
* desktop that trigger various AeroSnap window transformations
* Coordinates are GDK screen coordinates.
*/
GArray *halfleft_regions;

View File

@ -1236,7 +1236,7 @@ gsk_gl_driver_release_render_target (GskGLDriver *self,
* @shader: the shader to lookup or load
* @error: a location for a `GError`
*
* Attepts to load @shader from the shader cache.
* Attempts to load @shader from the shader cache.
*
* If it has not been loaded, then it will compile the shader on demand.
*

View File

@ -10,8 +10,8 @@ void main() {
vUv = vec2(aUv.x, aUv.y);
// We use this shader for both plain glyphs (used as mask)
// and color glpyhs (used as source). The renderer sets
// aColor to vec4(-1) for color glyhs.
// and color glyphs (used as source). The renderer sets
// aColor to vec4(-1) for color glyphs.
if (distance(aColor,vec4(-1)) < 0.1)
use_color = 0.0;
else

View File

@ -3892,7 +3892,7 @@ gsk_gpu_node_processor_add_node (GskGpuNodeProcessor *self,
node_type = gsk_render_node_get_node_type (node);
if (node_type >= G_N_ELEMENTS (nodes_vtable))
{
g_critical ("unkonwn node type %u for %s", node_type, g_type_name_from_instance ((GTypeInstance *) node));
g_critical ("unknown node type %u for %s", node_type, g_type_name_from_instance ((GTypeInstance *) node));
gsk_gpu_node_processor_add_fallback_node (self, node);
return;
}
@ -3933,7 +3933,7 @@ gsk_gpu_node_processor_create_node_pattern (GskGpuPatternWriter *self,
node_type = gsk_render_node_get_node_type (node);
if (node_type >= G_N_ELEMENTS (nodes_vtable))
{
g_critical ("unkonwn node type %u for %s", node_type, g_type_name_from_instance ((GTypeInstance *) node));
g_critical ("unknown node type %u for %s", node_type, g_type_name_from_instance ((GTypeInstance *) node));
return FALSE;
}

View File

@ -74,7 +74,7 @@ struct _GskGpuOpClass
GskGLCommandState *state);
};
/* ensures alignment of ops to multipes of 16 bytes - and that makes graphene happy */
/* ensures alignment of ops to multiples of 16 bytes - and that makes graphene happy */
#define GSK_GPU_OP_SIZE(struct_name) ((sizeof(struct_name) + 15) & ~15)
GskGpuOp * gsk_gpu_op_alloc (GskGpuFrame *frame,

View File

@ -40,7 +40,7 @@
* new `GskPath` objects have to be created. The [struct@Gsk.PathBuilder]
* structure is meant to help in this endeavor.
*
* Conceptually, a path consists of zero or more contours (continous, connected
* Conceptually, a path consists of zero or more contours (continuous, connected
* curves), each of which may or may not be closed. Contours are typically
* constructed from Bézier segments.
*

View File

@ -226,10 +226,10 @@ gtk_cell_renderer_accel_class_init (GtkCellRendererAccelClass *cell_accel_class)
/**
* GtkCellRendererAccel::accel-edited:
* @accel: the object reveiving the signal
* @accel: the object receiving the signal
* @path_string: the path identifying the row of the edited cell
* @accel_key: the new accelerator keyval
* @accel_mods: the new acclerator modifier mask
* @accel_mods: the new accelerator modifier mask
* @hardware_keycode: the keycode of the new accelerator
*
* Gets emitted when the user has selected a new accelerator.
@ -248,7 +248,7 @@ gtk_cell_renderer_accel_class_init (GtkCellRendererAccelClass *cell_accel_class)
/**
* GtkCellRendererAccel::accel-cleared:
* @accel: the object reveiving the signal
* @accel: the object receiving the signal
* @path_string: the path identifying the row of the edited cell
*
* Gets emitted when the user has removed the accelerator.
@ -724,7 +724,7 @@ gtk_cell_editable_widget_new (GtkCellRenderer *cell,
gtk_widget_set_state_flags (box->label, GTK_STATE_FLAG_SELECTED, TRUE);
/* This label is displayed in a treeview cell displaying an accelerator
* when the cell is clicked to change the acelerator.
* when the cell is clicked to change the accelerator.
*/
gtk_label_set_text (GTK_LABEL (box->label), _("New accelerator…"));

View File

@ -2427,7 +2427,7 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget)
{
if (number_of_expand_columns == 1)
{
/* We add the remander to the last column as
/* We add the remainder to the last column as
* */
column_width += extra;
}

View File

@ -67,7 +67,7 @@ gboolean gtk_accessible_role_is_abstract (GtkAccessibleRole role);
* @GTK_ACCESSIBLE_NAME_ALLOWED:
* The role allows an accessible name and description
* @GTK_ACCESSIBLE_NAME_PROHIBITED:
* The role does not allow an accessible name and descirption
* The role does not allow an accessible name and description
* @GTK_ACCESSIBLE_NAME_REQUIRED:
* The role requires an accessible name and description
* @GTK_ACCESSIBLE_NAME_RECOMMENDED:

View File

@ -21,7 +21,7 @@
*
* If that is not the case, a warning will be issued at run time.
*
* In addition to this interface, its implementors are expected to provide the
* In addition to this interface, its implementers are expected to provide the
* correct values for the following properties:
*
* - `GTK_ACCESSIBLE_PROPERTY_VALUE_MAX`

View File

@ -127,7 +127,7 @@
*
* To create a property expression, use the `<lookup>` element. It can have a `type`
* attribute to specify the object type, and a `name` attribute to specify the property
* to look up. The content of `<lookup>` can either be an element specfiying the expression
* to look up. The content of `<lookup>` can either be an element specifying the expression
* to use the object, or a string that specifies the name of the object to use.
*
* Example:

View File

@ -173,7 +173,7 @@ gtk_filter_get_strictness (GtkFilter *self)
* be changed, but only some. Refer to the [enum@Gtk.FilterChange]
* documentation for details.
*
* This function is intended for implementors of `GtkFilter`
* This function is intended for implementers of `GtkFilter`
* subclasses and should not be called from other functions.
*/
void

View File

@ -240,7 +240,7 @@ gtk_filter_list_model_run_filter_on_item (GtkFilterListModel *self,
gpointer item;
gboolean visible;
/* all other cases should have beeen optimized away */
/* all other cases should have been optimized away */
g_assert (self->strictness == GTK_FILTER_MATCH_SOME);
item = g_list_model_get_item (self->model, position);

View File

@ -287,11 +287,11 @@ gtk_gesture_stylus_get_stylus_only (GtkGestureStylus *gesture)
/**
* gtk_gesture_stylus_set_stylus_only: (attributes org.gtk.Method.set_property=stylus-only)
* @gesture: the gesture
* @stylus_only: whether the gesture is used exclusivly for stylus events
* @stylus_only: whether the gesture is used exclusively for stylus events
*
* Sets the state of stylus-only
*
* If true, the gesture will exclusivly handle events from stylus input deivces,
* If true, the gesture will exclusively handle events from stylus input devices,
* otherwise it'll handle events from any pointing device.
*
* Since: 4.10

View File

@ -2259,7 +2259,7 @@ gtk_list_base_set_anchor (GtkListBase *self,
* behind it, if it's at the end, all the widgets will be allocated
* in front of it.
*
* Addditionally, there will be @above_below widgets allocated both
* Additionally, there will be @above_below widgets allocated both
* before and after the center widgets, so the total number of
* widgets kept alive is 2 * above_below + center + 1.
**/

View File

@ -999,7 +999,7 @@ gtk_list_item_manager_merge_list_items (GtkListItemManager *self,
* gtk_list_tile_split:
* @self: the listitemmanager
* @tile: a tile to split into two
* @n_items: nuber of items to keep in tile
* @n_items: number of items to keep in tile
*
* Splits the given tile into two tiles. The original
* tile will remain with @n_items items, the remaining

View File

@ -679,7 +679,7 @@ check_sizeof_GtkWindow (size_t sizeof_GtkWindow)
/* In GTK 2.0 the GtkWindow struct actually is the same size in
* gcc-compiled code on Win32 whether compiled with -fnative-struct or
* not. Unfortunately this want noticed until after GTK 2.0.1. So,
* not. Unfortunately this wasnt noticed until after GTK 2.0.1. So,
* from GTK 2.0.2 on, check some other struct, too, where the use of
* -fnative-struct still matters. GtkBox is one such.
*/

View File

@ -325,7 +325,7 @@ gtk_sorter_get_keys (GtkSorter *self)
* update the sort order without a full resorting. Refer to
* the [enum@Gtk.SorterChange] documentation for details.
*
* This function is intended for implementors of `GtkSorter`
* This function is intended for implementers of `GtkSorter`
* subclasses and should not be called from other functions.
*/
void

View File

@ -67,7 +67,7 @@ typedef GtkTextLineSegment* (*GtkTextSegSplitFunc) (GtkTextLineSegment *seg
/* Delete seg which is contained in line; if tree_gone, the tree is being
* freed in its entirety, which may matter for some reason (?)
* Return TRUE if the segment is not deleteable, e.g. a mark.
* Return TRUE if the segment is not deletable, e.g. a mark.
*/
typedef gboolean (*GtkTextSegDeleteFunc) (GtkTextLineSegment *seg,
GtkTextLine *line,