[gtk: 1/2] Fix minor typos



commit 01bd4cc4e18a1ea697fe61791ba710d0d55e8290
Author: Yuri Chornoivan <yurchor ukr net>
Date:   Thu May 28 11:00:03 2020 +0300

    Fix minor typos

 demos/gtk-demo/gtkgears.c                   |  2 +-
 demos/gtk-demo/listbox.ui                   |  2 +-
 demos/gtk-demo/main.c                       |  2 +-
 demos/gtk-demo/paintable_mediastream.c      |  4 ++--
 demos/widget-factory/widget-factory.c       |  2 +-
 docs/reference/README.md                    |  2 +-
 docs/text_widget_internals.txt              |  2 +-
 gdk/gdkdevice.c                             |  2 +-
 gdk/gdkdisplay.c                            |  2 +-
 gdk/gdkdisplaymanager.c                     |  2 +-
 gdk/gdkpaintable.c                          |  2 +-
 gdk/gdksurface.c                            |  6 +++---
 gdk/gdktoplevel.c                           |  2 +-
 gdk/gdkvulkancontext.c                      |  4 ++--
 gdk/quartz/gdkeventloop-quartz.c            |  8 ++++----
 gdk/wayland/cursor/os-compatibility.c       |  2 +-
 gdk/wayland/gdkdisplay-wayland.c            |  2 +-
 gdk/wayland/gdksurface-wayland.c            |  2 +-
 gdk/wayland/gdkvulkancontext-wayland.c      |  2 +-
 gdk/win32/gdkclipdrop-win32.c               |  2 +-
 gdk/win32/gdkdrag-win32.c                   |  2 +-
 gdk/win32/gdksurface-win32.c                |  2 +-
 gdk/win32/gdkvulkancontext-win32.c          |  2 +-
 gdk/x11/gdkclipboard-x11.c                  |  2 +-
 gdk/x11/gdkdevice-xi2.c                     |  2 +-
 gdk/x11/gdkdisplay-x11.c                    |  2 +-
 gdk/x11/gdkkeys-x11.c                       |  2 +-
 gdk/x11/gdkscreen-x11.h                     |  2 +-
 gdk/x11/gdksurface-x11.c                    |  4 ++--
 gdk/x11/gdkvulkancontext-x11.c              |  2 +-
 gsk/gskrendernodeimpl.c                     |  4 ++--
 gtk/compose-parse.py                        |  4 ++--
 gtk/gtkaccessible.c                         |  2 +-
 gtk/gtkbuilder.c                            |  2 +-
 gtk/gtkcellarea.h                           |  4 ++--
 gtk/gtkcellrenderer.c                       |  2 +-
 gtk/gtkcellrendererspinner.c                |  2 +-
 gtk/gtkcellrenderertext.c                   |  2 +-
 gtk/gtkcheckbutton.c                        |  2 +-
 gtk/gtkcssimage.c                           |  2 +-
 gtk/gtkcssnodestylecache.c                  |  2 +-
 gtk/gtkcssstyleproperty.c                   |  2 +-
 gtk/gtkeditable.c                           |  2 +-
 gtk/gtkenums.h                              |  6 +++---
 gtk/gtkfilechooser.c                        |  2 +-
 gtk/gtkfilesystemmodel.c                    |  6 +++---
 gtk/gtkfontchooser.c                        |  2 +-
 gtk/gtkfontchooserwidget.c                  |  2 +-
 gtk/gtkicontheme.c                          |  6 +++---
 gtk/gtkimcontext.c                          |  2 +-
 gtk/gtkimcontextsimpleseqs.h                |  4 ++--
 gtk/gtklistbox.c                            |  2 +-
 gtk/gtkmain.c                               |  2 +-
 gtk/gtkmaplistmodel.c                       |  2 +-
 gtk/gtknativedialog.c                       |  2 +-
 gtk/gtkplacessidebar.c                      |  2 +-
 gtk/gtkprintunixdialog.c                    |  2 +-
 gtk/gtkquartz.c                             |  2 +-
 gtk/gtkscrolledwindow.c                     | 16 ++++++++--------
 gtk/gtkslicelistmodel.c                     |  2 +-
 gtk/gtkstack.c                              |  2 +-
 gtk/gtkstyleproperty.c                      |  2 +-
 gtk/gtktext.c                               |  4 ++--
 gtk/gtktextview.c                           |  4 ++--
 gtk/gtktrashmonitor.c                       |  2 +-
 gtk/gtktreeview.c                           |  8 ++++----
 gtk/gtktreeview.h                           |  2 +-
 gtk/gtktreeviewcolumn.c                     |  4 ++--
 gtk/gtktypes.h                              |  2 +-
 gtk/gtkwidget.c                             |  2 +-
 gtk/gtkwindow.c                             |  2 +-
 gtk/paper_names.c                           |  2 +-
 modules/printbackends/gtkprintbackendcups.c |  2 +-
 tests/gtkgears.c                            |  2 +-
 tests/testgtk.c                             |  2 +-
 tests/testwidgetfocus.c                     |  2 +-
 testsuite/gtk/defaultvalue.c                |  2 +-
 testsuite/gtk/grid-layout.c                 |  2 +-
 testsuite/gtk/main.c                        |  2 +-
 testsuite/gtk/objects-finalize.c            |  2 +-
 testsuite/gtk/templates.c                   |  2 +-
 81 files changed, 112 insertions(+), 112 deletions(-)
---
diff --git a/demos/gtk-demo/gtkgears.c b/demos/gtk-demo/gtkgears.c
index 32a24dafb4..7cd24a3899 100644
--- a/demos/gtk-demo/gtkgears.c
+++ b/demos/gtk-demo/gtkgears.c
@@ -197,7 +197,7 @@ gtk_gears_class_init (GtkGearsClass *klass)
  * @param v the vertex to fill
  * @param x the x coordinate
  * @param y the y coordinate
- * @param z the z coortinate
+ * @param z the z coordinate
  * @param n pointer to the normal table
  *
  * @return the operation error code
diff --git a/demos/gtk-demo/listbox.ui b/demos/gtk-demo/listbox.ui
index a5ebac17d6..6b63609362 100644
--- a/demos/gtk-demo/listbox.ui
+++ b/demos/gtk-demo/listbox.ui
@@ -150,7 +150,7 @@
                   </object>
                 </child>
                 <child>
-                  <object class="GtkButton" id="favorite-buttton">
+                  <object class="GtkButton" id="favorite-button">
                     <property name="label" translatable="yes">Favorite</property>
                     <property name="receives-default">1</property>
                     <property name="has-frame">0</property>
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 653e7a2f4a..9d802b8c1f 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -61,7 +61,7 @@ activate_about (GSimpleAction *action,
                           gtk_get_major_version (),
                           gtk_get_minor_version (),
                           gtk_get_micro_version ());
