app, libgimp, libgimpwidgets, plug-ins, etc: rename behaviour to behavior

We use US English which uses behavior. So we replace all occurrences of
behaviour.

Most notable is File Open behavior in preferences. Besides that several
mentions in function documentation and a few in comments.
This commit is contained in:
Jacob Boerema 2023-07-21 15:35:23 -04:00
parent 4fa1472e9c
commit 18408ce966
16 changed files with 18 additions and 18 deletions

View file

@ -59,7 +59,7 @@ help in that regard:
GIR data is when cross-compiling because of the difficulty to make cross-tools GIR data is when cross-compiling because of the difficulty to make cross-tools
for GObject Introspection. for GObject Introspection.
Nevertheless if you have working GIR cross-tools, you can force the expected Nevertheless if you have working GIR cross-tools, you can force the expected
behaviour with GIMP's meson option -Dcan-crosscompile-gir=true behavior with GIMP's meson option -Dcan-crosscompile-gir=true
Optional: Optional:

View file

@ -325,7 +325,7 @@ _("When enabled, non-visible layers can be edited as normal.")
#define MOVE_TOOL_CHANGES_ACTIVE_BLURB \ #define MOVE_TOOL_CHANGES_ACTIVE_BLURB \
_("If enabled, the move tool sets the edited layer or path as active. " \ _("If enabled, the move tool sets the edited layer or path as active. " \
"This used to be the default behaviour in older versions.") "This used to be the default behavior in older versions.")
#define MYPAINT_BRUSH_PATH_BLURB \ #define MYPAINT_BRUSH_PATH_BLURB \
"Sets the brush search path." "Sets the brush search path."

View file

