From d1bb92728651181d10a106c0c5199dbf2ec9bf21 Mon Sep 17 00:00:00 2001 From: Cam Cook Date: Sun, 13 Nov 2022 11:55:05 -0500 Subject: [PATCH] Documentation fix: Various spelling mistakes (and one use of the wrong verb) across a few domains that show up in documentation. | domain | current | suggestion | |--------|---------|------------| | [GtkButton](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbutton.c#L691) | "Buttons can has a flat appearance" | "Buttons can have a flat appearance" | | [GtkCenterBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcenterbox.c#L275) | "pas %NULL" | "pass %NULL" | | [GtkEditable](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkeditable.c#L466) | "the text to append" | "the text to insert" | | [GtkFlowbox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkflowbox.c#L4921) | "the are equal" | "they are equal" | | [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L550) | "Call this when a the selection changes" | "Call this when a selection changes" | | [GtkWIndow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwindow.c#L5321) | "(e.g. the user or the window manager" | "(e.g. the user or the window manager)" | --- gtk/gtkbutton.c | 2 +- gtk/gtkcenterbox.c | 2 +- gtk/gtkeditable.c | 2 +- gtk/gtkflowbox.c | 2 +- gtk/gtkselectionmodel.c | 2 +- gtk/gtkwindow.c | 12 ++++++------ 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 65df53cc70..2f98e70de4 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -688,7 +688,7 @@ gtk_button_new_with_mnemonic (const char *label) * * Sets the style of the button. * - * Buttons can has a flat appearance or have a frame drawn around them. + * Buttons can have a flat appearance or have a frame drawn around them. */ void gtk_button_set_has_frame (GtkButton *button, diff --git a/gtk/gtkcenterbox.c b/gtk/gtkcenterbox.c index 9730f28e6e..fe56467fae 100644 --- a/gtk/gtkcenterbox.c +++ b/gtk/gtkcenterbox.c @@ -272,7 +272,7 @@ gtk_center_box_set_start_widget (GtkCenterBox *self, * * Sets the center widget. * - * To remove the existing center widget, pas %NULL. + * To remove the existing center widget, pass %NULL. */ void gtk_center_box_set_center_widget (GtkCenterBox *self, diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c index 8818bcdd4d..a43e34550a 100644 --- a/gtk/gtkeditable.c +++ b/gtk/gtkeditable.c @@ -463,7 +463,7 @@ gtk_editable_default_init (GtkEditableInterface *iface) /** * gtk_editable_insert_text: (virtual do_insert_text) * @editable: a `GtkEditable` - * @text: the text to append + * @text: the text to insert * @length: the length of the text in bytes, or -1 * @position: (inout): location of the position text will be inserted at * diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index b9a8c8efb5..b7252ba1a2 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -4918,7 +4918,7 @@ gtk_flow_box_invalidate_filter (GtkFlowBox *box) * should come first. * * Returns: < 0 if @child1 should be before @child2, 0 if - * the are equal, and > 0 otherwise + * they are equal, and > 0 otherwise */ /** diff --git a/gtk/gtkselectionmodel.c b/gtk/gtkselectionmodel.c index 7c93c2b4e7..ac06f7975e 100644 --- a/gtk/gtkselectionmodel.c +++ b/gtk/gtkselectionmodel.c @@ -547,7 +547,7 @@ gtk_selection_model_set_selection (GtkSelectionModel *model, * * Helper function for implementations of `GtkSelectionModel`. * - * Call this when a the selection changes to emit the + * Call this when a selection changes to emit the * [signal@Gtk.SelectionModel::selection-changed] signal. */ void diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 6ef931a719..5318dd3647 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5286,7 +5286,7 @@ gtk_window_present_with_time (GtkWindow *window, * * Note that you shouldn’t assume the window is definitely minimized * afterward, because the windowing system might not support this - * functionality; other entities (e.g. the user or the window manager + * functionality; other entities (e.g. the user or the window manager) * could unminimize it again, or there may not be a window manager in * which case minimization isn’t possible, etc. * @@ -5318,7 +5318,7 @@ gtk_window_minimize (GtkWindow *window) * * Note that you shouldn’t assume the window is definitely unminimized * afterward, because the windowing system might not support this - * functionality; other entities (e.g. the user or the window manager + * functionality; other entities (e.g. the user or the window manager) * could minimize it again, or there may not be a window manager in * which case minimization isn’t possible, etc. * @@ -5345,7 +5345,7 @@ gtk_window_unminimize (GtkWindow *window) * Asks to maximize @window, so that it fills the screen. * * Note that you shouldn’t assume the window is definitely maximized - * afterward, because other entities (e.g. the user or window manager + * afterward, because other entities (e.g. the user or window manager) * could unmaximize it again, and not all window managers support * maximization. * @@ -5387,7 +5387,7 @@ gtk_window_maximize (GtkWindow *window) * Asks to unmaximize @window. * * Note that you shouldn’t assume the window is definitely unmaximized - * afterward, because other entities (e.g. the user or window manager + * afterward, because other entities (e.g. the user or window manager) * maximize it again, and not all window managers honor requests to * unmaximize. * @@ -5437,7 +5437,7 @@ unset_fullscreen_monitor (GtkWindow *window) * Asks to place @window in the fullscreen state. * * Note that you shouldn’t assume the window is definitely fullscreen - * afterward, because other entities (e.g. the user or window manager + * afterward, because other entities (e.g. the user or window manager) * unfullscreen it again, and not all window managers honor requests * to fullscreen windows. * @@ -5526,7 +5526,7 @@ gtk_window_fullscreen_on_monitor (GtkWindow *window, * * Note that you shouldn’t assume the window is definitely not * fullscreen afterward, because other entities (e.g. the user or - * window manager could fullscreen it again, and not all window + * window manager) could fullscreen it again, and not all window * managers honor requests to unfullscreen windows; normally the * window will end up restored to its normal state. Just don’t * write code that crashes if not. -- 2.30.2