mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
Bug 795557 - Misc. typo fixes in source, comments and doxygen (pt3)
Found via `codespell` and grep.
This commit is contained in:
parent
6e87ceb896
commit
4a77ff2d3d
69 changed files with 91 additions and 91 deletions
|
@ -43,7 +43,7 @@
|
|||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
buffers_paste_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
|
||||
void
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "data-editor-commands.h"
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
data_editor_edit_active_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -44,7 +44,7 @@ static const GimpActionEntry debug_actions[] =
|
|||
{ "debug-benchmark-projection", NULL,
|
||||
"Benchmark _Projection", NULL,
|
||||
"Invalidates the entire projection, measures the time it takes to "
|
||||
"validate (render) the part that is visible in the active diaplay, "
|
||||
"validate (render) the part that is visible in the active display, "
|
||||
"and print the result to stdout.",
|
||||
G_CALLBACK (debug_benchmark_projection_cmd_callback),
|
||||
NULL },
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "fonts-commands.h"
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
fonts_refresh_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -65,7 +65,7 @@ static void gradient_editor_replicate_response (GtkWidget *widge
|
|||
GimpGradientEditor *editor);
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
gradient_editor_left_color_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include "images-commands.h"
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
images_raise_views_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -51,7 +51,7 @@ static void palettes_merge_callback (GtkWidget *widget,
|
|||
gpointer data);
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
palettes_import_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -59,7 +59,7 @@ static void quick_mask_configure_callback (GtkWidget *dialog,
|
|||
gpointer user_data);
|
||||
|
||||
|
||||
/* public functionss */
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
quick_mask_toggle_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -584,7 +584,7 @@ gimp_brush_load_abr_brush_v12 (GDataInputStream *input,
|
|||
/* FIXME: support it!
|
||||
*
|
||||
* We can probabaly feed the info into the generated brush code
|
||||
* and get a useable brush back. It seems to support the same
|
||||
* and get a usable brush back. It seems to support the same
|
||||
* types -akl
|
||||
*/
|
||||
g_printerr ("WARNING: computed brush unsupported, skipping.\n");
|
||||
|
|
|
@ -92,7 +92,7 @@ gimp_brush_real_transform_size (GimpBrush *brush,
|
|||
* corner points of the destination image to work out the starting
|
||||
* position in the source image and the U and V deltas in the source
|
||||
* image space. It then uses a scan-line approach, looping through
|
||||
* rows and colummns in the transformed (destination) image while
|
||||
* rows and columns in the transformed (destination) image while
|
||||
* walking along the corresponding rows and columns (named U and V) in
|
||||
* the source image.
|
||||
*
|
||||
|
@ -392,7 +392,7 @@ gimp_brush_real_transform_mask (GimpBrush *brush,
|
|||
* corner points of the destination image to work out the starting
|
||||
* position in the source image and the U and V deltas in the source
|
||||
* image space. It then uses a scan-line approach, looping through
|
||||
* rows and colummns in the transformed (destination) image while
|
||||
* rows and columns in the transformed (destination) image while
|
||||
* walking along the corresponding rows and columns (named U and V) in
|
||||
* the source image.
|
||||
*
|
||||
|
|
|
@ -1005,9 +1005,9 @@ gimp_curve_plot (GimpCurve *curve,
|
|||
/*
|
||||
* the x values of the inner control points are fixed at
|
||||
* x1 = 2/3*x0 + 1/3*x3 and x2 = 1/3*x0 + 2/3*x3
|
||||
* this ensures that the x values increase linearily with the
|
||||
* this ensures that the x values increase linearly with the
|
||||
* parameter t and enables us to skip the calculation of the x
|
||||
* values altogehter - just calculate y(t) evenly spaced.
|
||||
* values altogether - just calculate y(t) evenly spaced.
|
||||
*/
|
||||
|
||||
dx = x3 - x0;
|
||||
|
@ -1061,7 +1061,7 @@ gimp_curve_plot (GimpCurve *curve,
|
|||
|
||||
/*
|
||||
* finally calculate the y(t) values for the given bezier values. We can
|
||||
* use homogenously distributed values for t, since x(t) increases linearily.
|
||||
* use homogenously distributed values for t, since x(t) increases linearly.
|
||||
*/
|
||||
for (i = 0; i <= ROUND (dx * (gdouble) (curve->n_samples - 1)); i++)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ struct _GimpCurve
|
|||
gint n_samples;
|
||||
gdouble *samples;
|
||||
|
||||
gboolean identity; /* whether the curve is an identiy mapping */
|
||||
gboolean identity; /* whether the curve is an identity mapping */
|
||||
};
|
||||
|
||||
struct _GimpCurveClass
|
||||
|
|
|
@ -3552,7 +3552,7 @@ gimp_image_parasite_attach (GimpImage *image,
|
|||
C_("undo-type", "Attach Parasite to Image"),
|
||||
©);
|
||||
|
||||
/* We used to push an cantundo on te stack here. This made the undo stack
|
||||
/* We used to push a cantundo on the stack here. This made the undo stack
|
||||
* unusable (NULL on the stack) and prevented people from undoing after a
|
||||
* save (since most save plug-ins attach an undoable comment parasite).
|
||||
* Now we simply attach the parasite without pushing an undo. That way
|
||||
|
|
|
@ -2006,7 +2006,7 @@ gimp_item_replace_item (GimpItem *item,
|
|||
gimp_item_get_ID (item),
|
||||
item);
|
||||
|
||||
/* Set image before tatoo so that the explicitly set tatoo overrides
|
||||
/* Set image before tattoo so that the explicitly set tattoo overrides
|
||||
* the one implicitly set when setting the image
|
||||
*/
|
||||
gimp_item_set_image (item, gimp_item_get_image (replace));
|
||||
|
|
|
@ -29,7 +29,7 @@ GimpPalette * gimp_palette_import_from_image (GimpImage *image,
|
|||
GimpContext *context,
|
||||
const gchar *palette_name,
|
||||
gint n_colors,
|
||||
gint treshold,
|
||||
gint threshold,
|
||||
gboolean selection_only);
|
||||
GimpPalette * gimp_palette_import_from_indexed_image (GimpImage *image,
|
||||
GimpContext *context,
|
||||
|
|
|
@ -375,7 +375,7 @@ gimp_scan_convert_stroke (GimpScanConvert *sc,
|
|||
/**
|
||||
* gimp_scan_convert_render:
|
||||
* @sc: a #GimpScanConvert context
|
||||
* @bufferr: the #GeglBuffer to render to
|
||||
* @buffer: the #GeglBuffer to render to
|
||||
* @off_x: horizontal offset into the @buffer
|
||||
* @off_y: vertical offset into the @buffer
|
||||
* @antialias: whether to apply antialiasiing
|
||||
|
|
|
@ -78,7 +78,7 @@ struct _GimpStrokeOptionsPrivate
|
|||
{
|
||||
GimpStrokeMethod method;
|
||||
|
||||
/* options for medhod == LIBART */
|
||||
/* options for method == LIBART */
|
||||
gdouble width;
|
||||
GimpUnit unit;
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ gimp_tag_get_internal (GimpTag *tag)
|
|||
/**
|
||||
* gimp_tag_set_internal:
|
||||
* @tag: a gimp tag.
|
||||
* @inernal: desired tag internal status
|
||||
* @internal: desired tag internal status
|
||||
*
|
||||
* Set internal status of the tag. Internal tags are usually automatically
|
||||
* generated and will not be saved into users tag cache.
|
||||
|
|
|
@ -1173,7 +1173,7 @@ gimp_viewable_get_dummy_pixbuf (GimpViewable *viewable,
|
|||
/**
|
||||
* gimp_viewable_get_description:
|
||||
* @viewable: viewable object for which to retrieve a description.
|
||||
* @tooltip: return loaction for an optional tooltip string.
|
||||
* @tooltip: return location for an optional tooltip string.
|
||||
*
|
||||
* Retrieves a string containing a description of the viewable object,
|
||||
* By default, it simply returns the name of the object, but this can
|
||||
|
|
|
@ -191,7 +191,7 @@ gimp_canvas_focus (GtkWidget *widget,
|
|||
|
||||
/* override GtkContainer's focus() implementation which would always
|
||||
* give focus to the canvas because it is focussable. Instead, try
|
||||
* navigating in the focussed overlay child first, and use
|
||||
* navigating in the focused overlay child first, and use
|
||||
* GtkContainer's default implementation only if that fails (which
|
||||
* happens when focus navigation leaves the overlay child).
|
||||
*/
|
||||
|
|
|
@ -961,7 +961,7 @@ gimp_display_shell_untransform_bounds_with_scale (GimpDisplayShell *shell,
|
|||
* @width: returns width of display measured in image coordinates
|
||||
* @height: returns height of display measured in image coordinates
|
||||
*
|
||||
* This function calculates the part of the image, im image coordinates,
|
||||
* This function calculates the part of the image, in image coordinates,
|
||||
* that corresponds to the display viewport.
|
||||
**/
|
||||
void
|
||||
|
|
|
@ -191,7 +191,7 @@ struct _GimpToolRectanglePrivate
|
|||
/* How to constrain the rectangle. */
|
||||
GimpRectangleConstraint constraint;
|
||||
|
||||
/* What precision the rectangle will apear to have externally (it
|
||||
/* What precision the rectangle will appear to have externally (it
|
||||
* will always be double internally)
|
||||
*/
|
||||
GimpRectanglePrecision precision;
|
||||
|
|
|
@ -672,7 +672,7 @@ gimp_curves_config_save_cruft (GimpCurvesConfig *config,
|
|||
|
||||
for (j = 0; j < curve->n_points; j++)
|
||||
{
|
||||
/* don't use gimp_curve_get_point() becaue that doesn't
|
||||
/* don't use gimp_curve_get_point() because that doesn't
|
||||
* work when the curve type is GIMP_CURVE_FREE
|
||||
*/
|
||||
gdouble x = curve->points[j].x;
|
||||
|
|
|
@ -781,7 +781,7 @@ gimp_operation_flood_process_propagate_horizontal (GimpOperationFloodContext
|
|||
GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
|
||||
}
|
||||
|
||||
/* The new water level is the maximum of the curernt ground level,
|
||||
/* The new water level is the maximum of the current ground level,
|
||||
* and the minimum of the current and previous water levels. Recall
|
||||
* that `level` holds the previous water level, and that the current
|
||||
* water level is never less than the ground level.
|
||||
|
|
|
@ -372,7 +372,7 @@ gimp_operation_grow_process (GeglOperation *operation,
|
|||
GEGL_AUTO_ROWSTRIDE);
|
||||
}
|
||||
|
||||
/* undo the offsets to the pointers so we can free the malloced memmory */
|
||||
/* undo the offsets to the pointers so we can free the malloced memory */
|
||||
circ -= self->radius_x;
|
||||
max -= self->radius_x;
|
||||
|
||||
|
|
|
@ -423,11 +423,11 @@ gimp_operation_shrink_process (GeglOperation *operation,
|
|||
GEGL_AUTO_ROWSTRIDE);
|
||||
}
|
||||
|
||||
/* undo the offsets to the pointers so we can free the malloced memmory */
|
||||
/* undo the offsets to the pointers so we can free the malloced memory */
|
||||
circ -= self->radius_x;
|
||||
max -= self->radius_x;
|
||||
|
||||
/* free the memmory */
|
||||
/* free the memory */
|
||||
g_free (circ);
|
||||
g_free (buffer);
|
||||
g_free (max);
|
||||
|
|
|
@ -336,7 +336,7 @@ struct AlgorithmBase
|
|||
/* BasicDispatch:
|
||||
*
|
||||
* A class template implementing a simple dispatch function object, which adds
|
||||
* an algorithm to the heirarchy unconditionally. 'AlgorithmTemplate' is the
|
||||
* an algorithm to the hierarchy unconditionally. 'AlgorithmTemplate' is the
|
||||
* alogithm class template (usually a helper class, rather than an actual
|
||||
* algorithm), and 'Mask' is the dispatch function mask, as described in
|
||||
* 'dispatch()'.
|
||||
|
@ -369,7 +369,7 @@ struct BasicDispatch
|
|||
* is a list of (types of) dispatch functions the algorithm depends on, usd as
|
||||
* explained below.
|
||||
*
|
||||
* 'AlgorithmDispatch' adds the algorithm to the heirarchy if it's included in
|
||||
* 'AlgorithmDispatch' adds the algorithm to the hierarchy if it's included in
|
||||
* the set of requested algorithms; specifically, if the bitwise-AND of the
|
||||
* requested-algorithms bitset and of 'Mask' is equal to 'Mask'.
|
||||
*
|
||||
|
@ -881,7 +881,7 @@ struct PaintMaskToPaintBuffer : Base
|
|||
PaintMaskToPaintBuffer (const GimpPaintCoreLoopsParams *params) :
|
||||
Base (params)
|
||||
{
|
||||
/* Validate that the paint buffer is withing the bounds of the paint mask */
|
||||
/* Validate that the paint buffer is within the bounds of the paint mask */
|
||||
g_return_if_fail (gimp_temp_buf_get_width (params->paint_buf) <=
|
||||
gimp_temp_buf_get_width (params->paint_mask) -
|
||||
params->paint_mask_offset_x);
|
||||
|
|
|
@ -8036,13 +8036,13 @@ register_plug_in_compat_procs (GimpPDB *pdb)
|
|||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_double ("alpha1",
|
||||
"alpha1",
|
||||
"alpha for the first color (used if the drawable has an alpha chanel)",
|
||||
"alpha for the first color (used if the drawable has an alpha channel)",
|
||||
0, 1, 0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
g_param_spec_double ("alpha2",
|
||||
"alpha2",
|
||||
"alpha for the second color (used if the drawable has an alpha chanel)",
|
||||
"alpha for the second color (used if the drawable has an alpha channel)",
|
||||
0, 1, 0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -711,7 +711,7 @@ repeatedly_switch_window_mode (gconstpointer data)
|
|||
/* Switch to single-window mode */
|
||||
gimp_ui_switch_window_mode (gimp);
|
||||
|
||||
/* Rememeber the single-window mode size */
|
||||
/* Remember the single-window mode size */
|
||||
gtk_window_get_size (GTK_WINDOW (toplevel),
|
||||
&expected_second_width,
|
||||
&expected_second_height);
|
||||
|
|
|
@ -446,7 +446,7 @@ gimp_create_mainimage (Gimp *gimp,
|
|||
GIMP_MAINIMAGE_SAMPLEPOINT2_Y,
|
||||
FALSE /*push_undo*/);
|
||||
|
||||
/* Tatto
|
||||
/* Tattoo
|
||||
* We don't bother testing this, not yet at least
|
||||
*/
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ gimp_text_set_font_from_xlfd (GimpText *text,
|
|||
*
|
||||
* Returns: a pointer to the filled buffer or %NULL if fontname is
|
||||
* %NULL, the field is longer than XFLD_MAX_FIELD_LEN or it contains
|
||||
* just an asteriks.
|
||||
* just an asterisk.
|
||||
**/
|
||||
static gchar *
|
||||
gimp_text_get_xlfd_field (const gchar *fontname,
|
||||
|
|
|
@ -43,7 +43,7 @@ GimpTextLayout * gimp_text_layout_new (GimpText *text,
|
|||
GError **error);
|
||||
gboolean gimp_text_layout_get_size (GimpTextLayout *layout,
|
||||
gint *width,
|
||||
gint *heigth);
|
||||
gint *height);
|
||||
void gimp_text_layout_get_offsets (GimpTextLayout *layout,
|
||||
gint *x,
|
||||
gint *y);
|
||||
|
|
|
@ -300,7 +300,7 @@ gimp_cage_tool_button_press (GimpTool *tool,
|
|||
switch (ct->tool_state)
|
||||
{
|
||||
case CAGE_STATE_INIT:
|
||||
/* No handle yet, we add the first one and swith the tool to
|
||||
/* No handle yet, we add the first one and switch the tool to
|
||||
* moving handle state.
|
||||
*/
|
||||
gimp_cage_config_add_cage_point (ct->config,
|
||||
|
|
|
@ -832,7 +832,7 @@ gimp_rectangle_select_tool_commit (GimpRectangleSelectTool *rect_tool)
|
|||
gimp_tool_control_push_preserve (tool->control, TRUE);
|
||||
|
||||
/* We can conceptually think of a click outside of the
|
||||
* selection as adding a 0px selection. Behave intuitivly
|
||||
* selection as adding a 0px selection. Behave intuitively
|
||||
* for the current selection mode
|
||||
*/
|
||||
operation = gimp_rectangle_select_tool_get_operation (rect_tool);
|
||||
|
|
|
@ -822,7 +822,7 @@ gimp_dialog_factory_dialog_raise (GimpDialogFactory *factory,
|
|||
/**
|
||||
* gimp_dialog_factory_dockable_new:
|
||||
* @factory: a #GimpDialogFactory
|
||||
* @dock: a #GimpDock crated by this %factory.
|
||||
* @dock: a #GimpDock created by this %factory.
|
||||
* @identifier: the identifier of the dialog as registered with
|
||||
* gimp_dialog_factory_register_entry()
|
||||
* @view_size:
|
||||
|
|
|
@ -659,7 +659,7 @@ gimp_dock_window_delete_event (GtkWidget *widget,
|
|||
GimpDialogFactoryEntry *entry = NULL;
|
||||
gchar *name = NULL;
|
||||
|
||||
/* Don't add docks with just a singe dockable to the list of
|
||||
/* Don't add docks with just a single dockable to the list of
|
||||
* recently closed dock since those can be brought back through the
|
||||
* normal Windows->Dockable Dialogs menu
|
||||
*/
|
||||
|
|
|
@ -669,7 +669,7 @@ gimp_layer_tree_view_drop_possible (GimpContainerTreeView *tree_view,
|
|||
GtkTreeViewDropPosition *return_drop_pos,
|
||||
GdkDragAction *return_drag_action)
|
||||
{
|
||||
/* If we are dropping a new layer, check if the destionation image
|
||||
/* If we are dropping a new layer, check if the destination image
|
||||
* has a floating selection.
|
||||
*/
|
||||
if (src_type == GIMP_DND_TYPE_URI_LIST ||
|
||||
|
|
|
@ -2451,7 +2451,7 @@ xcf_load_old_path (XcfInfo *info,
|
|||
{
|
||||
guint32 dummy;
|
||||
|
||||
/* Has extra tatto field */
|
||||
/* Has extra tattoo field */
|
||||
xcf_read_int32 (info, (guint32 *) &dummy, 1);
|
||||
xcf_read_int32 (info, (guint32 *) &tattoo, 1);
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ commits.
|
|||
|
||||
Whenever you make a change that is worthy of being mentioned in the
|
||||
NEWS file, update the NEWS file too. The purpose of this rule is to
|
||||
make it as easy as possble to make a GIMP release.
|
||||
make it as easy as possible to make a GIMP release.
|
||||
|
|
|
@ -26,7 +26,7 @@ The include order of all .c files of a module is as follows:
|
|||
|
||||
/* example of a .c file from app/core */
|
||||
|
||||
#include "config.h" /* alyways and first */
|
||||
#include "config.h" /* always and first */
|
||||
|
||||
#include <glib.h> /* *only* needed if the file needs stuff */
|
||||
/* like G_OS_WIN32 for conditional inclusion */
|
||||
|
|
|
@ -523,7 +523,7 @@ TODO: can this cause confusion and hard-to-find errors? If so, fix.
|
|||
Text
|
||||
----
|
||||
|
||||
GIMP stores text in plain layers with parasites for the text and formattting
|
||||
GIMP stores text in plain layers with parasites for the text and formatting
|
||||
and PROP_TEXT_LAYER_FLAGS for flags.
|
||||
|
||||
|
||||
|
|
|
@ -357,7 +357,7 @@ gimp_config_writer_comment_mode (GimpConfigWriter *writer,
|
|||
* @writer: a #GimpConfigWriter
|
||||
* @name: name of the element to open
|
||||
*
|
||||
* This function writes the opening parenthese followed by @name.
|
||||
* This function writes the opening parentheses followed by @name.
|
||||
* It also increases the indentation level and sets a mark that
|
||||
* can be used by gimp_config_writer_revert().
|
||||
*
|
||||
|
|
|
@ -2938,7 +2938,7 @@ p_vertical_bend (BenderDialog *cd,
|
|||
src_gdrw->drawable->height);
|
||||
l_diff = l_curvy = l_nb_curvy = l_nb2_curvy= l_miny = l_maxy = 0;
|
||||
|
||||
/* allocate array of last values (one element foreach x koordinate) */
|
||||
/* allocate array of last values (one element foreach x coordinate) */
|
||||
last_arr = g_new (t_Last, src_gdrw->x2);
|
||||
first_arr = g_new (t_Last, src_gdrw->x2);
|
||||
|
||||
|
|
|
@ -451,7 +451,7 @@ decompose (gint32 image_ID,
|
|||
GeglBuffer *src_buffer;
|
||||
GeglBuffer *dst_buffer[MAX_EXTRACT_IMAGES];
|
||||
GimpPrecision precision;
|
||||
gboolean requirments = FALSE;
|
||||
gboolean requirements = FALSE;
|
||||
gboolean decomp_has_alpha = FALSE;
|
||||
|
||||
extract_idx = -1; /* Search extract type */
|
||||
|
@ -479,15 +479,15 @@ decompose (gint32 image_ID,
|
|||
decomp_has_alpha |= ! g_strcmp0 ("A", extract[extract_idx].component[j].babl_name);
|
||||
}
|
||||
|
||||
requirments |= (gimp_drawable_is_rgb (drawable_ID));
|
||||
requirments |= (gimp_drawable_is_indexed (drawable_ID));
|
||||
requirments |= (gimp_drawable_is_gray (drawable_ID)
|
||||
requirements |= (gimp_drawable_is_rgb (drawable_ID));
|
||||
requirements |= (gimp_drawable_is_indexed (drawable_ID));
|
||||
requirements |= (gimp_drawable_is_gray (drawable_ID)
|
||||
&& gimp_drawable_has_alpha (drawable_ID)
|
||||
&& (num_layers <= 2)
|
||||
&& decomp_has_alpha);
|
||||
requirments &= (!decomp_has_alpha || gimp_drawable_has_alpha (drawable_ID));
|
||||
requirements &= (!decomp_has_alpha || gimp_drawable_has_alpha (drawable_ID));
|
||||
|
||||
if (!requirments)
|
||||
if (!requirements)
|
||||
{
|
||||
g_message (_("Image not suitable for this decomposition"));
|
||||
return -1;
|
||||
|
|
|
@ -604,7 +604,7 @@ query (void)
|
|||
|
||||
static const GimpParamDef set_load_args[] =
|
||||
{
|
||||
{ GIMP_PDB_INT32, "resolution", "Resolution to interprete image (dpi)" },
|
||||
{ GIMP_PDB_INT32, "resolution", "Resolution to interpret image (dpi)" },
|
||||
{ GIMP_PDB_INT32, "width", "Desired width" },
|
||||
{ GIMP_PDB_INT32, "height", "Desired height" },
|
||||
{ GIMP_PDB_INT32, "check-bbox", "0: Use width/height, 1: Use BoundingBox" },
|
||||
|
|
|
@ -647,7 +647,7 @@ find_extension (const gchar *filename)
|
|||
}
|
||||
else
|
||||
{
|
||||
/* we found somehting, loop back, and look again */
|
||||
/* we found something, loop back, and look again */
|
||||
*ext = 0;
|
||||
ext = strrchr (filename_copy, '.');
|
||||
}
|
||||
|
|
|
@ -1666,7 +1666,7 @@ order_cmp (const void *va,
|
|||
* should get the same color back again. The only way of getting a
|
||||
* correctly balanced function is by getting a formula for the spot's
|
||||
* area as a function of x and y - this can be fairly tough (ie
|
||||
* possiblly an integral in two dimensions that must be solved
|
||||
* possibly an integral in two dimensions that must be solved
|
||||
* analytically).
|
||||
*
|
||||
* The threshold matrix is used to compare against image values. If
|
||||
|
|
|
@ -151,7 +151,7 @@ peekmap (const guchar *image,
|
|||
/* |1 0 -1| | 1 2 1| */
|
||||
/* DX: |2 0 -2| DY: | 0 0 0| */
|
||||
/* |1 0 -1| | -1 -2 -1| */
|
||||
/* (It's a varation of the Sobel kernels, really) */
|
||||
/* (It's a variation of the Sobel kernels, really) */
|
||||
/***************************************************/
|
||||
|
||||
static gint
|
||||
|
|
|
@ -1364,7 +1364,7 @@ load_gui_defaults (JpegSaveGui *pg)
|
|||
gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->smoothing),
|
||||
jsvals.smoothing);
|
||||
|
||||
/* Don't override quality and subsampling setting if we alredy set it from original */
|
||||
/* Don't override quality and subsampling setting if we already set it from original */
|
||||
if (!jsvals.use_orig_quality)
|
||||
{
|
||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->quality),
|
||||
|
|
|
@ -451,7 +451,7 @@ run (const gchar *name,
|
|||
jsvals.quality = orig_quality;
|
||||
}
|
||||
|
||||
/* Skip changing subsampling to original if we alredy have best
|
||||
/* Skip changing subsampling to original if we already have best
|
||||
* setting or if original have worst setting */
|
||||
if (!(jsvals.subsmp == JPEG_SUBSAMPLING_1x1_1x1_1x1 ||
|
||||
orig_subsmp == JPEG_SUBSAMPLING_2x2_1x1_1x1))
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
*
|
||||
* 2005-2-11 Jay Cox <jaycox@gimp.org>
|
||||
* Rewrote all the code that deals with pixels to be stingy with
|
||||
* memory and opperate on tile-size chunks. Create a flattened
|
||||
* memory and operate on tile-size chunks. Create a flattened
|
||||
* copy of the image when necessary. Fixes file corruption bug
|
||||
* #167139 and memory bug #121871
|
||||
*
|
||||
|
|
|
@ -318,7 +318,7 @@ compute_maps (void)
|
|||
gint x;
|
||||
gdouble val, c, d;
|
||||
|
||||
/* Compute Sine, Log ans Spherical transfer function maps */
|
||||
/* Compute Sine, Log and Spherical transfer function maps */
|
||||
/* ====================================================== */
|
||||
|
||||
c = 1.0 / 255.0;
|
||||
|
|
|
@ -94,7 +94,7 @@ set_default_settings (void)
|
|||
mapvals.material.highlight = 27.0;
|
||||
mapvals.material.metallic = FALSE;
|
||||
|
||||
mapvals.pixel_treshold = 0.25;
|
||||
mapvals.pixel_threshold = 0.25;
|
||||
mapvals.max_depth = 3.0;
|
||||
mapvals.preview_zoom_factor = 1.0;
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ typedef struct
|
|||
MaterialSettings material;
|
||||
MaterialSettings ref_material;
|
||||
|
||||
gdouble pixel_treshold;
|
||||
gdouble pixel_threshold;
|
||||
gdouble bumpmax,bumpmin;
|
||||
gint max_depth;
|
||||
gint bumpmaptype;
|
||||
|
|
|
@ -305,7 +305,7 @@ compute_image (void)
|
|||
gimp_adaptive_supersample_area (0, 0,
|
||||
width - 1, height - 1,
|
||||
max_depth,
|
||||
mapvals.pixeltreshold,
|
||||
mapvals.pixelthreshold,
|
||||
render,
|
||||
NULL,
|
||||
poke,
|
||||
|
|
|
@ -39,7 +39,7 @@ cairo_surface_t *preview_surface = NULL;
|
|||
glong maxcounter,old_depth,max_depth;
|
||||
gint imgtype,width,height,in_channels,out_channels,image_id;
|
||||
GimpRGB background;
|
||||
gdouble oldtreshold;
|
||||
gdouble oldthreshold;
|
||||
|
||||
gint border_x, border_y, border_w, border_h;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ extern cairo_surface_t *preview_surface;
|
|||
extern glong maxcounter, old_depth, max_depth;
|
||||
extern gint imgtype, width,height, in_channels, out_channels, image_id;
|
||||
extern GimpRGB background;
|
||||
extern gdouble oldtreshold;
|
||||
extern gdouble oldthreshold;
|
||||
|
||||
extern gint border_x1, border_y1, border_x2, border_y2;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ set_default_settings (void)
|
|||
|
||||
mapvals.maptype = MAP_PLANE;
|
||||
|
||||
mapvals.pixeltreshold = 0.25;
|
||||
mapvals.pixelthreshold = 0.25;
|
||||
mapvals.alpha = 0.0;
|
||||
mapvals.beta = 0.0;
|
||||
mapvals.gamma = 0.0;
|
||||
|
|
|
@ -72,7 +72,7 @@ typedef struct
|
|||
gdouble zoom;
|
||||
gdouble alpha,beta,gamma;
|
||||
gdouble maxdepth;
|
||||
gdouble pixeltreshold;
|
||||
gdouble pixelthreshold;
|
||||
gdouble radius;
|
||||
gdouble cylinder_radius;
|
||||
gdouble cylinder_length;
|
||||
|
|
|
@ -560,7 +560,7 @@ create_options_page (void)
|
|||
G_CALLBACK (gimp_double_adjustment_update),
|
||||
&mapvals.maxdepth);
|
||||
|
||||
spinbutton = spin_button_new (&adj, mapvals.pixeltreshold,
|
||||
spinbutton = spin_button_new (&adj, mapvals.pixelthreshold,
|
||||
0.001, 1000, 0.1, 1, 0, 0, 3);
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("_Threshold:"), 0.0, 0.5,
|
||||
|
@ -568,7 +568,7 @@ create_options_page (void)
|
|||
|
||||
g_signal_connect (adj, "value-changed",
|
||||
G_CALLBACK (double_adjustment_update),
|
||||
&mapvals.pixeltreshold);
|
||||
&mapvals.pixelthreshold);
|
||||
|
||||
gimp_help_set_help_data (spinbutton,
|
||||
_("Stop when pixel differences are smaller than "
|
||||
|
|
|
@ -335,19 +335,19 @@ static const combobox_str_tag dicom[] =
|
|||
{ "other", N_("Other") },
|
||||
};
|
||||
|
||||
/* GPS Altitute Ref */
|
||||
/* GPS Altitude Ref */
|
||||
static const gchar *gpsaltref[] =
|
||||
{
|
||||
N_("Unknown"), N_("Above Sea Level"), N_("Below Sea Level")
|
||||
};
|
||||
|
||||
/* GPS Latitute Ref */
|
||||
/* GPS Latitude Ref */
|
||||
static const gchar *gpslatref[] =
|
||||
{
|
||||
N_("Unknown"), N_("North"), N_("South")
|
||||
};
|
||||
|
||||
/* GPS Longitute Ref */
|
||||
/* GPS Longitude Ref */
|
||||
static const gchar *gpslngref[] =
|
||||
{
|
||||
N_("Unknown"), N_("East"), N_("West")
|
||||
|
|
|
@ -449,7 +449,7 @@ CLASS="FILENAME"
|
|||
CLASS="FILENAME"
|
||||
>plugin.py</TT
|
||||
> that sets out a structure for
|
||||
plugins and implements some things that were either too dificult
|
||||
plugins and implements some things that were either too difficult
|
||||
or impossible to do in C.</P
|
||||
><P
|
||||
>The main purpose of <TT
|
||||
|
@ -5351,7 +5351,7 @@ NAME="GIMPSHELF-MODULE"
|
|||
>This module gives a nicer interface to the persistent
|
||||
storage interface for Gimp plugins. Due to the complicated
|
||||
nature of Python objects (there is often a lot of connections
|
||||
between them), it can be dificult to work out what to store in
|
||||
between them), it can be difficult to work out what to store in
|
||||
gimp's persistent storage. The python interface only allows
|
||||
storage of strings, so this module wraps pickle and unpickle to
|
||||
allow persistentstorage of any python object.</P
|
||||
|
|
|
@ -88,7 +88,7 @@ make install
|
|||
interface for implementing some portions of a plugin. For this
|
||||
reason, there is a python module called
|
||||
<filename>plugin.py</filename> that sets out a structure for
|
||||
plugins and implements some things that were either too dificult
|
||||
plugins and implements some things that were either too difficult
|
||||
or impossible to do in C.</Para>
|
||||
|
||||
<Para>The main purpose of <filename>plugin.py</filename> was to
|
||||
|
@ -2064,7 +2064,7 @@ class myplugin(gimpplugin.plugin):
|
|||
<Para>This module gives a nicer interface to the persistent
|
||||
storage interface for GIMP plugins. Due to the complicated
|
||||
nature of Python objects (there is often a lot of connections
|
||||
between them), it can be dificult to work out what to store in
|
||||
between them), it can be difficult to work out what to store in
|
||||
gimp's persistent storage. The python interface only allows
|
||||
storage of strings, so this module wraps pickle and unpickle to
|
||||
allow persistentstorage of any python object.</Para>
|
||||
|
|
|
@ -76,7 +76,7 @@ CLASS="FILENAME"
|
|||
CLASS="FILENAME"
|
||||
>plugin.py</TT
|
||||
> that sets out a structure for
|
||||
plugins and implements some things that were either too dificult
|
||||
plugins and implements some things that were either too difficult
|
||||
or impossible to do in C.</P
|
||||
><P
|
||||
>The main purpose of <TT
|
||||
|
|
|
@ -161,7 +161,7 @@ NAME="GIMPSHELF-MODULE"
|
|||
>This module gives a nicer interface to the persistent
|
||||
storage interface for Gimp plugins. Due to the complicated
|
||||
nature of Python objects (there is often a lot of connections
|
||||
between them), it can be dificult to work out what to store in
|
||||
between them), it can be difficult to work out what to store in
|
||||
gimp's persistent storage. The python interface only allows
|
||||
storage of strings, so this module wraps pickle and unpickle to
|
||||
allow persistentstorage of any python object.</P
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
# The gimp module provides a basic method for storing information that persists
|
||||
# for a whole gimp session, but only allows for the storage of strings. This
|
||||
# is because other Python types usually have pointers to other Python objects,
|
||||
# making it dificult to work out what to save. This module gives an interface
|
||||
# making it difficult to work out what to save. This module gives an interface
|
||||
# to the gimp module's primitive interface, which resembles the shelve module.
|
||||
|
||||
# use cPickle and cStringIO if available
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
(define (script-fu-guides-from-selection image drawable)
|
||||
(let* (
|
||||
(boundries (gimp-selection-bounds image))
|
||||
(boundaries (gimp-selection-bounds image))
|
||||
;; non-empty INT32 TRUE if there is a selection
|
||||
(selection (car boundries))
|
||||
(x1 (cadr boundries))
|
||||
(y1 (caddr boundries))
|
||||
(x2 (cadr (cddr boundries)))
|
||||
(y2 (caddr (cddr boundries)))
|
||||
(selection (car boundaries))
|
||||
(x1 (cadr boundaries))
|
||||
(y1 (caddr boundaries))
|
||||
(x2 (cadr (cddr boundaries)))
|
||||
(y2 (caddr (cddr boundaries)))
|
||||
)
|
||||
|
||||
;; need to check for a selection or we get guides right at edges of the image
|
||||
|
|
|
@ -130,7 +130,7 @@ Version 1.31
|
|||
Patches to the hastily-done version 1.30. Stephen Gildea fixed
|
||||
some things done wrongly, and Richard Russo fixed the makefile
|
||||
for building on Windows. Property lists (heritage from MiniScheme)
|
||||
are now optional and have dissappeared from the interface. They
|
||||
are now optional and have disappeared from the interface. They
|
||||
should be considered as deprecated.
|
||||
|
||||
Version 1.30
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue