*: Fix spelling mistakes found by codespell

This commit is contained in:
Björn Daase 2020-08-21 14:41:13 +02:00
parent bb8c818ba1
commit 6315cd977c
153 changed files with 253 additions and 253 deletions

View File

@ -305,7 +305,7 @@ create_gear (GLfloat inner_radius,
/* Create the 7 points (only x,y coords) used to draw a tooth */
struct point p[7];
/* Calculate needed sin/cos for varius angles */
/* Calculate needed sin/cos for various angles */
sincos(i * 2.0 * G_PI / teeth + da * 0, &s[0], &c[0]);
sincos(i * 2.0 * M_PI / teeth + da * 1, &s[1], &c[1]);
sincos(i * 2.0 * M_PI / teeth + da * 2, &s[2], &c[2]);
@ -800,7 +800,7 @@ gtk_gears_realize (GtkWidget *widget)
priv->LightSourcePosition_location = glGetUniformLocation(program, "LightSourcePosition");
priv->MaterialColor_location = glGetUniformLocation(program, "MaterialColor");
/* Set the LightSourcePosition uniform which is constant throught the program */
/* Set the LightSourcePosition uniform which is constant throughout the program */
glUniform4fv(priv->LightSourcePosition_location, 1, priv->LightSourcePosition);
/* make the gears */

View File

@ -78,7 +78,7 @@ static gsize content_len;
extern void fontify (const char *format, GtkTextBuffer *buffer);
static void
populate_text (gboolean hilight)
populate_text (gboolean highlight)
{
GtkWidget *textview;
GtkTextBuffer *buffer;
@ -94,7 +94,7 @@ populate_text (gboolean hilight)
buffer = gtk_text_buffer_new (NULL);
gtk_text_buffer_set_text (buffer, content, (int)content_len);
if (hilight)
if (highlight)
fontify ("c", buffer);
textview = gtk_text_view_new ();

View File

@ -47,7 +47,7 @@ static Bug bugs[] =
{ FALSE, 56925, "Normal", "Gtkcalender size" },
{ FALSE, 56221, "Normal", "Selectable label needs right-click copy menu" },
{ TRUE, 50939, "Normal", "Add shift clicking to GtkTextView" },
{ FALSE, 6112, "Enhancement","netscape-like collapsable toolbars" },
{ FALSE, 6112, "Enhancement","netscape-like collapsible toolbars" },
{ FALSE, 1, "Normal", "First bug :=)" },
};

View File

@ -101,7 +101,7 @@ gtk_clock_snapshot (GdkPaintable *paintable,
(GdkRGBA [4]) { BLACK, BLACK, BLACK, BLACK });
/* Next, draw the hour hand.
* We do this using tranforms again: Instead of computing where the angle
* We do this using transforms again: Instead of computing where the angle
* points to, we just rotate everything and then draw the hand as if it
* was :00. We don't even need to care about am/pm here because rotations
* just work.

View File

@ -79,7 +79,7 @@ gtk_color_paintable_init (GdkPaintableInterface *iface)
/*
* Finally, we define the type. The important part is adding the paintable
* interface, so GTK knows that this object can indeed be drawm.
* interface, so GTK knows that this object can indeed be drawn.
*/
G_DEFINE_TYPE_WITH_CODE (GtkColor, gtk_color, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (GDK_TYPE_PAINTABLE,

View File

@ -678,7 +678,7 @@ filter_demo (GtkDemo *demo)
{
int i;
/* Show only if the name maches every needle */
/* Show only if the name matches every needle */
for (i = 0; search_needle[i]; i++)
{
if (!demo->title)

View File

@ -2,7 +2,7 @@
*
* Shows widgets in static positions over a main widget.
*
* The overlayed widgets can be interactive controls such
* The overlaid widgets can be interactive controls such
* as the entry in this example, or just decorative, like
* the big blue label.
*/

View File

@ -256,7 +256,7 @@ drag_begin (GtkDragSource *source,
gtk_image_clear (GTK_IMAGE (image));
}
/* Thie is called once a drag operation has ended (successfully or not).
/* This is called once a drag operation has ended (successfully or not).
* We want to undo what we did in drag_begin() above and react
* to a potential move of the peg.
*/

View File

@ -38,7 +38,7 @@ network-transmit-receive=The icon used data is being both transmitted and receiv
network-transmit=The icon used when data is being transmitted, while the computing device is connected to a network
network-receive=The icon used when data is being received, while the computing device is connected to a network
network-idle=The icon used when no data is being transmitted or received, while the computing device is connected to a network
network-error=The icon used when an error occurs trying to intialize the network connection of the computing device
network-error=The icon used when an error occurs trying to initialize the network connection of the computing device
network-offline=The icon used when the computing device is disconnected from the network
[weather]
@ -112,7 +112,7 @@ document-edit=The icon for the action to edit a document
object-flip-horizontal=The icon for the action to flip an object horizontally
object-flip-vertical=The icon for the action to flip an object vertically
object-rotate-left=The icon for the rotate left action performed on an object
object-rotate-right=The icon for the rotate rigt action performed on an object
object-rotate-right=The icon for the rotate right action performed on an object
insert-image=The icon for the insert image action of an application
insert-link=The icon for the insert link action of an application
insert-object=The icon for the insert object action of an application
@ -406,7 +406,7 @@ media-zip=
modem=The icon used for modem devices
multimedia-player-apple-ipod-touch=
network-vpn=
pda=This is the fallback icon for Personal Digial Assistant devices. Primary use of this icon is for PDA devices connected to the PC. Connection medium is not an important aspect of the icon. The metaphor for this fallback icon should be a generic PDA device icon
pda=This is the fallback icon for Personal Digital Assistant devices. Primary use of this icon is for PDA devices connected to the PC. Connection medium is not an important aspect of the icon. The metaphor for this fallback icon should be a generic PDA device icon
phone-apple-iphone=
uninterruptible-power-supply=
emblem-default=The icon used as an emblem to specify the default selection of a printer for example

View File

@ -5,7 +5,7 @@ This document is intended to be a short description of the preferred
coding style to be used for the GTK source code. It was strongly
inspired by Clutter's `CODING_STYLE`.
Coding style is a matter of consistency, readability and maintainance;
Coding style is a matter of consistency, readability and maintenance;
coding style is also completely arbitrary and a matter of taste. This
document will use examples at the very least to provide authoritative
and consistent answers to common questions regarding the coding style,

View File

@ -101,7 +101,7 @@ allow use of detailed action names. This is a convenient way of specifying
an action name and an action target with a single string.
In the case that the action target is a string with no unusual characters
(ie: only alpha-numeric, plus '-' and '.') then you can use a detailed
(ie: only alphanumeric, plus '-' and '.') then you can use a detailed
action name of the form "justify::left" to specify the justify action with
a target of left.

View File

@ -18,7 +18,7 @@ name, a state and possibly style classes. The children of each node
are linearly ordered.
Every widget has one or more of these CSS nodes, and determines their
name, state, style classes and how they are layed out as children and
name, state, style classes and how they are laid out as children and
siblings in the overall node tree. The documentation for each widget
explains what CSS nodes it has.

View File

@ -75,7 +75,7 @@ functions, types and macros required by GTK applications.
Even if GTK installs multiple header files, only the top-level `gtk/gtk.h`
header can be directly included by third-party code. The compiler will abort
with an error if any othe header is directly included.
with an error if any other header is directly included.
In a GTK application, the purpose of the main() function is to create a
GtkApplication object and run it. In this example a GtkApplication pointer
@ -205,7 +205,7 @@ variable is created to store a GtkBox, which is GTK's way of controlling
the size and layout of buttons.
The GtkBox is created with gtk_box_new() which takes a GtkOrientation
enum as parameter. The buttons which this box will contain can either be layed
enum as parameter. The buttons which this box will contain can either be laid
out horizontally or vertically. This does not matter in this particular case,
as we are dealing with only one button. After initializing box with the newly
created GtkBox, the code adds the box widget to the window widget using

View File

@ -70,7 +70,7 @@
<term>--force</term>
<term>-f</term>
<listitem><para>Overwrite an existing cache file even if it appears to be
uptodate.</para></listitem>
up-to-date.</para></listitem>
</varlistentry>
<varlistentry>

View File

@ -128,7 +128,7 @@ Mnmemonics
They are used in places where a label is associated with a control,
and are indicated by underlining the letter in the label. As a special
case, inside menus (i.e. inside #GtkPopoverMenu), mnemonics can be
trigered without the modifier.
triggered without the modifier.
Key bindings
: Key bindings are specific to individual widgets, such as Ctrl-C or
Ctrl-V in an entry copy to or paste from the clipboard. They are only

View File

@ -533,7 +533,7 @@ adding children with <child> in ui files.
The abstract base class GtkContainer for general containers has been
removed. The former subclasses are now derived directly from GtkWidget,
and have class-specific add() and remove() functions.
The most noticable change is the use of gtk_box_append() or gtk_box_prepend()
The most noticeable change is the use of gtk_box_append() or gtk_box_prepend()
instead of gtk_container_add() for adding children to GtkBox, and the change
to use container-specific remove functions, such as gtk_stack_remove() instead
of gtk_container_remove(). Adding a child in a ui file with <child> still works.
@ -671,7 +671,7 @@ gradients, just use those.
GTK now supports a more versatile -gtk-icon-filter instead. Replace
-gtk-icon-effect: dim; with -gtk-icon-filter: opacity(0.5); and
-gtk-icon-effect: hilight; with -gtk-icon-filter: brightness(1.2);.
-gtk-icon-effect: highlight; with -gtk-icon-filter: brightness(1.2);.
### Don't use -gtk-icon-theme in your CSS
@ -701,7 +701,7 @@ of connecting a handler to the #GtkWidget::draw signal.
### Stop using APIs to query GdkSurfaces
A number of APIs for querying special-purpose windows have been removed,
since these windows are no longer publically available:
since these windows are no longer publicly available:
gtk_tree_view_get_bin_window(), gtk_viewport_get_bin_window(),
gtk_viewport_get_view_window().

View File

@ -445,7 +445,7 @@ the question you have, this list is a good place to start.
gtk_list_store_set() and gtk_tree_store_set(), but can't read it back?
Both the #GtkTreeStore and the #GtkListStore implement the #GtkTreeModel
interface. Consequentially, you can use any function this interface
interface. Consequently, you can use any function this interface
implements. The easiest way to read a set of data back is to use
gtk_tree_model_get().

View File

@ -54,7 +54,7 @@ Each role name is part of the #GtkAccessibleRole enumeration.
| `METER` | Represents a value within a known range | #GtkLevelBar |
| `PROGRESS_BAR` | An element that display progress | #GtkProgressBar |
| `RADIO` | A checkable input in a group of radio roles | #GtkRadioButton |
| `SCROLLBAR` | A graphical object controlling the scolling of content | #GtkScrollbar |
| `SCROLLBAR` | A graphical object controlling the scrolling of content | #GtkScrollbar |
| `SEARCH_BOX` | A text box for entering search criteria | #GtkSearchEntry |
| `SEPARATOR` | A divider that separates sections of content or groups of items | #GtkSeparator |
| `SPIN_BUTTON` | A range control that allows seelcting among discrete choices | #GtkSpinButton |

View File

@ -128,7 +128,7 @@ GtkWidget *tree;
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
```
## Colums and cell renderers
## Columns and cell renderers
Once the #GtkTreeView widget has a model, it will need to know how
to display the model. It does this with columns and cell renderers.

View File

@ -1,11 +1,11 @@
Cache surfaces that are opened via shm_open inbetween updates.
Cache surfaces that are opened via shm_open in between updates.
Handle implicit grabs when in broadway-server.c
keyboard focus handling
Add resize handling to js WM
Support window titles
_gdk_broadway_server_has_client is always FALSE, so resize don't work
Send reset events on client disconnect (button up, normal state. Maybe grab state reset?)
rgba suport
rgba support
shift-select in gedit doesn't work
backdrop mode
clean up /dev/shm on abrupt client exit

View File

@ -709,7 +709,7 @@ parse_input_message (BroadwayInput *input, const unsigned char *message)
}
if (l == NULL)
g_warning ("Got unexpected rountrip reply for id %d, tag %d\n", msg.roundtrip_notify.id, msg.roundtrip_notify.tag);
g_warning ("Got unexpected roundtrip reply for id %d, tag %d\n", msg.roundtrip_notify.id, msg.roundtrip_notify.tag);
else
{
BroadwayOutstandingRoundtrip *rt = l->data;

View File

@ -38,7 +38,7 @@ static guint32 client_id_count = 1;
* between its serials and daemon serials for any outstanding requests.
*
* There is some additional complexity in that there may be multiple consecutive web browser
* sessions, so we need to keep track of the last daemon serial used inbetween each web client
* sessions, so we need to keep track of the last daemon serial used in between each web client
* connection so that the daemon serials can be strictly increasing.
*/

View File

@ -48,7 +48,7 @@ struct _GdkBroadwayServer {
guint8 recv_buffer[1024];
guint process_input_idle;
GList *incomming;
GList *incoming;
};
struct _GdkBroadwayServerClass
@ -248,7 +248,7 @@ parse_all_input (GdkBroadwayServer *server)
reply = g_memdup (p, size);
p += size;
server->incomming = g_list_append (server->incomming, reply);
server->incoming = g_list_append (server->incoming, reply);
}
if (p < end)
@ -314,7 +314,7 @@ find_response_by_serial (GdkBroadwayServer *server, guint32 serial)
{
GList *l;
for (l = server->incomming; l != NULL; l = l->next)
for (l = server->incoming; l != NULL; l = l->next)
{
BroadwayReply *reply = l->data;
@ -336,12 +336,12 @@ process_input_messages (GdkBroadwayServer *server)
server->process_input_idle = 0;
}
while (server->incomming)
while (server->incoming)
{
reply = server->incomming->data;
server->incomming =
g_list_delete_link (server->incomming,
server->incomming);
reply = server->incoming->data;
server->incoming =
g_list_delete_link (server->incoming,
server->incoming);
if (reply->base.type == BROADWAY_REPLY_EVENT)
_gdk_broadway_events_got_input (server->display, &reply->event.msg);
@ -391,7 +391,7 @@ gdk_broadway_server_wait_for_reply (GdkBroadwayServer *server,
reply = find_response_by_serial (server, serial);
if (reply)
{
server->incomming = g_list_remove (server->incomming, reply);
server->incoming = g_list_remove (server->incoming, reply);
break;
}

View File

@ -127,7 +127,7 @@ _gdk_broadway_roundtrip_notify (GdkSurface *surface,
if (timings)
{
timings->refresh_interval = 33333; /* default to 1/30th of a second */
// This isn't quite right, since we've done a rountrip back too, can we do better?
// This isn't quite right, since we've done a roundtrip back too, can we do better?
timings->presentation_time = g_get_monotonic_time ();
timings->complete = TRUE;

View File

@ -79,7 +79,7 @@ gdk_cairo_context_init (GdkCairoContext *self)
*
* Returns: (transfer full) (nullable): a Cairo context to be used
* to draw the contents of the #GdkSurface. %NULL is returned
* when @contet is not drawing.
* when @context is not drawing.
*/
cairo_t *
gdk_cairo_context_cairo_create (GdkCairoContext *self)

View File

@ -402,7 +402,7 @@ gdk_content_provider_union_init (GdkContentProviderUnion *self)
* be chosen to provide it.
*
* This allows an easy way to support providing data in different formats.
* For example, an image may be provided by its file and by the iamge
* For example, an image may be provided by its file and by the image
* contents with a call such as
* |[<!-- language="C" -->
* gdk_content_provider_new_union ((GdkContentProvider *[2]) {

View File

@ -1273,7 +1273,7 @@ gdk_display_set_debug_flags (GdkDisplay *display,
*
* Returns whether surfaces can reasonably be expected to have
* their alpha channel drawn correctly on the screen. Check
* gdk_display_is_rgba() for wether the display supports an
* gdk_display_is_rgba() for whether the display supports an
* alpha channel.
*
* On X11 this function returns whether a compositing manager is
@ -1310,7 +1310,7 @@ gdk_display_set_composited (GdkDisplay *display,
* gdk_display_is_rgba:
* @display: a #GdkDisplay
*
* Returns wether surfaces on this @display are created with an
* Returns whether surfaces on this @display are created with an
* alpha channel.
*
* Even if a %TRUE is returned, it is possible that the

View File

@ -312,7 +312,7 @@ gdk_draw_context_begin_frame (GdkDrawContext *context,
else
{
g_critical ("The surface %p is already being drawn by %s %p. "
"You cannot draw s surface wih multiple contexts at the same time.",
"You cannot draw a surface with multiple contexts at the same time.",
priv->surface,
G_OBJECT_TYPE_NAME (priv->surface->paint_context), priv->surface->paint_context);
}
@ -404,7 +404,7 @@ gdk_draw_context_end_frame (GdkDrawContext *context)
* a union of the region passed to that function and the area of the surface
* that the @context determined needs to be repainted.
*
* If @context is not inbetween calls to gdk_draw_context_begin_frame() and
* If @context is not in between calls to gdk_draw_context_begin_frame() and
* gdk_draw_context_end_frame(), %NULL will be returned.
*
* Returns: (transfer none) (nullable): a Cairo region or %NULL if not drawing

View File

@ -648,7 +648,7 @@ gdk_frame_clock_paint_idle (void *data)
* Once we do receive "frame drawn" events, smooth_cycle_start will track the vsync, and do so in a more stable
* way compared to frame_time. If we then no longer receive "frame drawn" events, smooth_cycle_start will again be
* simply advanced in increments of the refresh interval, but this time we are in sync with the vsync. If we start
* receiving "frame drawn" events shortly after loosing them, then we should still be in sync.
* receiving "frame drawn" events shortly after losing them, then we should still be in sync.
*/
gint64 smooth_cycle_start = priv->smoothed_frame_time_base - priv->smoothed_frame_time_phase;
priv->min_next_frame_time = smooth_cycle_start + priv->smoothed_frame_time_period;

View File

@ -565,7 +565,7 @@ gdk_gl_context_get_debug_enabled (GdkGLContext *context)
*
* Sets whether the #GdkGLContext should be forward compatible.
*
* Forward compatibile contexts must not support OpenGL functionality that
* Forward compatible contexts must not support OpenGL functionality that
* has been marked as deprecated in the requested version; non-forward
* compatible contexts, on the other hand, must support both deprecated and
* non deprecated functionality.

View File

@ -54,7 +54,7 @@ void gtk_snapshot_pop (GdkSnapshot
* always produce the same output for the same snapshot.
*
* A #GdkPaintable may change its contents, meaning that it will now produce a
* different output with the same snpashot. Once that happens, it will call
* different output with the same snapshot. Once that happens, it will call
* gdk_paintable_invalidate_contents() which will emit the
* #GdkPaintable::invalidate-contents signal. If a paintable is known to never
* change its contents, it will set the %GDK_PAINTABLE_STATIC_CONTENTS flag.

View File

@ -58,7 +58,7 @@ gdk_toplevel_size_init (GdkToplevelSize *size,
* Retrieves the bounds the toplevel is placed within.
*
* The bounds represent the largest size a toplevel may have while still being
* able to fit within some type of boundery. Depending on the backend, this may
* able to fit within some type of boundary. Depending on the backend, this may
* be equivalent to the dimensions of the work area or the monitor on which the
* window is being presented on, or something else that limits the way a
* toplevel can be presented.

View File

@ -385,7 +385,7 @@
window_gdk.width += shadow_left + shadow_right;
window_gdk.height += shadow_top + shadow_bottom;
/* Convert to quartz coordiantes */
/* Convert to quartz coordinates */
_gdk_macos_display_to_display_coords ([self gdkDisplay],
window_gdk.x,
window_gdk.y + window_gdk.height,

View File

@ -118,7 +118,7 @@ static GPollFD event_poll_fd;
/* Current NSEvents that we've gotten from Cocoa but haven't yet converted
* to GdkEvents. We wait until our dispatch() function to do the conversion
* since the conversion can conceivably cause signals to be emmitted
* since the conversion can conceivably cause signals to be emitted
* or other things that shouldnt happen inside a poll function.
*/
static GQueue *current_events;
@ -146,7 +146,7 @@ static NSAutoreleasePool *autorelease_pool;
/* Flag when we've called nextEventMatchingMask ourself; this triggers
* a run loop iteration, so we need to detect that and avoid triggering
* our "run the GLib main looop while the run loop is active machinery.
* our "run the GLib main loop while the run loop is active machinery.
*/
static int getting_events = 0;

View File

@ -699,7 +699,7 @@ gdk_wayland_device_grab (GdkDevice *device,
gdk_surface_get_mapped (surface))
{
g_warning ("Surface %p is already mapped at the time of grabbing. "
"gdk_seat_grab() should be used to simultanously grab input "
"gdk_seat_grab() should be used to simultaneously grab input "
"and show this popup. You may find oddities ahead.",
surface);
}
@ -1913,7 +1913,7 @@ keyboard_handle_leave (void *data,
/* gdk_surface_is_destroyed() might already return TRUE for
* seat->keyboard_focus here, which would happen if we destroyed the
* surface before loosing keyboard focus.
* surface before losing keyboard focus.
*/
stop_key_repeat (seat);

View File

@ -137,7 +137,7 @@ GdkKeymap *_gdk_wayland_device_get_keymap (GdkDevice *device);
uint32_t _gdk_wayland_seat_get_implicit_grab_serial(GdkSeat *seat,
GdkEvent *event);
uint32_t _gdk_wayland_seat_get_last_implicit_grab_serial (GdkWaylandSeat *seat,
GdkEventSequence **seqence);
GdkEventSequence **sequence);
struct wl_data_device * gdk_wayland_device_get_data_device (GdkDevice *gdk_device);
void gdk_wayland_device_set_selection (GdkDevice *gdk_device,
struct wl_data_source *source);

View File

@ -1,7 +1,7 @@
STARTFONT 2.1
COMMENT
COMMENT downloaded from http://webcvs.freedesktop.org/xorg/font/cursor-misc/cursor.bdf?revision=1.1
COMMENT slighly edited by tml to correct a few gdk cursors on win32
COMMENT slightly edited by tml to correct a few gdk cursors on win32
COMMENT
COMMENT Created by bitmaptobdf
FONT cursor

View File

@ -179,7 +179,7 @@ struct _GdkWin32Clipdrop
*/
GAsyncQueue *clipboard_render_queue;
/* Window handle for the clipboard window tha we
/* Window handle for the clipboard window that we
* receive from the clipboard thread. We use that
* to wake up the clipboard window main loop by
* posting a message to it.

View File

@ -1370,7 +1370,7 @@ pixbuf_to_hbitmaps_normal (GdkPixbuf *pixbuf,
return FALSE;
}
/* rows are always aligned on 4-byte boundarys */
/* rows are always aligned on 4-byte boundaries */
bmstride = size * 3;
if (bmstride % 4 != 0)
bmstride += 4 - (bmstride % 4);

View File

@ -1098,7 +1098,7 @@ _gdk_win32_display_get_monitor_scale_factor (GdkWin32Display *win32_display,
}
else
{
/* Go back to GetDeviceCaps() for Windows 8 and earler, or when we don't
/* Go back to GetDeviceCaps() for Windows 8 and earlier, or when we don't
* have a HMONITOR nor a HWND
*/
HDC hdc = GetDC (hwnd);

View File

@ -156,7 +156,7 @@
* drag window) in response to this, as all the functions
* that GDK could perform here are already handled by the
* OS driving the DnD process via DoDragDrop() call.
* The LOCAL protocol, on the other hande, does a lot,
* The LOCAL protocol, on the other hand, does a lot,
* similar to what X11 backend does with XDND - it sends
* GDK_DRAG_LEAVE and GDK_DRAG_ENTER, emits GDK_DRAG_MOTION.
*
@ -831,7 +831,7 @@ gdk_drag_new (GdkDisplay *display,
static enum_formats *enum_formats_new (GArray *formats);
/* Finds a GdkDrag object that corresponds to a DnD operation
* which is currently targetting the dest_window
* which is currently targeting the dest_window
* Does not give a reference.
*/
GdkDrag *
@ -1826,7 +1826,7 @@ find_window_enum_proc (HWND hwnd,
return TRUE;
}
/* Finds the HWND under cursor. Local DnD protcol
/* Finds the HWND under cursor. Local DnD protocol
* uses this function, since local protocol is implemented
* entirely in GDK and cannot rely on the OS to notify
* drop targets about drags that move over them.

View File

@ -3127,7 +3127,7 @@ gdk_event_translate (MSG *msg,
if ((windowpos->flags & SWP_HIDEWINDOW) &&
!GDK_SURFACE_DESTROYED (window))
{
/* Make transient parent the forground window when window unmaps */
/* Make transient parent the foreground window when window unmaps */
impl = GDK_WIN32_SURFACE (window);
if (impl->transient_owner &&

View File

@ -29,7 +29,7 @@ G_BEGIN_DECLS
typedef struct _GdkWin32DragUtilityData GdkWin32DragUtilityData;
/* This structure is deliberately designed to be
* copyable with memcpy(), i.e. no pointers inside.
* copiable with memcpy(), i.e. no pointers inside.
*/
struct _GdkWin32DragUtilityData
{

View File

@ -243,7 +243,7 @@ on_surface_changed (void *data)
* window only when there actually is drawing. To do that we use
* a technique (hack) suggested by Uli Schlachter - if we set
* a dummy "mime data" on the cairo surface (this facility is
* used to attach JPEG data to an imager), then cairo wil flush
* used to attach JPEG data to an imager), then cairo will flush
* and remove the mime data before making any changes to the window.
*/

View File

@ -2961,7 +2961,7 @@ gsk_gl_renderer_create_programs (GskGLRenderer *self,
/* We initialize the alpha uniform here, since the default value is important.
* We can't do it in the shader like a resonable person would because that doesn't
* We can't do it in the shader like a reasonable person would because that doesn't
* work in gles. */
for (i = 0; i < GL_N_PROGRAMS; i++)
{
@ -3196,7 +3196,7 @@ gsk_gl_renderer_add_render_ops (GskGLRenderer *self,
RenderOpBuilder *builder)
{
/* This can still happen, even if the render nodes are created using
* GtkSnapshot, so let's juse be safe. */
* GtkSnapshot, so let's just be safe. */
if (node_is_invisible (node))
return;

View File

@ -120,7 +120,7 @@ static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0
if (node->y > min_y) {
// raise min_y higher.
// we've accounted for all waste up to min_y,
// but we'll now add more waste for everything we've visted
// but we'll now add more waste for everything we've visited
waste_area += visited_width * (node->y - min_y);
min_y = node->y;
// the first time through, visited_width might be reduced

View File

@ -1112,7 +1112,7 @@ gsk_inset_shadow_node_draw (GskRenderNode *node,
/* For the blurred case we divide the rendering into 9 parts,
* 4 of the corners, 4 for the horizonat/vertical lines and
* one for the interior. We make the non-interior parts
* large enought to fit the full radius of the blur, so that
* large enough to fit the full radius of the blur, so that
* the interior part can be drawn solidly.
*/
@ -1415,7 +1415,7 @@ gsk_outset_shadow_node_draw (GskRenderNode *node,
/* For the blurred case we divide the rendering into 9 parts,
* 4 of the corners, 4 for the horizonat/vertical lines and
* one for the interior. We make the non-interior parts
* large enought to fit the full radius of the blur, so that
* large enough to fit the full radius of the blur, so that
* the interior part can be drawn solidly.
*/

View File

@ -1712,7 +1712,7 @@ gsk_transform_invert (GskTransform *self)
*
* Checks two transforms for equality.
*
* Returns: %TRUE if the two transforms peform the same operation.
* Returns: %TRUE if the two transforms perform the same operation.
**/
gboolean
gsk_transform_equal (GskTransform *first,

View File

@ -968,7 +968,7 @@ gtk_css_parser_parse_url_arg (GtkCssParser *parser,
*
* If the parser matches the <url> token from the [CSS
* specification](https://drafts.csswg.org/css-values-4/#url-value),
* consumes it, resolves the URL and resturns the resulting #GFile.
* consumes it, resolves the URL and returns the resulting #GFile.
* On failure, an error is emitted and %NULL is returned.
*
* Returns: (nullable) (transfer full): the resulting URL or %NULL on error

View File

@ -13068,7 +13068,7 @@
"aliases_ascii" : [
],
"keywords" : [
"accomodation",
"accommodation",
"building",
"checkin",
"motel",
@ -21958,7 +21958,7 @@
"clock1" : {
"unicode" : "1f550",
"unicode_alternates" : "",
"name" : "clock face one oclock",
"name" : "clock face one o'clock",
"shortname" : ":clock1:",
"category" : "symbols",
"emoji_order" : "1013",
@ -21978,7 +21978,7 @@
"clock2" : {
"unicode" : "1f551",
"unicode_alternates" : "",
"name" : "clock face two oclock",
"name" : "clock face two o'clock",
"shortname" : ":clock2:",
"category" : "symbols",
"emoji_order" : "1014",
@ -21998,7 +21998,7 @@
"clock3" : {
"unicode" : "1f552",
"unicode_alternates" : "",
"name" : "clock face three oclock",
"name" : "clock face three o'clock",
"shortname" : ":clock3:",
"category" : "symbols",
"emoji_order" : "1015",
@ -22018,7 +22018,7 @@
"clock4" : {
"unicode" : "1f553",
"unicode_alternates" : "",
"name" : "clock face four oclock",
"name" : "clock face four o'clock",
"shortname" : ":clock4:",
"category" : "symbols",
"emoji_order" : "1016",
@ -22038,7 +22038,7 @@
"clock5" : {
"unicode" : "1f554",
"unicode_alternates" : "",
"name" : "clock face five oclock",
"name" : "clock face five o'clock",
"shortname" : ":clock5:",
"category" : "symbols",
"emoji_order" : "1017",
@ -22058,7 +22058,7 @@
"clock6" : {
"unicode" : "1f555",
"unicode_alternates" : "",
"name" : "clock face six oclock",
"name" : "clock face six o'clock",
"shortname" : ":clock6:",
"category" : "symbols",
"emoji_order" : "1018",
@ -22078,7 +22078,7 @@
"clock7" : {
"unicode" : "1f556",
"unicode_alternates" : "",
"name" : "clock face seven oclock",
"name" : "clock face seven o'clock",
"shortname" : ":clock7:",
"category" : "symbols",
"emoji_order" : "1019",
@ -22098,7 +22098,7 @@
"clock8" : {
"unicode" : "1f557",
"unicode_alternates" : "",
"name" : "clock face eight oclock",
"name" : "clock face eight o'clock",
"shortname" : ":clock8:",
"category" : "symbols",
"emoji_order" : "1020",
@ -22118,7 +22118,7 @@
"clock9" : {
"unicode" : "1f558",
"unicode_alternates" : "",
"name" : "clock face nine oclock",
"name" : "clock face nine o'clock",
"shortname" : ":clock9:",
"category" : "symbols",
"emoji_order" : "1021",
@ -22138,7 +22138,7 @@
"clock10" : {
"unicode" : "1f559",
"unicode_alternates" : "",
"name" : "clock face ten oclock",
"name" : "clock face ten o'clock",
"shortname" : ":clock10:",
"category" : "symbols",
"emoji_order" : "1022",
@ -22158,7 +22158,7 @@
"clock11" : {
"unicode" : "1f55a",
"unicode_alternates" : "",
"name" : "clock face eleven oclock",
"name" : "clock face eleven o'clock",
"shortname" : ":clock11:",
"category" : "symbols",
"emoji_order" : "1023",
@ -22178,7 +22178,7 @@
"clock12" : {
"unicode" : "1f55b",
"unicode_alternates" : "",
"name" : "clock face twelve oclock",
"name" : "clock face twelve o'clock",
"shortname" : ":clock12:",
"category" : "symbols",
"emoji_order" : "1024",

View File

@ -1,4 +1,4 @@
/* gtkaccessibleattributeset.c: Accessible attribute containt
/* gtkaccessibleattributeset.c: Accessible attribute content
*
* Copyright 2020 GNOME Foundation
*

View File

@ -32,7 +32,7 @@ typedef struct
{
GtkApplicationImplDBusClass parent_class;
/* stores the dbus version of the overriden methods */
/* stores the dbus version of the overridden methods */
guint (*dbus_inhibit) (GtkApplicationImpl *impl,
GtkWindow *window,
GtkApplicationInhibitFlags flags,

View File

@ -791,7 +791,7 @@ show_help_overlay (GSimpleAction *action,
* sets up an action with the name win.show-help-overlay to present
* it.
*
* @window takes resposibility for destroying @help_overlay.
* @window takes responsibility for destroying @help_overlay.
*/
void
gtk_application_window_set_help_overlay (GtkApplicationWindow *window,

View File

@ -446,7 +446,7 @@ gtk_aspect_frame_get_ratio (GtkAspectFrame *self)
* @obey_child: If %TRUE, @ratio is ignored, and the aspect
* ratio is taken from the requistion of the child.
*
* Sets whether the aspect ratio of the childs size
* Sets whether the aspect ratio of the child's size
* request should override the set aspect ratio of
* the #GtkAspectFrame.
*/
@ -470,10 +470,10 @@ gtk_aspect_frame_set_obey_child (GtkAspectFrame *self,
* gtk_aspect_frame_get_obey_child:
* @self: a #GtkAspectFrame
*
* Returns whether the childs size request should override
* Returns whether the child's size request should override
* the set aspect ratio of the #GtkAspectFrame.
*
* Returns: whether to obey the childs size request
* Returns: whether to obey the child's size request
*/
gboolean
gtk_aspect_frame_get_obey_child (GtkAspectFrame *self)

View File

@ -436,7 +436,7 @@ gtk_bitset_remove_range (GtkBitset *self,
* @last: last value to add
*
* Adds the closed range [@first, @last], so @first, @last and all
* values inbetween. @first must be smaller than @last.
* values in between. @first must be smaller than @last.
**/
void
gtk_bitset_add_range_closed (GtkBitset *self,
@ -456,7 +456,7 @@ gtk_bitset_add_range_closed (GtkBitset *self,
* @last: last value to remove
*
* Removes the closed range [@first, @last], so @first, @last and all
* values inbetween. @first must be smaller than @last.
* values in between. @first must be smaller than @last.
**/
void
gtk_bitset_remove_range_closed (GtkBitset *self,

View File

@ -564,7 +564,7 @@ gtk_bookmark_list_get_io_priority (GtkBookmarkList *self)
*
* Files will be added to @self from time to time while loading is
* going on. The order in which are added is undefined and may change
* inbetween runs.
* in between runs.
*
* Returns: %TRUE if @self is loading
*/

View File

@ -158,7 +158,7 @@ gtk_bool_filter_class_init (GtkBoolFilterClass *class)
/**
* GtkBoolFilter:expression: (type GtkExpression)
*
* The boolean expression to evalute on item
* The boolean expression to evaluate on item
*/
properties[PROP_EXPRESSION] =
gtk_param_spec_expression ("expression",

View File

@ -1766,7 +1766,7 @@ gtk_builder_get_current_object (GtkBuilder *builder)
* %NULL for none
*
* Sets the current object for the @builder. The current object can be
* tought of as the `this` object that the builder is working for and
* thought of as the `this` object that the builder is working for and
* will often be used as the default object when an object is optional.
*
* gtk_widget_init_template() for example will set the current object to

View File

@ -2010,9 +2010,9 @@ end_element (GtkBuildableParseContext *context,
{
RequiresInfo *req_info = state_pop_info (data, RequiresInfo);
/* TODO: Allow third party widget developers to check thier
/* TODO: Allow third party widget developers to check their
* required versions, possibly throw a signal allowing them
* to check thier library versions here.
* to check their library versions here.
*/
if (!strcmp (req_info->library, "gtk+"))
{

View File

@ -186,7 +186,7 @@
*
* # Rendering Areas
*
* Once area sizes have been aquired at least for the rows in the
* Once area sizes have been acquired at least for the rows in the
* visible area of the layouting widget they can be rendered at
* #GtkWidgetClass.snapshot() time.
*
@ -1330,7 +1330,7 @@ gtk_cell_area_real_get_preferred_height_for_width (GtkCellArea *area,
int *minimum_height,
int *natural_height)
{
/* If the area doesnt do height-for-width, fallback on base preferred height */
/* If the area doesn't do height-for-width, fallback on base preferred height */
GTK_CELL_AREA_GET_CLASS (area)->get_preferred_height (area, context, widget, minimum_height, natural_height);
}
@ -1342,7 +1342,7 @@ gtk_cell_area_real_get_preferred_width_for_height (GtkCellArea *area,
int *minimum_width,
int *natural_width)
{
/* If the area doesnt do width-for-height, fallback on base preferred width */
/* If the area doesn't do width-for-height, fallback on base preferred width */
GTK_CELL_AREA_GET_CLASS (area)->get_preferred_width (area, context, widget, minimum_width, natural_width);
}

View File

@ -1228,7 +1228,7 @@ gtk_cell_area_box_foreach_alloc (GtkCellArea *area,
}
else
{
/* If the cell we are rendering doesnt fit into the remaining space,
/* If the cell we are rendering doesn't fit into the remaining space,
* clip it so that the underlying renderer has a chance to deal with
* it (for instance text renderers get a chance to ellipsize).
*/

View File

@ -1378,7 +1378,7 @@ gtk_cell_renderer_get_request_mode (GtkCellRenderer *cell)
* @minimum_size: (out) (allow-none): location to store the minimum size, or %NULL
* @natural_size: (out) (allow-none): location to store the natural size, or %NULL
*
* Retreives a renderers natural size when rendered to @widget.
* Retrieves a renderers natural size when rendered to @widget.
*/
void
gtk_cell_renderer_get_preferred_width (GtkCellRenderer *cell,
@ -1424,7 +1424,7 @@ gtk_cell_renderer_get_preferred_width (GtkCellRenderer *cell,
* @minimum_size: (out) (allow-none): location to store the minimum size, or %NULL
* @natural_size: (out) (allow-none): location to store the natural size, or %NULL
*
* Retreives a renderers natural size when rendered to @widget.
* Retrieves a renderers natural size when rendered to @widget.
*/
void
gtk_cell_renderer_get_preferred_height (GtkCellRenderer *cell,
@ -1471,7 +1471,7 @@ gtk_cell_renderer_get_preferred_height (GtkCellRenderer *cell,
* @minimum_width: (out) (allow-none): location for storing the minimum size, or %NULL
* @natural_width: (out) (allow-none): location for storing the preferred size, or %NULL
*
* Retreives a cell rendererss minimum and natural width if it were rendered to
* Retrieves a cell rendererss minimum and natural width if it were rendered to
* @widget with the specified @height.
*/
void
@ -1519,7 +1519,7 @@ gtk_cell_renderer_get_preferred_width_for_height (GtkCellRenderer *cell,
* @minimum_height: (out) (allow-none): location for storing the minimum size, or %NULL
* @natural_height: (out) (allow-none): location for storing the preferred size, or %NULL
*
* Retreives a cell rendererss minimum and natural height if it were rendered to
* Retrieves a cell rendererss minimum and natural height if it were rendered to
* @widget with the specified @width.
*/
void

View File

@ -1853,7 +1853,7 @@ gtk_cell_renderer_text_start_editing (GtkCellRenderer *cell,
* Sets the height of a renderer to explicitly be determined by the font and
* y_pad property set on it. Further changes in these properties do not
* affect the height, so they must be accompanied by a subsequent call to this
* function. Using this function is unflexible, and should really only be used
* function. Using this function is inflexible, and should really only be used
* if calculating the size of a cell is too slow (ie, a massive number of cells
* displayed). If @number_of_rows is -1, then the fixed height is unset, and
* the height is determined by the properties again.
@ -2003,7 +2003,7 @@ gtk_cell_renderer_text_get_preferred_height (GtkCellRenderer *cell,
* height-for-width and not the opposite. Here we have only to return
* the height for the base minimum width of the renderer.
*
* Note this code path wont be followed by GtkTreeView which is
* Note this code path won't be followed by GtkTreeView which is
* height-for-width specifically.
*/
gtk_cell_renderer_get_preferred_width (cell, widget, &min_width, NULL);

View File

@ -42,7 +42,7 @@
* and #GtkCellAreaContext. A #GtkCellAreaContext can be provided to the
* #GtkCellView at construction time in order to keep the cellview in context
* of a group of cell views, this ensures that the renderers displayed will
* be properly aligned with eachother (like the aligned cells in the menus
* be properly aligned with each other (like the aligned cells in the menus
* of #GtkComboBox).
*
* #GtkCellView is #GtkOrientable in order to decide in which orientation
@ -268,7 +268,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
*
* Whether the view should request enough space to always fit
* the size of every row in the model (used by the combo box to
* ensure the combo box size doesnt change when different items
* ensure the combo box size doesn't change when different items
* are selected).
*
* since 3.0
@ -840,7 +840,7 @@ gtk_cell_view_new (void)
* Creates a new #GtkCellView widget with a specific #GtkCellArea
* to layout cells and a specific #GtkCellAreaContext.
*
* Specifying the same context for a handfull of cells lets
* Specifying the same context for a handful of cells lets
* the underlying area synchronize the geometry for those cells,
* in this way alignments with cellviews for other rows are
* possible.

View File

@ -175,7 +175,7 @@ gtk_column_view_cell_init (GtkColumnViewCell *self)
GtkWidget *widget = GTK_WIDGET (self);
gtk_widget_set_focusable (widget, FALSE);
/* FIXME: Figure out if settting the manager class to INVALID should work */
/* FIXME: Figure out if setting the manager class to INVALID should work */
gtk_widget_set_layout_manager (widget, NULL);
widget->priv->resize_func = gtk_column_view_cell_resize_func;
}

View File

@ -697,7 +697,7 @@ gtk_column_view_column_set_factory (GtkColumnViewColumn *self,
* @title: (nullable): Title to use for this column
*
* Sets the title of this column. The title is displayed in the header of a
* #GtkColumnView for this column and is therefor user-facing text that should
* #GtkColumnView for this column and is therefore user-facing text that should
* be translated.
*/
void

View File

@ -586,7 +586,7 @@ gtk_constraint_variable_set_iter_next (GtkConstraintVariableSetIter *iter,
* @first: a #GtkConstraintVariable
* @second: a #GtkConstraintVariable
*
* Creates a new #GtkConstraintVariablePair, containint @first and @second.
* Creates a new #GtkConstraintVariablePair, containing @first and @second.
*
* The #GtkConstraintVariablePair acquires a reference over the two
* given #GtkConstraintVariables.

View File

@ -547,7 +547,7 @@ gtk_css_image_get_parser_type (GtkCssParser *parser)
* implementing shorthand properties. A successful parse of an image
* can not be guaranteed.
*
* Returns: %TURE if it looks like an image.
* Returns: %TRUE if it looks like an image.
**/
gboolean
_gtk_css_image_can_parse (GtkCssParser *parser)

View File

@ -73,7 +73,7 @@
* - The sibling ordering in the CSS node tree is supposed to correspond
* to the visible order of content: top-to-bottom and left-to-right.
* Reorder your nodes to maintain this correlation. In particular for
* horizontally layed out widgets, this will require listening to
* horizontally laid out widgets, this will require listening to
* ::direction-changed.
* - The draw function should just use gtk_style_context_save_to_node() to
* 'switch' to the right node, not make any other changes to the style

View File

@ -244,7 +244,7 @@ gboolean
_gtk_css_value_equal0 (const GtkCssValue *value1,
const GtkCssValue *value2)
{
/* Inclues both values being NULL */
/* Includes both values being NULL */
if (value1 == value2)
return TRUE;

View File

@ -779,7 +779,7 @@ gtk_directory_list_get_attributes (GtkDirectoryList *self)
*
* The default IO priority is %G_PRIORITY_DEFAULT, which is higher than
* the GTK redraw priority. If you are loading a lot of directories in
* parrallel, lowering it to something like %G_PRIORITY_DEFAULT_IDLE
* parallel, lowering it to something like %G_PRIORITY_DEFAULT_IDLE
* may increase responsiveness.
*/
void
@ -821,7 +821,7 @@ gtk_directory_list_get_io_priority (GtkDirectoryList *self)
*
* Files will be added to @self from time to time while loading is
* going on. The order in which are added is undefined and may change
* inbetween runs.
* in between runs.
*
* Returns: %TRUE if @self is loading
*/

View File

@ -81,7 +81,7 @@
* have changed. gtk_expression_watch() starts watching an expression, and
* gtk_expression_watch_unwatch() stops.
*
* Watches can be created for automatically updating the propery of an object,
* Watches can be created for automatically updating the property of an object,
* similar to GObject's #GBinding mechanism, by using gtk_expression_bind().
*
* # GtkExpression in GObject properties

View File

@ -244,7 +244,7 @@ gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser)
* @chooser: a #GtkFileChooser
* @create_folders: %TRUE if the Create Folder button should be displayed
*
* Sets whether file choser will offer to create new folders.
* Sets whether file chooser will offer to create new folders.
* This is only relevant if the action is not set to be
* %GTK_FILE_CHOOSER_ACTION_OPEN.
**/
@ -261,7 +261,7 @@ gtk_file_chooser_set_create_folders (GtkFileChooser *chooser,
* gtk_file_chooser_get_create_folders:
* @chooser: a #GtkFileChooser
*
* Gets whether file choser will offer to create new folders.
* Gets whether file chooser will offer to create new folders.
* See gtk_file_chooser_set_create_folders().
*
* Returns: %TRUE if the Create Folder button should be displayed.

View File

@ -1336,7 +1336,7 @@ rename_file_rename_clicked (GtkButton *button,
error_dialog (impl, _("The file could not be renamed"), error);
else
{
/* Rename succeded, save renamed file so it will
/* Rename succeeded, save renamed file so it will
* be revealed by our "row-changed" handler */
impl->renamed_file = g_object_ref (child);
}

View File

@ -1581,7 +1581,7 @@ gtk_flow_box_size_allocate (GtkWidget *widget,
/* By default flow at the natural item width */
line_length = avail_size / (nat_item_size + item_spacing);
/* After the above aproximation, check if we cant fit one more on the line */
/* After the above approximation, check if we can't fit one more on the line */
if (line_length * item_spacing + (line_length + 1) * nat_item_size <= avail_size)
line_length++;
@ -1621,7 +1621,7 @@ gtk_flow_box_size_allocate (GtkWidget *widget,
if (line_align != GTK_ALIGN_FILL)
line_size = MIN (line_size, nat_fixed_line_size);
/* Get the real extra pixels incase of GTK_ALIGN_START lines */
/* Get the real extra pixels in case of GTK_ALIGN_START lines */
extra_pixels = avail_size - (line_length - 1) * item_spacing - item_size * line_length;
extra_line_pixels = avail_other_size - (n_lines - 1) * line_spacing - line_size * n_lines;
}
@ -2012,7 +2012,7 @@ gtk_flow_box_measure (GtkWidget *widget,
nat_width += nat_line_length;
}
}
else /* In homogeneous mode; horizontally oriented boxs
else /* In homogeneous mode; horizontally oriented boxes
* give the same width to all children */
{
get_max_item_size (box, GTK_ORIENTATION_HORIZONTAL,
@ -2096,7 +2096,7 @@ gtk_flow_box_measure (GtkWidget *widget,
/* By default flow at the natural item width */
line_length = avail_size / (nat_item_height + priv->row_spacing);
/* After the above aproximation, check if we cant fit one more on the line */
/* After the above approximation, check if we can't fit one more on the line */
if (line_length * priv->row_spacing + (line_length + 1) * nat_item_height <= avail_size)
line_length++;
@ -2336,7 +2336,7 @@ gtk_flow_box_measure (GtkWidget *widget,
/* By default flow at the natural item width */
line_length = avail_size / (nat_item_width + priv->column_spacing);
/* After the above aproximation, check if we cant fit one more on the line */
/* After the above approximation, check if we can't fit one more on the line */
if (line_length * priv->column_spacing + (line_length + 1) * nat_item_width <= avail_size)
line_length++;
@ -3690,7 +3690,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
/**
* GtkFlowBox::selected-children-changed:
* @box: the #GtkFlowBox on wich the signal is emitted
* @box: the #GtkFlowBox on which the signal is emitted
*
* The ::selected-children-changed signal is emitted when the
* set of selected children changes.
@ -3976,7 +3976,7 @@ gtk_flow_box_bound_model_changed (GListModel *list,
}
}
/* Buildable implemenation {{{3 */
/* Buildable implementation {{{3 */
static GtkBuildableIface *parent_buildable_iface;

View File

@ -350,7 +350,7 @@ gtk_frame_set_label (GtkFrame *frame,
* to gtk_frame_new().)
*
* Returns: (nullable): the text in the label, or %NULL if there
* was no label widget or the lable widget was not
* was no label widget or the label widget was not
* a #GtkLabel. This string is owned by GTK+ and
* must not be modified or freed.
**/

View File

@ -31,7 +31,7 @@
*
* The number of touches that a #GtkGesture need to be recognized is controlled
* by the #GtkGesture:n-points property, if a gesture is keeping track of less
* or more than that number of sequences, it won't check wether the gesture
* or more than that number of sequences, it won't check whether the gesture
* is recognized.
*
* As soon as the gesture has the expected number of touches, it will check

View File

@ -24,7 +24,7 @@
* @See_also: #GtkGestureSwipe
*
* #GtkGestureDrag is a #GtkGesture implementation that recognizes drag
* operations. The drag operation itself can be tracked throught the
* operations. The drag operation itself can be tracked throughout the
* #GtkGestureDrag::drag-begin, #GtkGestureDrag::drag-update and
* #GtkGestureDrag::drag-end signals, or the relevant coordinates be
* extracted through gtk_gesture_drag_get_offset() and

View File

@ -521,7 +521,7 @@ gtk_gl_area_allocate_texture (GtkGLArea *area)
*
* Ensures that the @area framebuffer object is made the current draw
* and read target, and that all the required buffers for the @area
* are created and bound to the frambuffer.
* are created and bound to the framebuffer.
*
* This function is automatically called before emitting the
* #GtkGLArea::render signal, and doesn't normally need to be called
@ -811,7 +811,7 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
* If set to %FALSE the data from previous rendering is kept around and will
* be used for drawing the widget the next time, unless the window is resized.
* In order to force a rendering gtk_gl_area_queue_render() must be called.
* This mode is useful when the scene changes seldomly, but takes a long time
* This mode is useful when the scene changes seldom, but takes a long time
* to redraw.
*/
obj_props[PROP_AUTO_RENDER] =
@ -1271,7 +1271,7 @@ gtk_gl_area_get_auto_render (GtkGLArea *area)
* around and will be used for drawing the widget the next time,
* unless the window is resized. In order to force a rendering
* gtk_gl_area_queue_render() must be called. This mode is useful when
* the scene changes seldomly, but takes a long time to redraw.
* the scene changes seldom, but takes a long time to redraw.
*/
void
gtk_gl_area_set_auto_render (GtkGLArea *area,

View File

@ -207,7 +207,7 @@ cell_augment (GtkRbTree *tree,
* @y into the primary direction.
*
* If y is larger than the height of all cells, %NULL will be returned.
* In particular that means that for an emtpy grid, %NULL is returned
* In particular that means that for an empty grid, %NULL is returned
* for any value.
*
* Returns: (nullable): The first cell at offset y or %NULL if none

View File

@ -95,7 +95,7 @@ gtk_icon_cache_new_for_path (const char *path)
if (g_stat (cache_filename, &st) < 0 || st.st_size < 4)
goto done;
/* Verify cache is uptodate */
/* Verify cache is up-to-date */
if (st.st_mtime < path_st.st_mtime)
{
GTK_NOTE (ICONTHEME, g_message ("icon cache outdated"));

View File

@ -231,7 +231,7 @@ gtk_string_set_add (GtkStringSet *set,
* All private functions that take a GtkIconTheme (or one of its
* private data types (like IconThemeDir, UnthemedIcon, etc) arg are
* expected to be called with the icon theme lock held, unless the
* funcion has a _unlocked suffix. Any similar function that must be
* function has a _unlocked suffix. Any similar function that must be
* called on the main thread, will have a _mainthread suffix.
*
* So the rules for such functions are:
@ -1395,7 +1395,7 @@ gtk_icon_theme_dispose (GObject *object)
* we finalize on a thread and on the main thread some display or
* setting signal is emitted.
*
* It is possible that before we aquire the lock this happens
* It is possible that before we acquire the lock this happens
* and the other thread refs the icon theme for some reason, but
* this is ok as it is allowed to resurrect objects in dispose
* (but not in finalize).

View File

@ -3131,7 +3131,7 @@ gtk_icon_view_row_changed (GtkTreeModel *model,
* and only invalidate a single item and queue a relayout
* instead of invalidating the whole thing.
*
* For now GtkIconView still cant deal with huge models
* For now GtkIconView still can't deal with huge models
* so just invalidate the whole thing when the model
* changes.
*/

View File

@ -53,7 +53,7 @@ typedef void (* GtkIconViewForeachFunc) (GtkIconView *icon_view,
* GtkIconViewDropPosition:
* @GTK_ICON_VIEW_NO_DROP: no drop possible
* @GTK_ICON_VIEW_DROP_INTO: dropped item replaces the item
* @GTK_ICON_VIEW_DROP_LEFT: droppped item is inserted to the left
* @GTK_ICON_VIEW_DROP_LEFT: dropped item is inserted to the left
* @GTK_ICON_VIEW_DROP_RIGHT: dropped item is inserted to the right
* @GTK_ICON_VIEW_DROP_ABOVE: dropped item is inserted above
* @GTK_ICON_VIEW_DROP_BELOW: dropped item is inserted below

View File

@ -113,7 +113,7 @@ static void gtk_image_measure (GtkWidget *widget,
static void gtk_image_css_changed (GtkWidget *widget,
GtkCssStyleChange *change);
static void gtk_image_system_setting_changed (GtkWidget *widget,
GtkSystemSetting seting);
GtkSystemSetting setting);
static void gtk_image_finalize (GObject *object);
static void gtk_image_set_property (GObject *object,

View File

@ -671,7 +671,7 @@ gtk_im_context_ime_focus_in (GtkIMContext *context)
if (!GDK_IS_SURFACE (context_ime->client_surface))
return;
/* swtich current context */
/* switch current context */
context_ime->focus = TRUE;
hwnd = gdk_win32_surface_get_impl_hwnd (context_ime->client_surface);
@ -727,7 +727,7 @@ gtk_im_context_ime_focus_out (GtkIMContext *context)
if (!GDK_IS_SURFACE (context_ime->client_surface))
return;
/* swtich current context */
/* switch current context */
context_ime->focus = FALSE;
hwnd = gdk_win32_surface_get_impl_hwnd (context_ime->client_surface);
@ -776,7 +776,7 @@ gtk_im_context_ime_focus_out (GtkIMContext *context)
context_ime->preediting = FALSE;
}
/* remove event fileter */
/* remove event filter */
toplevel = context_ime->client_surface;
if (GDK_IS_SURFACE (toplevel))
{

View File

@ -31,7 +31,7 @@
*
* y'' = -my'
*
* With m the resistence factor. For this we use the following 2
* With m the resistance factor. For this we use the following 2
* base solutions:
*
* f1(x) = 1

View File

@ -82,7 +82,7 @@
*
* GtkLabel has a single CSS node with the name label. A wide variety
* of style classes may be applied to labels, such as .title, .subtitle,
* .dim-label, etc. In the #GtkShortcutsWindow, labels are used wth the
* .dim-label, etc. In the #GtkShortcutsWindow, labels are used with the
* .keycap style class.
*
* If the label has a selection, it gets a subnode with name selection.
@ -778,7 +778,7 @@ gtk_label_class_init (GtkLabelClass *class)
/**
* GtkLabel:xalign:
*
* The xalign property determines the horizontal aligment of the label text
* The xalign property determines the horizontal alignment of the label text
* inside the labels size allocation. Compare this to #GtkWidget:halign,
* which determines how the labels size allocation is positioned in the
* space available for the label.
@ -794,7 +794,7 @@ gtk_label_class_init (GtkLabelClass *class)
/**
* GtkLabel:yalign:
*
* The yalign property determines the vertical aligment of the label text
* The yalign property determines the vertical alignment of the label text
* inside the labels size allocation. Compare this to #GtkWidget:valign,
* which determines how the labels size allocation is positioned in the
* space available for the label.

View File

@ -1600,7 +1600,7 @@ gtk_list_base_stop_rubberband (GtkListBase *self,
selected = gtk_bitset_new_empty ();
mask = gtk_bitset_ref (rubberband_selection);
}
else /* no modifer */
else /* no modifier */
{
/* select the rubberband, clear the rest */
selected = gtk_bitset_ref (rubberband_selection);

View File

@ -540,7 +540,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
/**
* GtkListBox::selected-rows-changed:
* @box: the #GtkListBox on wich the signal is emitted
* @box: the #GtkListBox on which the signal is emitted
*
* The ::selected-rows-changed signal is emitted when the
* set of selected rows changes.

View File

@ -752,7 +752,7 @@ gtk_media_stream_get_error (GtkMediaStream *self)
* in process, the GtkMediaStream:seeking property will be set.
*
* When calling gtk_media_stream_seek() during an ongoing seek operation,
* the new seek wil override any pending seek.
* the new seek will override any pending seek.
**/
void
gtk_media_stream_seek (GtkMediaStream *self,

View File

@ -83,7 +83,7 @@
* gtk_show_uri_on_window() is a convenient way to launch applications for URIs.
*
* Another object that is worth mentioning in this context is
* #GdkAppLaunchContext, which provides visual feedback when lauching
* #GdkAppLaunchContext, which provides visual feedback when launching
* applications.
*/

View File

@ -543,7 +543,7 @@ gtk_numeric_sorter_class_init (GtkNumericSorterClass *class)
/**
* GtkNumericSorter:expression: (type GtkExpression)
*
* The expression to evalute on items to get a number to compare with
* The expression to evaluate on items to get a number to compare with
*/
properties[PROP_EXPRESSION] =
gtk_param_spec_expression ("expression",

View File

@ -217,7 +217,7 @@ gtk_path_bar_init (GtkPathBar *path_bar)
gtk_widget_add_css_class (path_bar->down_slider_button, "slider-button");
gtk_widget_set_parent (path_bar->down_slider_button, GTK_WIDGET (path_bar));
/* GtkBuilder wont let us connect 'swapped' without specifying the signal's
/* GtkBuilder won't let us connect 'swapped' without specifying the signal's
* user data in the .ui file
*/
g_signal_connect_swapped (path_bar->up_slider_button, "clicked",

View File

@ -1915,7 +1915,7 @@ dnd_cancel_cb (GdkDrag *drag,
* is also not true, since when the drag comes from a different widget than the
* sidebar, when the drag stops the last drag signal we receive is drag-leave.
* So here what we will do is restore the state of the sidebar as if no drag
* is being done (and if the application didnt request for permanent hints with
* is being done (and if the application didn't request for permanent hints with
* gtk_places_sidebar_show_drop_hints) and we will free the drag data next time
* we build new drag data in drag_data_received.
*/

View File

@ -567,7 +567,7 @@ gtk_print_job_set_track_print_status (GtkPrintJob *job,
* gtk_print_job_get_track_print_status:
* @job: a #GtkPrintJob
*
* Returns wheter jobs will be tracked after printing.
* Returns whether jobs will be tracked after printing.
* For details, see gtk_print_job_set_track_print_status().
*
* Returns: %TRUE if print job status will be reported after printing

View File

@ -251,7 +251,7 @@ gtk_print_operation_unix_launch_preview (GtkPrintOperation *op,
gtk_print_settings_set_number_up (print_settings, 1);
gtk_print_settings_set_number_up_layout (print_settings, GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM);
/* These removals are neccessary because cups-* settings have higher priority
/* These removals are necessary because cups-* settings have higher priority
* than normal settings.
*/
gtk_print_settings_unset (print_settings, "cups-reverse");

View File

@ -1119,7 +1119,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*
* This must be set to a positive number
* before the rendering starts. It may be set in a
* #GtkPrintOperation::begin-print signal hander.
* #GtkPrintOperation::begin-print signal handler.
*
* Note that the page numbers passed to the
* #GtkPrintOperation::request-page-setup and
@ -1545,7 +1545,7 @@ gtk_print_operation_set_job_name (GtkPrintOperation *op,
*
* This must be set to a positive number
* before the rendering starts. It may be set in a
* #GtkPrintOperation::begin-print signal hander.
* #GtkPrintOperation::begin-print signal handler.
*
* Note that the page numbers passed to the
* #GtkPrintOperation::request-page-setup
@ -1874,7 +1874,7 @@ gtk_print_operation_set_custom_tab_label (GtkPrintOperation *op,
* @filename: (type filename): the filename for the exported file
*
* Sets up the #GtkPrintOperation to generate a file instead
* of showing the print dialog. The indended use of this function
* of showing the print dialog. The intended use of this function
* is for implementing Export to PDF actions. Currently, PDF
* is the only supported format.
*

View File

@ -156,7 +156,7 @@ gtk_property_lookup_list_model_ensure (GtkPropertyLookupListModel *self,
if (gtk_property_lookup_list_model_append (self, n_items) == n_items)
{
/* readd NULL sentinel */
/* re-add NULL sentinel */
g_ptr_array_add (self->items, NULL);
}
}

View File

@ -65,7 +65,7 @@ _data_provider_release_cairo_surface (void* info, const void* data, size_t size)
}
/* Returns a new NSImage or %NULL in case of an error.
* The device scale factor will be transfered to the NSImage (hidpi)
* The device scale factor will be transferred to the NSImage (hidpi)
*/
NSImage *
_gtk_quartz_create_image_from_surface (cairo_surface_t *surface)

Some files were not shown because too many files have changed in this diff Show More