-  g_string_append_printf (s, "\nA link can apppear here: <http://www.gtk.org>");
+  g_string_append_printf (s, "\nA link can appear here: <http://www.gtk.org>");
 
   version = g_strdup_printf ("%s\nRunning against GTK %d.%d.%d",
                              PACKAGE_VERSION,
diff --git a/demos/gtk-demo/paintable_mediastream.c b/demos/gtk-demo/paintable_mediastream.c
index 20ae54bb6c..f9c4c42ffe 100644
--- a/demos/gtk-demo/paintable_mediastream.c
+++ b/demos/gtk-demo/paintable_mediastream.c
@@ -218,7 +218,7 @@ gtk_nuclear_media_stream_seek (GtkMediaStream *stream,
   gtk_media_stream_seek_success (stream);
 
   /* We also have to update our timestamp and tell the
-   * paintable interface abbout the seek
+   * paintable interface about the seek
    */
   gtk_media_stream_update (stream, nuclear->progress);
   gdk_paintable_invalidate_contents (GDK_PAINTABLE (nuclear));
@@ -263,7 +263,7 @@ gtk_nuclear_media_stream_init (GtkNuclearMediaStream *nuclear)
   /* This time, we don't have to add a timer here, because media
    * streams start paused.
    *
-   * However, media streams need to tell GTK once they are intialized,
+   * However, media streams need to tell GTK once they are initialized,
    * so we do that here.
    */
   gtk_media_stream_prepared (GTK_MEDIA_STREAM (nuclear),
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 21ce18c572..bcfe73ceab 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -271,7 +271,7 @@ activate_about (GSimpleAction *action,
                           gtk_get_major_version (),
                           gtk_get_minor_version (),
                           gtk_get_micro_version ());
-  g_string_append_printf (s, "\nA link can apppear here: <http://www.gtk.org>");
+  g_string_append_printf (s, "\nA link can appear here: <http://www.gtk.org>");
 
   version = g_strdup_printf ("%s\nRunning against GTK %d.%d.%d",
                              PACKAGE_VERSION,
diff --git a/docs/reference/README.md b/docs/reference/README.md
index bd67413fa2..94ea389697 100644
--- a/docs/reference/README.md
+++ b/docs/reference/README.md
@@ -198,7 +198,7 @@ Checks whether the widget is set to be visible or not.
 
 ### Actions
 
- - Actions are new in GTK 4, and gtk-doc had to learn a a new syntax
+ - Actions are new in GTK 4, and gtk-doc had to learn a new syntax
    to document them:
 
 ```
diff --git a/docs/text_widget_internals.txt b/docs/text_widget_internals.txt
index 73bc43c1ce..4edce9edd7 100644
--- a/docs/text_widget_internals.txt
+++ b/docs/text_widget_internals.txt
@@ -120,7 +120,7 @@ The segment class also contains two data fields:
    has right gravity, because as you type new text is inserted, 
    and the cursor ends up on the right.
 
-The segment itself contains contains a header, plus some
+The segment itself contains a header, plus some
 variable-length data that depends on the type of the segment. 
 The header contains the length of the segment in characters and in
 bytes. Some segments have a length of zero. Segments with nonzero
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 8918ee50a3..11823ec919 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -641,7 +641,7 @@ gdk_device_get_surface_at_position (GdkDevice *device,
 /**
  * gdk_device_get_history: (skip)
  * @device: a #GdkDevice
- * @surface: the surface with respect to which which the event coordinates will be reported
+ * @surface: the surface with respect to which the event coordinates will be reported
  * @start: starting timestamp for range of events to return
  * @stop: ending timestamp for the range of events to return
  * @events: (array length=n_events) (out) (transfer full) (optional):
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 2babfacf65..4ba000719d 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -175,7 +175,7 @@ gdk_display_class_init (GdkDisplayClass *class)
   /**
    * GdkDisplay:composited:
    *
-   * %TRUE if the display properly composits the alpha channel.
+   * %TRUE if the display properly composites the alpha channel.
    * See gdk_display_is_composited() for details.
    */
   props[PROP_COMPOSITED] =
diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c
index 8a359b77c6..94ced0387e 100644
--- a/gdk/gdkdisplaymanager.c
+++ b/gdk/gdkdisplaymanager.c
@@ -219,7 +219,7 @@ static const gchar *allowed_backends;
  *
  * Sets a list of backends that GDK should try to use.
  *
- * This can be be useful if your application does not
+ * This can be useful if your application does not
  * work with certain GDK backends.
  *
  * By default, GDK tries all included backends.
diff --git a/gdk/gdkpaintable.c b/gdk/gdkpaintable.c
index cedda107e3..fc91762784 100644
--- a/gdk/gdkpaintable.c
+++ b/gdk/gdkpaintable.c
@@ -465,7 +465,7 @@ gdk_paintable_compute_concrete_size (GdkPaintable *paintable,
   image_aspect = gdk_paintable_get_intrinsic_aspect_ratio (paintable);
 
   /* If the specified size has neither a definite width nor height,
-   * and has no additional contraints, the dimensions of the concrete
+   * and has no additional constraints, the dimensions of the concrete
    * object size are calculated as follows:
    */
   if (specified_width == 0.0 && specified_height == 0.0)
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index a154319cde..f0ef1eeb8e 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -600,7 +600,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
                               gdk_surface_event_marshallerv);
 
   /**
-   * GdkSurface::enter-montor:
+   * GdkSurface::enter-monitor:
    * @surface: the #GdkSurface
    * @monitor: the monitor
    *
@@ -619,7 +619,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
                   GDK_TYPE_MONITOR);
 
   /**
-   * GdkSurface::leave-montor:
+   * GdkSurface::leave-monitor:
    * @surface: the #GdkSurface
    * @monitor: the monitor
    *
@@ -2570,7 +2570,7 @@ gdk_surface_get_frame_clock (GdkSurface *surface)
  * gdk_surface_get_scale_factor:
  * @surface: surface to get scale factor for
  *
- * Returns the internal scale factor that maps from surface coordiantes
+ * Returns the internal scale factor that maps from surface coordinates
  * to the actual device pixels. On traditional systems this is 1, but
  * on very high density outputs this can be a higher value (often 2).
  *
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c
index 49b9b8a6ca..a69f13fa62 100644
--- a/gdk/gdktoplevel.c
+++ b/gdk/gdktoplevel.c
@@ -475,7 +475,7 @@ gdk_toplevel_supports_edge_constraints (GdkToplevel *toplevel)
  *
  * If granted, the rerouting remains active until the default shortcuts
  * processing is restored with gdk_toplevel_restore_system_shortcuts(),
- * or the request is revoked by the desktop enviroment, windowing system
+ * or the request is revoked by the desktop environment, windowing system
  * or the user.
  *
  * A typical use case for this API is remote desktop or virtual machine
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index be249fcc25..34a9f1dae0 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -101,7 +101,7 @@ gdk_vulkan_strerror (VkResult result)
    * encountered a newly added Vulkan error message.
    * You want to add it to this enum now.
    *
-   * Becuse the Vulkan people don't make adding this too easy, here's
+   * Because the Vulkan people don't make adding this too easy, here's
    * the process to manage it:
    * 1. go to
    *    https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h
@@ -203,7 +203,7 @@ gdk_vulkan_strerror (VkResult result)
 #endif
 #if VK_HEADER_VERSION >= 105
     case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:
-      return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT 
failed as it did not have exlusive full-screen access.";
+      return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT 
failed as it did not have exclusive full-screen access.";
 #endif
 #if VK_HEADER_VERSION >= 131
     case VK_ERROR_UNKNOWN:
diff --git a/gdk/quartz/gdkeventloop-quartz.c b/gdk/quartz/gdkeventloop-quartz.c
index a9875ed44f..6927188a3b 100644
--- a/gdk/quartz/gdkeventloop-quartz.c
+++ b/gdk/quartz/gdkeventloop-quartz.c
@@ -59,7 +59,7 @@ static int current_loop_level = 0;
 static int acquired_loop_level = -1;
 
 /* Between run_loop_before_waiting() and run_loop_after_waiting();
- * whether we we need to call select_thread_collect_poll()
+ * whether we need to call select_thread_collect_poll()
  */
 static gboolean run_loop_polling_async = FALSE;
 
@@ -95,7 +95,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 shouldn’t happen inside a poll function.
  */
 static GQueue *current_events;
@@ -132,7 +132,7 @@ static gint 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,
@@ -235,7 +235,7 @@ select_thread_func (void *arg)
        case WAITING:
          /* Waiting for a set of file descriptors to be submitted by the main thread
           *
-          *  => POLLING_QUEUED: main thread thread submits a set of file descriptors
+          *  => POLLING_QUEUED: main thread submits a set of file descriptors
           */ 
          SELECT_THREAD_WAIT ();
          break;
diff --git a/gdk/wayland/cursor/os-compatibility.c b/gdk/wayland/cursor/os-compatibility.c
index bd28dbb205..c59733964f 100644
--- a/gdk/wayland/cursor/os-compatibility.c
+++ b/gdk/wayland/cursor/os-compatibility.c
@@ -100,7 +100,7 @@ create_tmpfile_cloexec(char *tmpname)
  *
  * If the C library implements posix_fallocate(), it is used to
  * guarantee that disk space is available for the file at the
- * given size. If disk space is insufficent, errno is set to ENOSPC.
+ * given size. If disk space is insufficient, errno is set to ENOSPC.
  * If posix_fallocate() is not supported, program may receive
  * SIGBUS on accessing mmap()'ed file contents instead.
  *
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 1b65c46bde..cd8fe1e3cc 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -644,7 +644,7 @@ _gdk_wayland_display_open (const gchar *display_name)
   _gdk_wayland_display_async_roundtrip (display_wayland);
 
   /* Wait for initializing to complete. This means waiting for all
-   * asynchrounous roundtrips that were triggered during initial roundtrip. */
+   * asynchronous roundtrips that were triggered during initial roundtrip. */
   while (display_wayland->async_roundtrips != NULL)
     {
       if (wl_display_dispatch (display_wayland->wl_display) < 0)
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 4e66f81c7b..60bfa9147d 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -1308,7 +1308,7 @@ gdk_wayland_surface_configure_toplevel (GdkSurface *surface)
         geometry_mask &= ~GDK_HINT_RESIZE_INC;
       if (!saved_size)
         {
-          /* Do not reapply contrains if we are restoring original size */
+          /* Do not reapply constrains if we are restoring original size */
           gdk_surface_constrain_size (&impl->geometry_hints,
                                      geometry_mask,
                                      width + impl->margin_left + impl->margin_right,
diff --git a/gdk/wayland/gdkvulkancontext-wayland.c b/gdk/wayland/gdkvulkancontext-wayland.c
index 59b85af12b..fa2f89c8d8 100644
--- a/gdk/wayland/gdkvulkancontext-wayland.c
+++ b/gdk/wayland/gdkvulkancontext-wayland.c
@@ -42,7 +42,7 @@ gdk_wayland_vulkan_context_create_surface (GdkVulkanContext *context,
 
   /* This is necessary so that Vulkan sees the Surface.
    * Usually, vkCreateXlibSurfaceKHR() will not cause a problem to happen as
-   * it just creates resources, but futher calls with the resulting surface
+   * it just creates resources, but further calls with the resulting surface
    * do cause issues.
    */
   gdk_display_sync (display);
diff --git a/gdk/win32/gdkclipdrop-win32.c b/gdk/win32/gdkclipdrop-win32.c
index d274f5a6b1..74eb2500a8 100644
--- a/gdk/win32/gdkclipdrop-win32.c
+++ b/gdk/win32/gdkclipdrop-win32.c
@@ -105,7 +105,7 @@ On GDK-Win32:
 
 Any operations that require OpenClipboard()/CloseClipboard() combo (i.e.
 almost everything, except for WM_RENDERFORMAT handling) is offloaded into
-separate thread, which tries to to complete any operations in the queue.
+separate thread, which tries to complete any operations in the queue.
 Each operation routine usually starts with a timeout check (all operations
 time out after 30 seconds), then a check for clipboard status (to abort
 any operations that became obsolete due to clipboard status being changed - 
diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c
index b07f19d24e..ed2fb51c9c 100644
--- a/gdk/win32/gdkdrag-win32.c
+++ b/gdk/win32/gdkdrag-win32.c
@@ -84,7 +84,7 @@
  *   GDK will also offer "PNG" and CF_DIB W32 formats.
  * * If GTK+ application provides text/plain;charset=utf8, GDK will also offer
  *   CF_UNICODETEXT (UTF-16-encoded) and CF_TEXT (encoded with thread-
- *   and locale-depenant codepage), and will do the conversion when such
+ *   and locale-dependent codepage), and will do the conversion when such
  *   data is requested.
  * * If GTK+ application accepts image/png, image/gif or image/jpeg,
  *   GDK will claim to also accept "PNG", "GIF" or "JFIF" respectively,
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index 2b76ef484c..d26b64ebd2 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -2321,7 +2321,7 @@ stash_window (GdkSurface          *window,
     return;
 
   /* MSDN is very vague, but in practice rcNormalPosition is the same as GetWindowRect(),
-   * only with adjustments for toolbars (which creates rather weird coodinate space issues).
+   * only with adjustments for toolbars (which creates rather weird coordinate space issues).
    * We need to get monitor info and apply workarea vs monitorarea diff to turn
    * these into screen coordinates proper.
    */
diff --git a/gdk/win32/gdkvulkancontext-win32.c b/gdk/win32/gdkvulkancontext-win32.c
index 9588b5126b..607658dde9 100644
--- a/gdk/win32/gdkvulkancontext-win32.c
+++ b/gdk/win32/gdkvulkancontext-win32.c
@@ -52,7 +52,7 @@ gdk_win32_vulkan_context_create_surface (GdkVulkanContext *context,
 
   /* This is necessary so that Vulkan sees the Window.
    * Usually, vkCreateWin32SurfaceKHR() will not cause a problem to happen as
-   * it just creates resources, but futher calls with the resulting surface
+   * it just creates resources, but further calls with the resulting surface
    * do cause issues.
    */
   gdk_display_sync (display);
diff --git a/gdk/x11/gdkclipboard-x11.c b/gdk/x11/gdkclipboard-x11.c
index aae2d1216a..bbfdfc6b4b 100644
--- a/gdk/x11/gdkclipboard-x11.c
+++ b/gdk/x11/gdkclipboard-x11.c
@@ -585,7 +585,7 @@ gdk_x11_clipboard_store_async (GdkClipboard        *clipboard,
   gsize n_atoms;
   int error;
 
-  /* clipboard managers don't work on anythig but the clipbpoard selection */
+  /* clipboard managers don't work on anything but the clipbpoard selection */
   if (!g_str_equal (cb->selection, "CLIPBOARD"))
     {
       GDK_DISPLAY_NOTE (display, CLIPBOARD, g_printerr ("%s: can only store on CLIPBOARD\n", cb->selection));
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index 04cacfd9a2..912426b3f7 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -230,7 +230,7 @@ gdk_x11_device_xi2_get_state (GdkDevice       *device,
                 {
                   gint root_x, root_y;
 
-                  /* FIXME: Maybe root coords chaching should happen here */
+                  /* FIXME: Maybe root coords caching should happen here */
                   gdk_surface_get_origin (surface, &root_x, &root_y);
                   _gdk_device_translate_screen_coord (device, surface,
                                                       root_x, root_y,
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index f172f94553..700ffb2d28 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -1987,7 +1987,7 @@ gdk_x11_lookup_xdisplay (Display *xdisplay)
 /**
  * _gdk_x11_display_screen_for_xrootwin:
  * @display: a #GdkDisplay
- * @xrootwin: window ID for one of of the screen’s of the display.
+ * @xrootwin: window ID for one of the screen’s of the display.
  * 
  * Given the root window ID of one of the screen’s of a #GdkDisplay,
  * finds the screen.
diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c
index a322ff27c0..11ee46a4d2 100644
--- a/gdk/x11/gdkkeys-x11.c
+++ b/gdk/x11/gdkkeys-x11.c
@@ -324,7 +324,7 @@ update_keymaps (GdkX11Keymap *keymap_x11)
       /* GDK_KEY_ISO_Left_Tab, as usually configured through XKB, really messes
        * up the whole idea of "consumed modifiers" because shift is consumed.
        * However, <shift>Tab is not usually GDK_KEY_ISO_Left_Tab without XKB,
-       * we we fudge the map here.
+       * we fudge the map here.
        */
       keycode = keymap_x11->min_keycode;
       while (keycode <= keymap_x11->max_keycode)
diff --git a/gdk/x11/gdkscreen-x11.h b/gdk/x11/gdkscreen-x11.h
index 348a3ef323..61a4ef1947 100644
--- a/gdk/x11/gdkscreen-x11.h
+++ b/gdk/x11/gdkscreen-x11.h
@@ -67,7 +67,7 @@ struct _GdkX11Screen
    * fetch of window manager name
    */
   guint need_refetch_wm_name : 1;
-  guint xft_init : 1; /* Whether we've intialized these values yet */
+  guint xft_init : 1; /* Whether we've initialized these values yet */
   guint xft_antialias : 1;
   guint xft_hinting : 1;
 
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 30eb411d62..41d9d4d91d 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -2257,7 +2257,7 @@ utf8_is_latin1 (const gchar *str)
 }
 
 /* Set the property to @utf8_str as STRING if the @utf8_str is fully
- * convertable to STRING, otherwise, set it as compound text
+ * convertible to STRING, otherwise, set it as compound text
  */
 static void
 set_text_property (GdkDisplay  *display,
@@ -3155,7 +3155,7 @@ gdk_x11_surface_apply_fullscreen_mode (GdkSurface *surface)
          /* FIXME: This is not part of the EWMH spec!
           *
           * There is no documented mechanism to remove the property
-          * _NET_WM_FULLSCREEN_MONITORS once set, so we use use a set of
+          * _NET_WM_FULLSCREEN_MONITORS once set, so we use a set of
           * invalid, largest possible value.
           *
           * When given values larger than actual possible monitor values, most
diff --git a/gdk/x11/gdkvulkancontext-x11.c b/gdk/x11/gdkvulkancontext-x11.c
index c1a6a225d0..002473e41f 100644
--- a/gdk/x11/gdkvulkancontext-x11.c
+++ b/gdk/x11/gdkvulkancontext-x11.c
@@ -41,7 +41,7 @@ gdk_x11_vulkan_context_create_surface (GdkVulkanContext *context,
 
   /* This is necessary so that Vulkan sees the Window.
    * Usually, vkCreateXlibSurfaceKHR() will not cause a problem to happen as
-   * it just creates resources, but futher calls with the resulting surface
+   * it just creates resources, but further calls with the resulting surface
    * do cause issues.
    */
   gdk_display_sync (display);
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 5fa0dbc46a..c28ff939d4 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -456,7 +456,7 @@ gsk_border_node_draw (GskRenderNode *node,
        * |                         |
        * |                         |
        * +-------------------------+
-       * That line is equidistant from all sides. It's either horiontal
+       * That line is equidistant from all sides. It's either horizontal
        * or vertical, depending on if the rect is wider or taller.
        * We use the 4 sides spanned up by connecting the line to the corner
        * points to color the regions of the rectangle differently.
@@ -908,7 +908,7 @@ draw_shadow_corner (cairo_t               *cr,
    *
    * The blur radius (which also defines the clip_radius)
    *
-   * The the horizontal and vertical corner radius
+   * The horizontal and vertical corner radius
    *
    * We apply the first position and orientation when drawing the
    * mask, so we cache rendered masks based on the blur radius and the
diff --git a/gtk/compose-parse.py b/gtk/compose-parse.py
index 9a6513a70a..767f2b421e 100755
--- a/gtk/compose-parse.py
+++ b/gtk/compose-parse.py
@@ -85,8 +85,8 @@ headerfile_start = """/* GTK - The GIMP Tool Kit
  * XFree86 4.0 using a set of Perl scripts. Contact Owen Taylor <otaylor redhat com>
  * to obtain the relevant perl scripts.
  *
- * The following compose letter letter sequences confliced
- *   Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croation, Vietnamese, Lappish), over
+ * The following compose letter letter sequences conflicted
+ *   Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croatian, Vietnamese, Lappish), over
  *                                ETH (Icelandic, Faroese, old English, IPA)  [ D- -D d- -d ]
  *   Amacron/amacron and ordfeminine; resolved to ordfeminine                 [ _A A_ a_ _a ]
  *   Amacron/amacron and Atilde/atilde; resolved to atilde                    [ -A A- a- -a ]
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index e5693c0599..454f12306b 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -36,7 +36,7 @@
  * derive from #GtkAccessible and implement the suitable interfaces
  * from ATK, such as #AtkText or #AtkSelection. To establish
  * the connection between the widget class and its corresponding
- * acccessible implementation, override the get_accessible vfunc
+ * accessible implementation, override the get_accessible vfunc
  * in #GtkWidgetClass.
  */
 
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index 803180c65f..c728ba6116 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -86,7 +86,7 @@
  * been loaded yet, GTK+ tries to find the get_type() function from the
  * class name by applying heuristics. This works in most cases, but if
  * necessary, it is possible to specify the name of the get_type() function
- * explictly with the "type-func" attribute. As a special case, GtkBuilder
+ * explicitly with the "type-func" attribute. As a special case, GtkBuilder
  * allows to use an object that has been constructed by a #GtkUIManager in
  * another part of the UI definition by specifying the id of the #GtkUIManager
  * in the “constructor” attribute and the name of the object in the “id”
diff --git a/gtk/gtkcellarea.h b/gtk/gtkcellarea.h
index ee199fb6cf..4a3d98e8dc 100644
--- a/gtk/gtkcellarea.h
+++ b/gtk/gtkcellarea.h
@@ -155,7 +155,7 @@ struct _GtkCellArea
  *     cell to cell inside the #GtkCellArea. The #GtkCellArea should move
  *     focus from cell to cell inside the area and return %FALSE if focus
  *     logically leaves the area with the following exceptions: When the
- *     area contains no activatable cells, the entire area recieves focus.
+ *     area contains no activatable cells, the entire area receives focus.
  *     Focus should not be given to cells that are actually “focus siblings”
  *     of other sibling cells (see gtk_cell_area_get_focus_from_sibling()).
  *     Focus is set by calling gtk_cell_area_set_focus_cell().
@@ -509,7 +509,7 @@ void                  gtk_cell_area_request_renderer               (GtkCellArea
  * object is passed to the user function in gtk_cell_layout_set_cell_data_func.
  *
  * This private api takes gpointer & GFunc arguments to circumvent circular header file
- * dependancies.
+ * dependencies.
  */
 void                 _gtk_cell_area_set_cell_data_func_with_proxy  (GtkCellArea           *area,
                                                                    GtkCellRenderer       *cell,
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 05fcb5f873..544880a45b 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -1644,7 +1644,7 @@ gtk_cell_renderer_get_preferred_size (GtkCellRenderer *cell,
  * @flags: render flags
  * @cell_area: cell area which would be passed to gtk_cell_renderer_render()
  * @aligned_area: (out): the return location for the space inside @cell_area
- *                that would acually be used to render.
+ *                that would actually be used to render.
  *
  * Gets the aligned area used by @cell inside @cell_area. Used for finding
  * the appropriate edit and focus rectangle.
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c
index 3ac622ccc4..3c429155a0 100644
--- a/gtk/gtkcellrendererspinner.c
+++ b/gtk/gtkcellrendererspinner.c
@@ -374,7 +374,7 @@ gtk_paint_spinner (GtkStyleContext *context,
     {
       gint inset = 0.7 * radius;
 
-      /* transparency is a function of time and intial value */
+      /* transparency is a function of time and initial value */
       gdouble t = (gdouble) ((i + num_steps - real_step)
                              % num_steps) / num_steps;
 
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 3a57b66d5a..62e0dd67f9 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -1920,7 +1920,7 @@ gtk_cell_renderer_text_get_preferred_width (GtkCellRenderer *cell,
   pango_layout_get_extents (layout, NULL, &rect);
   text_width = rect.width;
 
-  /* Fetch the average size of a charachter */
+  /* Fetch the average size of a character */
   context = pango_layout_get_context (layout);
   metrics = pango_context_get_metrics (context,
                                        pango_context_get_font_description (context),
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 0704a8fdfa..dc762d48f1 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -322,7 +322,7 @@ gtk_check_button_get_indicator_node (GtkCheckButton *check_button)
  * @draw_indicator: Whether or not to draw the indicator part of the button
  *
  * Sets whether the indicator part of the button is drawn. This is important for
- * cases where the check button should have the functinality of a check button,
+ * cases where the check button should have the functionality of a check button,
  * but the visuals of a regular button, like in a #GtkStackSwitcher.
  */
 void
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c
index f4cb6c59ee..fe3bae9335 100644
--- a/gtk/gtkcssimage.c
+++ b/gtk/gtkcssimage.c
@@ -388,7 +388,7 @@ _gtk_css_image_get_concrete_size (GtkCssImage *image,
   image_aspect = _gtk_css_image_get_aspect_ratio (image);
 
   /* If the specified size has neither a definite width nor height,
-   * and has no additional contraints, the dimensions of the concrete
+   * and has no additional constraints, the dimensions of the concrete
    * object size are calculated as follows:
    */
   if (specified_width == 0.0 && specified_height == 0.0)
diff --git a/gtk/gtkcssnodestylecache.c b/gtk/gtkcssnodestylecache.c
index c5d7562119..46b3974341 100644
--- a/gtk/gtkcssnodestylecache.c
+++ b/gtk/gtkcssnodestylecache.c
@@ -97,7 +97,7 @@ may_be_stored_in_cache (GtkCssStyle *style)
   change = gtk_css_static_style_get_change (GTK_CSS_STATIC_STYLE (style));
 
   /* The cache is shared between all children of the parent, so if a
-   * style depends on a sibling it is not independant of the child.
+   * style depends on a sibling it is not independent of the child.
    */
   if (change & GTK_CSS_CHANGE_ANY_SIBLING)
     return FALSE;
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c
index 473ba206f7..0fe1bab134 100644
--- a/gtk/gtkcssstyleproperty.c
+++ b/gtk/gtkcssstyleproperty.c
@@ -343,7 +343,7 @@ _gtk_css_style_property_get_id (GtkCssStyleProperty *property)
  * @property: the property
  *
  * Queries the initial value of the given @property. See the
- * [CSS Documentation](http://www.w3.org/TR/css3-cascade/#intial)
+ * [CSS Documentation](http://www.w3.org/TR/css3-cascade/#initial)
  * for an explanation of this concept.
  *
  * Returns: (transfer none): the initial value. The value will never change.
diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c
index ff36a044cf..ea6d48b0c2 100644
--- a/gtk/gtkeditable.c
+++ b/gtk/gtkeditable.c
@@ -31,7 +31,7 @@
  * text editing widgets, such as #GtkEntry and #GtkSpinButton. It contains functions
  * for generically manipulating an editable widget, a large number of action
  * signals used for key bindings, and several signals that an application can
- * connect to to modify the behavior of a widget.
+ * connect to modify the behavior of a widget.
  *
  * As an example of the latter usage, by connecting
  * the following handler to #GtkEditable::insert-text, an application
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index dc56bed97d..b761944d35 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -107,10 +107,10 @@ typedef enum
  *
  * Whenever a container has some form of natural row it may align
  * children in that row along a common typographical baseline. If
- * the amount of verical space in the row is taller than the total
+ * the amount of vertical space in the row is taller than the total
  * requested height of the baseline-aligned children then it can use a
  * #GtkBaselinePosition to select where to put the baseline inside the
- * extra availible space.
+ * extra available space.
  */
 typedef enum
 {
@@ -126,7 +126,7 @@ typedef enum
  *   left/right of cursor if we’re in the middle of a word.
  * @GTK_DELETE_WORDS: Delete words.
  * @GTK_DELETE_DISPLAY_LINES: Delete display-lines. Display-lines
- *   refers to the visible lines, with respect to to the current line
+ *   refers to the visible lines, with respect to the current line
  *   breaks. As opposed to paragraphs, which are defined by line
  *   breaks in the input.
  * @GTK_DELETE_DISPLAY_LINE_ENDS: Delete only the portion of the
diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c
index 58709d9e67..985a18a1ca 100644
--- a/gtk/gtkfilechooser.c
+++ b/gtk/gtkfilechooser.c
@@ -839,7 +839,7 @@ gtk_file_chooser_set_choice (GtkFileChooser  *chooser,
  *
  * Gets the currently selected option in the 'choice' with the given ID.
  *
- * Returns: the ID of the currenly selected option
+ * Returns: the ID of the currently selected option
  */
 const char *
 gtk_file_chooser_get_choice (GtkFileChooser  *chooser,
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 0a9e348b7e..af9fce15d0 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -112,7 +112,7 @@
  * The model implements the GtkTreeSortable interface.  To avoid re-sorting
  * every time a node gets added (which would lead to O(n^2) performance during
  * the initial population of the model), the model can freeze itself (with
- * freeze_updates()) during the intial population process.  When the model is
+ * freeze_updates()) during the initial population process.  When the model is
  * frozen, sorting will not happen.  The model will sort itself when the freeze
  * count goes back to zero, via corresponding calls to thaw_updates().
  */
@@ -220,7 +220,7 @@ static void remove_file (GtkFileSystemModel *model,
  * @user_data: the model
  * @user_data2: GUINT_TO_POINTER of array index of current entry
  *
- * All other fields are unused. Note that the array index does not corrspond
+ * All other fields are unused. Note that the array index does not correspond
  * 1:1 with the path index as entries might not be visible.
  */
 #define ITER_INDEX(iter) GPOINTER_TO_UINT((iter)->user_data2)
@@ -2129,7 +2129,7 @@ _gtk_file_system_model_clear_cache (GtkFileSystemModel *model,
  * @file: the file to add
  * @attributes: attributes to query before adding the file
  *
- * This is a conenience function that calls g_file_query_info_async() on 
+ * This is a convenience function that calls g_file_query_info_async() on 
  * the given file, and when successful, adds it to the model.
  * Upon failure, the @file is discarded.
  **/
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 35fddc0f56..497c3247ca 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -36,7 +36,7 @@
  * displaying the list of fonts. In GTK+, the main objects
  * that implement this interface are #GtkFontChooserWidget,
  * #GtkFontChooserDialog and #GtkFontButton. The GtkFontChooser interface
- * has been introducted in GTK+ 3.2.
+ * has been introduced in GTK+ 3.2.
  */
 
 enum
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index c3aea05c8d..93aa5b4921 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -879,7 +879,7 @@ gtk_font_chooser_widget_init (GtkFontChooserWidget *fontchooser)
   gtk_adjustment_set_upper (gtk_range_get_adjustment (GTK_RANGE (fontchooser->size_slider)),
                            (gdouble)(G_MAXINT / PANGO_SCALE));
 
-  /* Setup treeview/model auxilary functions */
+  /* Setup treeview/model auxiliary functions */
   gtk_tree_model_filter_set_visible_func (GTK_TREE_MODEL_FILTER (fontchooser->filter_model),
                                           visible_func, (gpointer)fontchooser, NULL);
 
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 0cf6c15c3a..c29d2b7a8a 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -555,11 +555,11 @@ gtk_icon_theme_ref_release (GtkIconThemeRef *ref)
 {
   GtkIconTheme *theme;
 
-  /* Get a pointer to the theme, becuse when we unlock it could become NULLed by dispose, this pointer still 
owns a ref */
+  /* Get a pointer to the theme, because when we unlock it could become NULLed by dispose, this pointer 
still owns a ref */
   theme = ref->theme;
   g_mutex_unlock (&ref->lock);
 
-  /* Then unref outside the lock, because otherwis if this is the last ref the dispose handler would 
deadlock trying to NULL ref->theme */
+  /* Then unref outside the lock, because otherwise if this is the last ref the dispose handler would 
deadlock trying to NULL ref->theme */
   if (theme)
     g_object_unref (theme);
 
@@ -3585,7 +3585,7 @@ gtk_icon_paintable_class_init (GtkIconPaintableClass *klass)
   g_object_class_install_property (gobject_class, PROP_ICON_NAME,
                                    g_param_spec_string ("icon-name",
                                                         P_("Icon name"),
-                                                        P_("The icon name choosen during lookup"),
+                                                        P_("The icon name chosen during lookup"),
                                                         NULL,
                                                         G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | 
G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
   /**
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index 4604a7651f..986608e718 100644
--- a/gtk/gtkimcontext.c
+++ b/gtk/gtkimcontext.c
@@ -724,7 +724,7 @@ gtk_im_context_get_surrounding (GtkIMContext *context,
  *    a negative value means start before the cursor.
  * @n_chars: number of characters to delete.
  * 
- * Asks the widget that the input context is attached to to delete
+ * Asks the widget that the input context is attached to delete
  * characters around the cursor position by emitting the
  * GtkIMContext::delete_surrounding signal. Note that @offset and @n_chars
  * are in characters not in bytes which differs from the usage other
diff --git a/gtk/gtkimcontextsimpleseqs.h b/gtk/gtkimcontextsimpleseqs.h
index 9a88b0feca..4ba242c6bf 100644
--- a/gtk/gtkimcontextsimpleseqs.h
+++ b/gtk/gtkimcontextsimpleseqs.h
@@ -45,8 +45,8 @@
  * XFree86 4.0 using a set of Perl scripts. Contact Owen Taylor <otaylor redhat com>
  * to obtain the relevant perl scripts.
  *
- * The following compose letter letter sequences confliced
- *   Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croation, Vietnamese, Lappish), over
+ * The following compose letter letter sequences conflicted
+ *   Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croatian, Vietnamese, Lappish), over
  *                                ETH (Icelandic, Faroese, old English, IPA)  [ D- -D d- -d ]
  *   Amacron/amacron and ordfeminine; resolved to ordfeminine                 [ _A A_ a_ _a ]
  *   Amacron/amacron and Atilde/atilde; resolved to atilde                    [ -A A- a- -a ]
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 11e64e95ae..b770e85e4f 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -2388,7 +2388,7 @@ gtk_list_box_compute_expand (GtkWidget *widget,
   *hexpand_p = hexpand;
   *vexpand_p = vexpand;
 
-  /* We don't expand vertically beyound the minimum size */
+  /* We don't expand vertically beyond the minimum size */
   if (*vexpand_p)
     *vexpand_p = FALSE;
 }
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index e54e603bf4..0088a5d8c1 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -941,7 +941,7 @@ gtk_is_initialized (void)
  * GTK sets the default text direction according to the locale
  * during gtk_init(), and you should normally use
  * gtk_widget_get_direction() or gtk_widget_get_default_direction()
- * to obtain the current direcion.
+ * to obtain the current direction.
  *
  * This function is only needed rare cases when the locale is
  * changed after GTK has already been initialized. In this case,
diff --git a/gtk/gtkmaplistmodel.c b/gtk/gtkmaplistmodel.c
index e7e37c8ac0..b77906fcc9 100644
--- a/gtk/gtkmaplistmodel.c
+++ b/gtk/gtkmaplistmodel.c
@@ -622,7 +622,7 @@ gtk_map_list_model_set_model (GtkMapListModel *self,
  * gtk_map_list_model_get_model:
  * @self: a #GtkMapListModel
  *
- * Gets the model that is curently being mapped or %NULL if none.
+ * Gets the model that is currently being mapped or %NULL if none.
  *
  * Returns: (nullable) (transfer none): The model that gets mapped
  **/
diff --git a/gtk/gtknativedialog.c b/gtk/gtknativedialog.c
index 6a4a5f07ac..4a94b233c8 100644
--- a/gtk/gtknativedialog.c
+++ b/gtk/gtknativedialog.c
@@ -234,7 +234,7 @@ gtk_native_dialog_class_init (GtkNativeDialogClass *class)
   /**
    * GtkNativeDialog:visible:
    *
-   * Whether the window is currenlty visible.
+   * Whether the window is currently visible.
    */
   native_props[PROP_VISIBLE] =
     g_param_spec_boolean ("visible",
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 07c2b5c31d..bc01fdfafc 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -4886,7 +4886,7 @@ gtk_places_sidebar_list_shortcuts (GtkPlacesSidebar *sidebar)
  *
  * This function queries the bookmarks added by the user to the places sidebar,
  * and returns one of them.  This function is used by #GtkFileChooser to implement
- * the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the cooresponding bookmark.
+ * the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the corresponding bookmark.
  *
  * Returns: (nullable) (transfer full): The bookmark specified by the index @n, or
  * %NULL if no such index exist.  Note that the indices start at 0, even though
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 6b9730f1a0..faa7a05c3b 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -803,7 +803,7 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
                                           set_cell_sensitivity_func, NULL, NULL);
 
 
-  /* Paper size combo auxilary funcs */
+  /* Paper size combo auxiliary funcs */
   gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (dialog->paper_size_combo),
                                         paper_size_row_is_separator, NULL, NULL);
   gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (dialog->paper_size_combo),
diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c
index dfe3cc1ab7..fe1197cdb8 100644
--- a/gtk/gtkquartz.c
+++ b/gtk/gtkquartz.c
@@ -330,7 +330,7 @@ _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard     *pasteboard,
 #ifdef QUARTZ_RELOCATION
 
 /* Bundle-based functions for various directories. These almost work
- * even when the application isn’t in a bundle, becuase mainBundle
+ * even when the application isn’t in a bundle, because mainBundle
  * paths point to the bin directory in that case. It’s a simple matter
  * to test for that and remove the last element.
  */
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index f1b23d87eb..ba7eb7338b 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -152,28 +152,28 @@
  *   a widget upon size-request reports the width and height that it finds
  *   to be best suited to display its contents, including children.
  *   the width and/or height reported from a widget upon size requisition
- *   may be overidden by the user by specifying a width and/or height
+ *   may be overridden by the user by specifying a width and/or height
  *   other than 0 through gtk_widget_set_size_request().
  *
  * a scrolled window needs (for implementing all three policy types) to
  * request its width and height based on two different rationales.
  * 1)   the user wants the scrolled window to just fit into the space
- *      that it gets allocated for a specifc dimension.
+ *      that it gets allocated for a specific dimension.
  * 1.1) this does not apply if the user specified a concrete value
  *      value for that specific dimension by either specifying usize for the
  *      scrolled window or for its child.
  * 2)   the user wants the scrolled window to take as much space up as
- *      is desired by the child for a specifc dimension (i.e. POLICY_NEVER).
+ *      is desired by the child for a specific dimension (i.e. POLICY_NEVER).
  *
  * also, kinda obvious:
- * 3)   a user would certainly not have choosen a scrolled window as a container
+ * 3)   a user would certainly not have chosen a scrolled window as a container
  *      for the child, if the resulting allocation takes up more space than the
  *      child would have allocated without the scrolled window.
  *
  * conclusions:
  * A) from 1) follows: the scrolled window shouldn’t request more space for a
- *    specifc dimension than is required at minimum.
- * B) from 1.1) follows: the requisition may be overidden by usize of the scrolled
+ *    specific dimension than is required at minimum.
+ * B) from 1.1) follows: the requisition may be overridden by usize of the scrolled
  *    window (done automatically) or by usize of the child (needs to be checked).
  * C) from 2) follows: for POLICY_NEVER, the scrolled window simply reports the
  *    child’s dimension.
@@ -1646,8 +1646,8 @@ gtk_scrolled_window_size_allocate (GtkWidget *widget,
                                                                  priv->vscrollbar);
 
           /* If, after the first iteration, the hscrollbar and the
-           * vscrollbar flip visiblity... or if one of the scrollbars flip
-           * on each itteration indefinitly/infinitely, then we just need both
+           * vscrollbar flip visibility... or if one of the scrollbars flip
+           * on each iteration indefinitely/infinitely, then we just need both
            * at this size.
            */
           if ((count &&
diff --git a/gtk/gtkslicelistmodel.c b/gtk/gtkslicelistmodel.c
index b8ceb0d0c5..d002252fff 100644
--- a/gtk/gtkslicelistmodel.c
+++ b/gtk/gtkslicelistmodel.c
@@ -412,7 +412,7 @@ gtk_slice_list_model_set_model (GtkSliceListModel *self,
  * gtk_slice_list_model_get_model:
  * @self: a #GtkSliceListModel
  *
- * Gets the model that is curently being used or %NULL if none.
+ * Gets the model that is currently being used or %NULL if none.
  *
  * Returns: (nullable) (transfer none): The model in use
  **/
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 20c186d82a..303059643e 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -60,7 +60,7 @@
  * # GtkStack as GtkBuildable
  *
  * To set child-specific properties in a .ui file, create GtkStackPage
- * objects explictly, and set the child widget as a property on it:
+ * objects explicitly, and set the child widget as a property on it:
  * |[
  *   <object class="GtkStack" id="stack">
  *     <child>
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index 7f4785252a..d0c82ec72c 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -117,7 +117,7 @@ _gtk_style_property_init (GtkStyleProperty *property)
  * @parser: the parser to parse from
  *
  * Tries to parse the given @property from the given @parser into
- * @value. The type that @value will be assigned is dependant on
+ * @value. The type that @value will be assigned is dependent on
  * the parser and no assumptions must be made about it. If the
  * parsing fails, %FALSE will be returned and @value will be
  * left uninitialized.
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index cb655e0d48..5e6ee4be75 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -3885,7 +3885,7 @@ gtk_text_delete_from_cursor (GtkText       *self,
         }
       else if (count > 0)
         {
-          /* Move to beginning of current word, or if not on a word, begining of next word */
+          /* Move to beginning of current word, or if not on a word, beginning of next word */
           start_pos = gtk_text_move_forward_word (self, start_pos, FALSE);
           start_pos = gtk_text_move_backward_word (self, start_pos, FALSE);
         }
@@ -4893,7 +4893,7 @@ gtk_text_adjust_scroll (GtkText *self)
       /* And make sure cursors are on screen. Note that the cursor is
        * actually drawn one pixel into the INNER_BORDER space on
        * the right, when the scroll is at the utmost right. This
-       * looks better to to me than confining the cursor inside the
+       * looks better to me than confining the cursor inside the
        * border entirely, though it means that the cursor gets one
        * pixel closer to the edge of the widget on the right than
        * on the left. This might need changing if one changed
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 2d9c72f6e3..d69e1b1546 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1109,7 +1109,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
    *
    * The default bindings for this signal come in two variants,
    * the variant with the Shift modifier extends the selection,
-   * the variant without the Shift modifer does not.
+   * the variant without the Shift modifier does not.
    * There are too many key combinations to list them all here.
    * - Arrow keys move by individual characters/lines
    * - Ctrl-arrow key combinations move by words/paragraphs
@@ -1220,7 +1220,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
    * The default bindings for this signal are
    * Delete for deleting a character, Ctrl-Delete for 
    * deleting a word and Ctrl-Backspace for deleting a word 
-   * backwords.
+   * backwards.
    */
   signals[DELETE_FROM_CURSOR] =
     g_signal_new (I_("delete-from-cursor"),
diff --git a/gtk/gtktrashmonitor.c b/gtk/gtktrashmonitor.c
index fe9d3fcb98..45f5b3f363 100644
--- a/gtk/gtktrashmonitor.c
+++ b/gtk/gtktrashmonitor.c
@@ -169,7 +169,7 @@ recompute_trash_state (GtkTrashMonitor *monitor)
   GFile *file;
 
   /* Rate limit the updates to not flood the gvfsd-trash when too many changes
-   * happended in a short time.
+   * happenned in a short time.
   */
   if (monitor->timeout_id > 0)
     {
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 3359cc29a3..597dc3a3d0 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -7429,7 +7429,7 @@ gtk_tree_view_drag_data_received (GObject      *source,
       gtk_tree_path_get_indices (dest_row)[0] == 0 &&
       gtk_tree_model_iter_n_children (tree_view->model, NULL) != 0)
     {
-      /* special special case drag to "0", scroll to first item */
+      /* special case drag to "0", scroll to first item */
       if (!tree_view->scroll_to_path)
         gtk_tree_view_scroll_to_cell (tree_view, dest_row, NULL, FALSE, 0.0, 0.0);
     }
@@ -11328,7 +11328,7 @@ gtk_tree_view_expand_to_path (GtkTreeView *tree_view,
 }
 
 /* FIXME the bool return values for expand_row and collapse_row are
- * not analagous; they should be TRUE if the row had children and
+ * not analogous; they should be TRUE if the row had children and
  * was not already in the requested state.
  */
 
@@ -12271,7 +12271,7 @@ gtk_tree_view_get_row_y_offset (GtkTreeView   *tree_view,
  * gtk_tree_view_get_background_area:
  * @tree_view: a #GtkTreeView
  * @path: (allow-none): a #GtkTreePath for the row, or %NULL to get only horizontal coordinates
- * @column: (allow-none): a #GtkTreeViewColumn for the column, or %NULL to get only vertical coordiantes
+ * @column: (allow-none): a #GtkTreeViewColumn for the column, or %NULL to get only vertical coordinates
  * @rect: (out): rectangle to fill with cell background rect
  *
  * Fills the bounding rectangle in bin_window coordinates for the cell at the
@@ -14440,7 +14440,7 @@ gtk_tree_view_set_tooltip_cell (GtkTreeView       *tree_view,
        * we can correctly account for the indentation.  This also means
        * that the tooltip is constrained vertically by the "Determine y
        * values" code below; this is not a real problem since cells actually
-       * don't stretch vertically in constrast to columns.
+       * don't stretch vertically in contrast to columns.
        */
       gtk_tree_view_get_cell_area (tree_view, path, column, &tmp);
       gtk_tree_view_column_cell_get_position (column, cell, &start, &width);
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h
index 2604748958..044d17b705 100644
--- a/gtk/gtktreeview.h
+++ b/gtk/gtktreeview.h
@@ -169,7 +169,7 @@ GDK_AVAILABLE_IN_ALL
 void                   gtk_tree_view_set_activate_on_single_click  (GtkTreeView               *tree_view,
                                                                    gboolean                   single);
 
-/* Column funtions */
+/* Column functions */
 GDK_AVAILABLE_IN_ALL
 gint                   gtk_tree_view_append_column                 (GtkTreeView               *tree_view,
                                                                    GtkTreeViewColumn         *column);
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index a206192560..2cd41084b1 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -2710,8 +2710,8 @@ gtk_tree_view_column_get_sort_order      (GtkTreeViewColumn     *tree_column)
 /**
  * gtk_tree_view_column_cell_set_cell_data:
  * @tree_column: A #GtkTreeViewColumn.
- * @tree_model: The #GtkTreeModel to to get the cell renderers attributes from.
- * @iter: The #GtkTreeIter to to get the cell renderer’s attributes from.
+ * @tree_model: The #GtkTreeModel to get the cell renderers attributes from.
+ * @iter: The #GtkTreeIter to get the cell renderer’s attributes from.
  * @is_expander: %TRUE, if the row has children
  * @is_expanded: %TRUE, if the row has visible children
  * 
diff --git a/gtk/gtktypes.h b/gtk/gtktypes.h
index 8edd13fcd1..cc8e3ef7fd 100644
--- a/gtk/gtktypes.h
+++ b/gtk/gtktypes.h
@@ -59,7 +59,7 @@ typedef struct _GtkWindow              GtkWindow;
  *
  * The value used to refer to a guaranteed invalid position in a #GListModel. This
  * value may be returned from some functions, others may accept it as input.
- * Its interpretion may differ for different functions.
+ * Its interpretation may differ for different functions.
  *
  * Refer to each function's documentation for if this value is allowed and what it
  * does.
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 509bfe860c..27bec07c23 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4134,7 +4134,7 @@ gtk_widget_translate_coordinates (GtkWidget  *src_widget,
  *     @target's coordinate system
  *
  * Translates the given @point in @widget's coordinates to coordinates
- * relative to @target’s coodinate system. In order to perform this
+ * relative to @target’s coordinate system. In order to perform this
  * operation, both widgets must share a common root.
  *
  * Returns: %TRUE if the point could be determined, %FALSE on failure.
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 00c6c26910..4e687fa680 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5708,7 +5708,7 @@ gtk_window_constrain_size (GtkWindow   *window,
 }
 
 /* For non-resizable windows, make sure the given width/height fits
- * in the geometry contrains and update the geometry hints to match
+ * in the geometry constrains and update the geometry hints to match
  * the given width/height if not.
  * This is to make sure that non-resizable windows get the default
  * width/height if set, but can still grow if their content requires.
diff --git a/gtk/paper_names.c b/gtk/paper_names.c
index 938704e8ff..038726888e 100644
--- a/gtk/paper_names.c
+++ b/gtk/paper_names.c
@@ -202,7 +202,7 @@ static const PaperInfo standard_names[] = {
 };
 
 /* Some page sizes have multiple PPD names in use.
- * The array above only contails the prefered one,
+ * The array above only contains the preferred one,
  * and this array fills out with the duplicates.
  */
 const struct {
diff --git a/modules/printbackends/gtkprintbackendcups.c b/modules/printbackends/gtkprintbackendcups.c
index 9a30f569b3..58dd95bbbe 100644
--- a/modules/printbackends/gtkprintbackendcups.c
+++ b/modules/printbackends/gtkprintbackendcups.c
@@ -5800,7 +5800,7 @@ cups_printer_get_options (GtkPrinter           *printer,
 
 #ifdef HAVE_COLORD
   option = gtk_printer_option_new ("colord-profile",
-                                   /* TRANSLATORS: this this the ICC color profile to use for this job */
+                                   /* TRANSLATORS: this is the ICC color profile to use for this job */
                                    C_("printer option", "Printer Profile"),
                                    GTK_PRINTER_OPTION_TYPE_INFO);
 
diff --git a/tests/gtkgears.c b/tests/gtkgears.c
index 8a677969c7..96be865b86 100644
--- a/tests/gtkgears.c
+++ b/tests/gtkgears.c
@@ -197,7 +197,7 @@ gtk_gears_class_init (GtkGearsClass *klass)
  * @param v the vertex to fill
  * @param x the x coordinate
  * @param y the y coordinate
- * @param z the z coortinate
+ * @param z the z coordinate
  * @param n pointer to the normal table
  *
  * @return the operation error code
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 3b035388ba..32289d989d 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -4321,7 +4321,7 @@ paned_keyboard_window2 (GtkWidget *widget)
   GtkWidget *button10;
 
   window2 = gtk_window_new ();
-  gtk_window_set_title (GTK_WINDOW (window2), "\"button 10\" is not inside the horisontal pane");
+  gtk_window_set_title (GTK_WINDOW (window2), "\"button 10\" is not inside the horizontal pane");
 
   gtk_window_set_display (GTK_WINDOW (window2), 
                          gtk_widget_get_display (widget));
diff --git a/tests/testwidgetfocus.c b/tests/testwidgetfocus.c
index 9a9ea5302a..0d583fe30a 100644
--- a/tests/testwidgetfocus.c
+++ b/tests/testwidgetfocus.c
@@ -168,7 +168,7 @@ gtk_focus_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot)
       gtk_widget_get_allocation (widget, &alloc);
 
       /* Since event coordinates and drawing is supposed to happen in the
-       * same coodinates space, this should all work out just fine. */
+       * same coordinates space, this should all work out just fine. */
       bounds.origin.x = self->mouse_x;
       bounds.origin.y = -30;
       bounds.size.width = 1;
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 9a8d0609e1..9fe3dab21b 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -455,7 +455,7 @@ main (int argc, char **argv)
   gint result;
   const char *display, *x_r_d;
 
-  /* These must be set before before gtk_test_init */
+  /* These must be set before gtk_test_init */
   g_setenv ("GIO_USE_VFS", "local", TRUE);
   g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
   g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
diff --git a/testsuite/gtk/grid-layout.c b/testsuite/gtk/grid-layout.c
index c3655185ff..b926c3193b 100644
--- a/testsuite/gtk/grid-layout.c
+++ b/testsuite/gtk/grid-layout.c
@@ -534,7 +534,7 @@ test_homogeneous (void)
  * +-----------------+
  *
  * This is a layout that we also reproduce with
- * constraints, for comparison. Among the contraints:
+ * constraints, for comparison. Among the constraints:
  * - child1.width == child2.width
  * - child1.height == child2.height == child3.height
  */
diff --git a/testsuite/gtk/main.c b/testsuite/gtk/main.c
index 3487d3ed8b..8b2bc5055f 100644
--- a/testsuite/gtk/main.c
+++ b/testsuite/gtk/main.c
@@ -12,7 +12,7 @@ test_init (void)
 int
 main (int argc, char *argv[])
 {
-  /* Don't use gtk_test_init here because it implicitely initializes GTK+. */
+  /* Don't use gtk_test_init here because it implicitly initializes GTK+. */
   g_test_init (&argc, &argv, NULL);
   gtk_disable_setlocale();
   setlocale (LC_ALL, "C");
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index 5e13c1ad39..d3ff56c3e9 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -130,7 +130,7 @@ main (int argc, char **argv)
   gint result;
   const char *display, *x_r_d;
 
-  /* These must be set before before gtk_test_init */
+  /* These must be set before gtk_test_init */
   g_setenv ("GIO_USE_VFS", "local", TRUE);
   g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
 
diff --git a/testsuite/gtk/templates.c b/testsuite/gtk/templates.c
index 5e2e657852..3653223878 100644
--- a/testsuite/gtk/templates.c
+++ b/testsuite/gtk/templates.c
@@ -435,7 +435,7 @@ test_print_unix_dialog_show (void)
 int
 main (int argc, char **argv)
 {
-  /* These must be set before before gtk_test_init */
+  /* These must be set before gtk_test_init */
   g_setenv ("GIO_USE_VFS", "local", TRUE);
   g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]