@ -1531,7 +1531,7 @@ prefs_dialog_new (Gimp *gimp,
grid = prefs_grid_new (GTK_CONTAINER (vbox2)); grid = prefs_grid_new (GTK_CONTAINER (vbox2));
button = prefs_enum_combo_box_add (object, "color-profile-policy", 0, 0, button = prefs_enum_combo_box_add (object, "color-profile-policy", 0, 0,
_("_File Open behaviour:"), _("_File Open behavior:"),
GTK_GRID (grid), 0, size_group); GTK_GRID (grid), 0, size_group);
/* Filter Dialogs */ /* Filter Dialogs */

View file

@ -3860,7 +3860,7 @@ gimp_tool_rectangle_update_int_rect (GimpToolRectangle *rectangle)
* @ccoord_x_output: * @ccoord_x_output:
* @ccoord_x_output: * @ccoord_x_output:
* *
* Transforms a coordinate to better fit the public behaviour of the * Transforms a coordinate to better fit the public behavior of the
* rectangle. * rectangle.
*/ */
static void static void

View file

@ -427,7 +427,7 @@ register_image_undo_procs (GimpPDB *pdb)
"gimp-image-undo-freeze"); "gimp-image-undo-freeze");
gimp_procedure_set_static_help (procedure, gimp_procedure_set_static_help (procedure,
"Freeze the image's undo stack.", "Freeze the image's undo stack.",
"This procedure freezes the image's undo stack, allowing subsequent operations to ignore their undo steps. This is generally called in conjunction with 'gimp-image-undo-thaw' to temporarily disable an image undo stack. This is advantageous because saving undo steps can be time and memory intensive. 'gimp-image-undo-freeze' / 'gimp-image-undo-thaw' and 'gimp-image-undo-disable' / 'gimp-image-undo-enable' differ in that the former does not free up all undo steps when undo is thawed, so is more suited to interactive in-situ previews. It is important in this case that the image is back to the same state it was frozen in before thawing, else 'undo' behaviour is undefined.", "This procedure freezes the image's undo stack, allowing subsequent operations to ignore their undo steps. This is generally called in conjunction with 'gimp-image-undo-thaw' to temporarily disable an image undo stack. This is advantageous because saving undo steps can be time and memory intensive. 'gimp-image-undo-freeze' / 'gimp-image-undo-thaw' and 'gimp-image-undo-disable' / 'gimp-image-undo-enable' differ in that the former does not free up all undo steps when undo is thawed, so is more suited to interactive in-situ previews. It is important in this case that the image is back to the same state it was frozen in before thawing, else 'undo' behavior is undefined.",
NULL); NULL);
gimp_procedure_set_static_attribution (procedure, gimp_procedure_set_static_attribution (procedure,
"Adam D. Moss", "Adam D. Moss",

View file

@ -308,7 +308,7 @@ gimp_action_impl_change_state (GAction *action,
if (g_signal_has_handler_pending (action, gimp_action_impl_signals[CHANGE_STATE], 0, TRUE)) if (g_signal_has_handler_pending (action, gimp_action_impl_signals[CHANGE_STATE], 0, TRUE))
g_signal_emit (action, gimp_action_impl_signals[CHANGE_STATE], 0, value); g_signal_emit (action, gimp_action_impl_signals[CHANGE_STATE], 0, value);
else else
/* If not, then the default behaviour is to just set the state. */ /* If not, then the default behavior is to just set the state. */
gimp_action_impl_set_state (GIMP_ACTION (action), value); gimp_action_impl_set_state (GIMP_ACTION (action), value);
} }

View file

@ -858,7 +858,7 @@ yes and no.
(move-tool-changes-active no) (move-tool-changes-active no)
If enabled, the move tool sets the edited layer or path as active. This used If enabled, the move tool sets the edited layer or path as active. This used
to be the default behaviour in older versions. Possible values are yes and to be the default behavior in older versions. Possible values are yes and
no. no.
.TP .TP

View file

@ -669,7 +669,7 @@
# (edit-non-visible no) # (edit-non-visible no)
# If enabled, the move tool sets the edited layer or path as active. This # If enabled, the move tool sets the edited layer or path as active. This
# used to be the default behaviour in older versions. Possible values are # used to be the default behavior in older versions. Possible values are
# yes and no. # yes and no.
# #
# (move-tool-changes-active no) # (move-tool-changes-active no)

View file

@ -234,7 +234,7 @@ gimp_image_undo_enable (GimpImage *image)
* all undo steps when undo is thawed, so is more suited to interactive * all undo steps when undo is thawed, so is more suited to interactive
* in-situ previews. It is important in this case that the image is * in-situ previews. It is important in this case that the image is
* back to the same state it was frozen in before thawing, else 'undo' * back to the same state it was frozen in before thawing, else 'undo'
* behaviour is undefined. * behavior is undefined.
* *
* Returns: TRUE if the image undo has been frozen. * Returns: TRUE if the image undo has been frozen.
**/ **/

View file

@ -652,7 +652,7 @@ gimp_color_area_enable_drag (GimpColorArea *area,
* @draw_border: whether to draw a border or not * @draw_border: whether to draw a border or not
* *
* The @area can draw a thin border in the foreground color around * The @area can draw a thin border in the foreground color around
* itself. This function toggles this behaviour on and off. The * itself. This function toggles this behavior on and off. The
* default is not draw a border. * default is not draw a border.
**/ **/
void void

View file

@ -320,7 +320,7 @@ gimp_label_color_populate (GimpLabeled *labeled,
* In the editable case, the @label is reused as the color chooser's * In the editable case, the @label is reused as the color chooser's
* dialog title. * dialog title.
* *
* If you wish to customize any of these default behaviours, get the * If you wish to customize any of these default behaviors, get the
* #GimpColorArea or #GimpColorButton with gimp_label_color_get_color_widget(). * #GimpColorArea or #GimpColorButton with gimp_label_color_get_color_widget().
* *
* Returns: (transfer full): The new #GimpLabelColor widget. * Returns: (transfer full): The new #GimpLabelColor widget.

View file

@ -862,7 +862,7 @@ gimp_preview_get_area (GimpPreview *preview)
* @preview: a #GimpPreview widget * @preview: a #GimpPreview widget
* *
* Calls the GimpPreview::draw method. GimpPreview itself doesn't * Calls the GimpPreview::draw method. GimpPreview itself doesn't
* implement a default draw method so the behaviour is determined by * implement a default draw method so the behavior is determined by
* the derived class implementing this method. * the derived class implementing this method.
* *
* #GimpDrawablePreview implements gimp_preview_draw() by drawing the * #GimpDrawablePreview implements gimp_preview_draw() by drawing the
@ -886,7 +886,7 @@ gimp_preview_draw (GimpPreview *preview)
* @rowstride: the @buffer's rowstride * @rowstride: the @buffer's rowstride
* *
* Calls the GimpPreview::draw_buffer method. GimpPreview itself * Calls the GimpPreview::draw_buffer method. GimpPreview itself
* doesn't implement this method so the behaviour is determined by the * doesn't implement this method so the behavior is determined by the
* derived class implementing this method. * derived class implementing this method.
* *
* Since: 2.2 * Since: 2.2

View file

@ -401,7 +401,7 @@ gimp_scale_entry_set_bounds (GimpScaleEntry *entry,
/** /**
* gimp_scale_entry_set_logarithmic: * gimp_scale_entry_set_logarithmic:
* @entry: a #GimpScaleEntry as returned by gimp_scale_entry_new() * @entry: a #GimpScaleEntry as returned by gimp_scale_entry_new()
* @logarithmic: a boolean value to set or reset logarithmic behaviour * @logarithmic: a boolean value to set or reset logarithmic behavior
* of the scale widget * of the scale widget
* *
* Sets whether @entry's scale widget will behave in a linear * Sets whether @entry's scale widget will behave in a linear
@ -433,7 +433,7 @@ gimp_scale_entry_set_logarithmic (GimpScaleEntry *entry,
* @entry: a #GimpScaleEntry as returned by gimp_scale_entry_new() * @entry: a #GimpScaleEntry as returned by gimp_scale_entry_new()
* *
* Returns: %TRUE if @entry's scale widget will behave in * Returns: %TRUE if @entry's scale widget will behave in
* logarithmic fashion, %FALSE for linear behaviour. * logarithmic fashion, %FALSE for linear behavior.
* *
* Since: 2.2 * Since: 2.2
**/ **/

View file

@ -70,7 +70,7 @@
* May 6, 2009 Barak | Itkin <lightningismyname@gmail.com> * May 6, 2009 Barak | Itkin <lightningismyname@gmail.com>
* Added new features and several bugfixes: * Added new features and several bugfixes:
* - Added handling for image resolutions * - Added handling for image resolutions
* - fixed the behaviour of getting font sizes * - fixed the behavior of getting font sizes
* - Added various optimizations (solid rectangles instead of bitmaps, ignoring * - Added various optimizations (solid rectangles instead of bitmaps, ignoring
* invisible layers, etc.) as a macro flag. * invisible layers, etc.) as a macro flag.
* - Added handling for layer masks, use CAIRO_FORMAT_A8 for grayscale drawables. * - Added handling for layer masks, use CAIRO_FORMAT_A8 for grayscale drawables.

View file

@ -251,7 +251,7 @@ def palette_sort(palette, selection, slice_expr, channel1, ascending1,
except ValueError: except ValueError:
# bad expression is okay here, just assume one row # bad expression is okay here, just assume one row
nrows = 1 nrows = 1
# remaining behaviour is implemented by SELECT_SLICE 'inheritance'. # remaining behavior is implemented by SELECT_SLICE 'inheritance'.
selection = SELECT_SLICE selection = SELECT_SLICE
elif selection in (SELECT_SLICE, SELECT_PARTITIONED): elif selection in (SELECT_SLICE, SELECT_PARTITIONED):
start, nrows, length = parse_slice(slice_expr, num_colors) start, nrows, length = parse_slice(slice_expr, num_colors)

View file

@ -997,7 +997,7 @@ main (int argc,
if (argc == 1) if (argc == 1)
usage (EXIT_SUCCESS); usage (EXIT_SUCCESS);
/* First scan for flags that affect our behaviour globally, but /* First scan for flags that affect our behavior globally, but
* are still allowed late on the command line. * are still allowed late on the command line.
*/ */
argi = 0; argi = 0;