Commit 3432f27f authored by Unknown's avatar Unknown Committed by Tobias Ellinghaus

Source comment typos

Found using `codespell -q 3 --skip="*.po,./src/external" -I ../darktable-whitelist.txt`
where whitelist consisted of:
```
cas
childs
ect
eacg
isnt
liquify
nd
nonexistant
substract
thru
```
This PR is actually split up from #1576
.

(cherry picked from commit ca07fcc0)
parent 674e15b3
......@@ -535,7 +535,7 @@ endif(NOT WIN32)
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME DTApplication)
# lets continue into build directories
include(data/supported_extensions.cmake) # this file needs to be included first as it gets ammended in src/
include(data/supported_extensions.cmake) # this file needs to be included first as it gets amended in src/
add_subdirectory(src) # src/ needs to be before data/ so that the correct CSS file gets installed
add_subdirectory(data)
add_subdirectory(doc)
......
......@@ -3,7 +3,7 @@
# License: Public Domain
# - Try to find OpenCL
# This module tries to find an OpenCL implementation on your system. It supports
# AMD / ATI, Apple and NVIDIA implementations, but shoudl work, too.
# AMD / ATI, Apple and NVIDIA implementations, but should work, too.
#
# Once done this will define
# OPENCL_FOUND - system has OpenCL
......
......@@ -5,7 +5,7 @@ if(USE_OPENCL)
endif(USE_OPENCL)
#
# Generate and instal darktable.css
# Generate and install darktable.css
#
if ("${GTK3_VERSION}" VERSION_GREATER "3.19.0")
if ("${GTK3_VERSION}" VERSION_GREATER "3.21.0")
......
......@@ -927,7 +927,7 @@ var publicMethods = {
if(_options.focus) {
// focus causes layout,
// which causes lag during the animation,
// that's why we delay it untill the initial zoom transition ends
// that's why we delay it until the initial zoom transition ends
template.focus();
}
......@@ -1203,7 +1203,7 @@ var publicMethods = {
_shout('beforeResize'); // even may be used for example to switch image sources
// don't re-calculate size on inital size update
// don't re-calculate size on initial size update
if(_containerShiftIndex !== undefined) {
var holder,
......@@ -3521,7 +3521,7 @@ var _historyUpdateTimeout,
if(_numAnimations || _isDragging) {
// changing browser URL forces layout/paint in some browsers, which causes noticable lag during animation
// changing browser URL forces layout/paint in some browsers, which causes noticeable lag during animation
// that's why we update hash only when no animations running
_hashAnimCheckTimeout = setTimeout(_updateHash, 500);
return;
......@@ -3546,7 +3546,7 @@ var _historyUpdateTimeout,
if(_windowLoc.hash.indexOf(newHash) === -1) {
_urlChangedOnce = true;
}
// first time - add new hisory record, then just replace
// first time - add new history record, then just replace
}
var newURL = _windowLoc.href.split('#')[0] + '#' + newHash;
......
......@@ -448,7 +448,7 @@ endif(WIN32)
if(NOT CUSTOM_CFLAGS)
if(BUILD_SSE2_CODEPATHS)
#we MUST always specify our requred instruction set, native might not detect it
#we MUST always specify our required instruction set, native might not detect it
set(DT_REQ_INSTRUCTIONS "-msse2")
endif()
......
......@@ -567,7 +567,7 @@ void dt_bauhaus_init()
// gtk_window_set_modal(GTK_WINDOW(c->popup_window), TRUE);
// gtk_window_set_decorated(GTK_WINDOW(c->popup_window), FALSE);
// for pie menue:
// for pie menu:
// gtk_window_set_position(GTK_WINDOW(c->popup_window), GTK_WIN_POS_MOUSE);// | GTK_WIN_POS_CENTER);
// gtk_window_set_keep_above isn't enough on OS X
......
......@@ -47,7 +47,7 @@ typedef enum _camctl_camera_job_type_t
_JOB_TYPE_SET_PROPERTY_CHOICE,
/** For some reason stopping live view needs to pass an int, not a string. */
_JOB_TYPE_SET_PROPERTY_INT,
/** get's a property from config cache. \todo This shouldn't be a job in jobqueue !? */
/** gets a property from config cache. \todo This shouldn't be a job in jobqueue !? */
_JOB_TYPE_GET_PROPERTY
} _camctl_camera_job_type_t;
......
......@@ -161,7 +161,7 @@ typedef struct dt_camctl_t
typedef struct dt_camctl_listener_t
{
void *data;
/** Invoked when a image is downloaded while in tethered mode or by import. \see dt_camctl_status_t */
/** Invoked when a image is downloaded while in tethered mode or by import. \see dt_camctl_status_t */
void (*control_status)(dt_camctl_status_t status, void *data);
/** Invoked before images are fetched from camera and when tethered capture fetching an image. \note That
......@@ -173,7 +173,7 @@ typedef struct dt_camctl_listener_t
const char *(*request_image_filename)(const dt_camera_t *camera, const char *filename, time_t *exif_time,
void *data);
/** Invoked when a image is downloaded while in tethered mode or by import */
/** Invoked when a image is downloaded while in tethered mode or by import */
void (*image_downloaded)(const dt_camera_t *camera, const char *filename, void *data);
/** Invoked when a image is found on storage.. such as from dt_camctl_get_previews(), if 0 is returned the
......@@ -202,7 +202,7 @@ typedef enum dt_camera_preview_flags_t
{
/** No image data */
CAMCTL_IMAGE_NO_DATA = 0,
/**Get a image preview. */
/**Get an image preview. */
CAMCTL_IMAGE_PREVIEW_DATA = 1,
/**Get the image exif */
CAMCTL_IMAGE_EXIF_DATA = 2
......
......@@ -134,7 +134,7 @@ typedef struct dt_collection_t
} dt_collection_t;
/** instansiates a collection context, if clone equals NULL default query is constructed. */
/** instantiates a collection context, if clone equals NULL default query is constructed. */
const dt_collection_t *dt_collection_new(const dt_collection_t *clone);
/** frees a collection context. */
void dt_collection_free(const dt_collection_t *collection);
......
......@@ -152,7 +152,7 @@ float *d3_np_fs(int n, float a[], float b[])
The cubic spline is a piecewise cubic polynomial. The intervals
are determined by the "knots" or abscissas of the data to be
interpolated. The cubic spline has continous first and second
interpolated. The cubic spline has continuous first and second
derivatives over the entire interval of interpolation.
For any point T in the interval T(IVAL), T(IVAL+1), the form of
......@@ -683,7 +683,7 @@ int CurveDataSample(CurveData *curve, CurveSample *sample)
float y[20] = { 0 };
float *ypp;
// The box points are what the anchor points are relative
// The box points are what the anchor points are relative
// to so...
float box_width = curve->m_max_x - curve->m_min_x;
......@@ -718,7 +718,7 @@ int CurveDataSample(CurveData *curve, CurveSample *sample)
int minY = curve->m_min_y * (sample->m_outputRes - 1);
// returns an array of second derivatives used to calculate the spline curve.
// this is a malloc'd array that needs to be freed when done.
// The setings currently calculate the natural spline, which closely matches
// The settings currently calculate the natural spline, which closely matches
// camera curve output in raw files.
ypp = interpolate_set(n, x, y, curve->m_spline_type);
if(ypp == NULL) return CT_ERROR;
......
......@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
part of this file is based on nikon_curve.h from UFraw
part of this file is based on nikon_curve.h from UFraw
Copyright 2004-2008 by Shawn Freeman, Udi Fuchs
*/
......
......@@ -338,7 +338,7 @@ int dt_init(int argc, char *argv[], const gboolean init_gui, const gboolean load
int sse2_supported = 0;
#ifdef HAVE_BUILTIN_CPU_SUPPORTS
// NOTE: _may_i_use_cpu_feature() looks better, but only avaliable in ICC
// NOTE: _may_i_use_cpu_feature() looks better, but only available in ICC
__builtin_cpu_init();
sse2_supported = __builtin_cpu_supports("sse2");
#else
......
......@@ -285,7 +285,7 @@ static gboolean _migrate_schema(dt_database_t *db, int version)
i = 0;
}
// find the next free ammended version of name
// find the next free amended version of name
sqlite3_prepare_v2(db->handle, "SELECT name FROM main.presets WHERE name = ?1 || ' (' || ?2 || ')' AND "
"operation = ?3 AND op_version = ?4",
-1, &innerstmt, NULL);
......
......@@ -1849,7 +1849,7 @@ static GList *read_history_v2(Exiv2::XmpData &xmpData, const char *filename)
{
// AFAICT this can't happen with regular exiv2 parsed XMP data, but better safe than sorry.
// it can happen though when constructing things in a unusual order and then passing it to us without
// serializing it inbetween
// serializing it in between
current_entry = (history_entry_t *)g_list_nth_data(history_entries, n - 1); // XMP starts counting at 1!
}
......@@ -2795,7 +2795,7 @@ void dt_exif_init()
Exiv2::LogMsg::setHandler(&dt_exif_log_handler);
Exiv2::XmpParser::initialize();
// this has te stay with the old url (namespace already propagated outside dt)
// this has to stay with the old url (namespace already propagated outside dt)
Exiv2::XmpProperties::registerNs("http://darktable.sf.net/", "darktable");
Exiv2::XmpProperties::registerNs("http://ns.adobe.com/lightroom/1.0/", "lr");
Exiv2::XmpProperties::registerNs("http://cipa.jp/exif/1.0/", "exifEX");
......
......@@ -234,7 +234,7 @@ int dt_film_import(const char *dirname)
if(sqlite3_step(stmt) == SQLITE_ROW) film->id = sqlite3_column_int(stmt, 0);
sqlite3_finalize(stmt);
/* if we didn't find a id, lets instansiate a new filmroll */
/* if we didn't find an id, lets instantiate a new filmroll */
if(film->id <= 0)
{
char datetime[20];
......
......@@ -168,7 +168,7 @@ gboolean dt_image_safe_remove(const int32_t imgid)
else
{
// finaly check if we have a .xmp for the local copy. If no modification done on the local copy it is safe
// finally check if we have a .xmp for the local copy. If no modification done on the local copy it is safe
// to remove.
g_strlcat(pathname, ".xmp", sizeof(pathname));
return !g_file_test(pathname, G_FILE_TEST_EXISTS);
......@@ -721,7 +721,7 @@ void dt_image_read_duplicates(const uint32_t id, const char *filename)
}
else
{
// we need to derive the version number from the filename
// we need to derive the version number from the filename
gchar *c3 = xmpfilename + strlen(xmpfilename)
- 5; // skip over .xmp extension; position c3 at character before the '.'
......@@ -1170,7 +1170,7 @@ int32_t dt_image_move(const int32_t imgid, const int32_t filmid)
}
g_list_free(dup_list);
// finaly, rename local copy if any
// finally, rename local copy if any
if(g_file_test(copysrcpath, G_FILE_TEST_EXISTS))
{
// get new name
......
......@@ -101,7 +101,7 @@ typedef struct dt_imageio_module_format_t
size_t (*params_size)(struct dt_imageio_module_format_t *self);
void *(*get_params)(struct dt_imageio_module_format_t *self);
void (*free_params)(struct dt_imageio_module_format_t *self, dt_imageio_module_data_t *data);
/* resets the gui to the paramters as given here. return != 0 on fail. */
/* resets the gui to the parameters as given here. return != 0 on fail. */
int (*set_params)(struct dt_imageio_module_format_t *self, const void *params, const int size);
/* returns the mime type of the exported image. */
......
......@@ -218,7 +218,7 @@ dt_imageio_retval_t dt_imageio_open_tiff(dt_image_t *img, const char *filename,
return DT_IMAGEIO_CACHE_FULL;
}
/* dont depend on planar config if spp == 1 */
/* don't depend on planar config if spp == 1 */
if(t.spp > 1 && config != PLANARCONFIG_CONTIG)
{
fprintf(stderr, "[tiff_open] error: planar config other than contig is not supported.\n");
......
......@@ -45,7 +45,7 @@ void dt_import_session_set_time(struct dt_import_session_t *self, time_t time);
/** \brief set the timestamp for EXIF variables */
void dt_import_session_set_exif_time(struct dt_import_session_t *self, time_t exif_time);
/** \brief set the orginal filename
/** \brief set the original filename
\remark This is used to expand $(FILE_X) variables. */
void dt_import_session_set_filename(struct dt_import_session_t *self, const char *filename);
......
......@@ -1133,7 +1133,7 @@ const struct dt_interpolation *dt_interpolation_new(enum dt_interpolation_type t
/** Prepares a 1D resampling plan
*
* This consists of the following informations
* This consists of the following information
* <ul>
* <li>A list of lengths that tell how many pixels are relevant for the
* next output</li>
......@@ -1164,7 +1164,7 @@ const struct dt_interpolation *dt_interpolation_new(enum dt_interpolation_type t
* done with the plan.
* @param pkernel [out] Array of filter kernel taps
* @param pindex [out] Array of sample indexes to be used for applying each kernel tap
* arrays of informations
* arrays of information
* @param pmeta [out] Array of int triplets (length, kernel, index) telling where to start for an arbitrary
*out position meta[3*out]
* @return 0 for success, !0 for failure
......
......@@ -63,7 +63,7 @@ struct dt_interpolation
* This function computes a single interpolated sample. Implied costs are:
* <ul>
* <li>Horizontal filtering kernel computation</li>
* <li>Vertical filtering kernel computation</li>
* <li>Vertical filtering kernel computation</li>
* <li>Sample computation</li>
* </ul>
*
......
......@@ -717,7 +717,7 @@ void local_laplacian_internal(
const float l1 = ll_laplacian(buf[hi][l+1], buf[hi][l], i, j, pw, ph);
output[l][j*pw+i] += l0 * (1.0f-a) + l1 * a;
// we could do this to save on memory (no need for finest buf[][]).
// unfortunately it results in a quite noticable loss of sharpness, i think
// unfortunately it results in a quite noticeable loss of sharpness, i think
// the extra level is worth it.
// else if(l == 0) // use finest scale from input to not amplify noise (and use less memory)
// output[l][j*pw+i] += ll_laplacian(padded[l+1], padded[l], i, j, pw, ph);
......
......@@ -1124,7 +1124,7 @@ static void _init_8(uint8_t *buf, uint32_t *width, uint32_t *height, float *isca
char filename[PATH_MAX] = { 0 };
gboolean from_cache = TRUE;
/* do not even try to process file if it isnt available */
/* do not even try to process file if it isn't available */
dt_image_full_path(imgid, filename, sizeof(filename), &from_cache);
if(!*filename || !g_file_test(filename, G_FILE_TEST_EXISTS))
{
......
......@@ -221,7 +221,7 @@ int dt_opencl_get_max_work_item_sizes(const int dev, size_t *sizes);
int dt_opencl_get_work_group_limits(const int dev, size_t *sizes, size_t *workgroupsize,
unsigned long *localmemsize);
/** return max workgroup size for a specifc kernel */
/** return max workgroup size for a specific kernel */
int dt_opencl_get_kernel_work_group_size(const int dev, const int kernel, size_t *kernelworkgroupsize);
/** attach arg. */
......
......@@ -19,7 +19,7 @@
/*
* this is a simple PDF writer, capable of creating multi page PDFs with embedded images.
* it is NOT meant to be a full fledged PDF library, and shall never turn into something like that!
* see the main() fucntion in pdf.c to see an example how to use this.
* see the main() function in pdf.c to see an example how to use this.
*/
#pragma once
......
......@@ -459,10 +459,10 @@ PRE_ALWAYS static __m128i mm_recursion(__m128i *a, __m128i *b, __m128i c, __m128
/**
* This function represents the recursion formula.
* @param a a 128-bit part of the interal state array
* @param b a 128-bit part of the interal state array
* @param c a 128-bit part of the interal state array
* @param d a 128-bit part of the interal state array
* @param a a 128-bit part of the internal state array
* @param b a 128-bit part of the internal state array
* @param c a 128-bit part of the internal state array
* @param d a 128-bit part of the internal state array
* @param mask 128-bit mask
* @return output
*/
......
......@@ -174,7 +174,7 @@ static LONG WINAPI dt_toplevel_exception_handler(PEXCEPTION_POINTERS pExceptionI
}
else
{
gchar *exception_message = g_strdup_printf("An unhandled exception occured.\nBacktrace will be written to: %s "
gchar *exception_message = g_strdup_printf("An unhandled exception occurred.\nBacktrace will be written to: %s "
"after you click on the OK button.\nIf you report this issue, "
"please share this backtrace with the developers.\n",
name_used);
......
......@@ -40,11 +40,11 @@ gboolean dt_tag_new(const char *name, guint *tagid);
gboolean dt_tag_new_from_gui(const char *name, guint *tagid);
// read/import tags from a txt file as written by Lightroom. returns the number of imported tags
// or -1 if an error occured.
// or -1 if an error occurred.
ssize_t dt_tag_import(const char *filename);
// export all tags to a txt file as written by Lightroom. returns the number of exported tags
// or -1 if an error occured.
// or -1 if an error occurred.
ssize_t dt_tag_export(const char *filename);
/** get the name of specified id */
......
......@@ -282,7 +282,7 @@ static char *get_base_value(dt_variables_params_t *params, char **variable)
// See here for bash examples and documentation:
// http://www.tldp.org/LDP/abs/html/parameter-substitution.html
// https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html
// the descriptions in the comments are refering to the bash behaviour, dt doesn't do it 100% like that!
// the descriptions in the comments are referring to the bash behaviour, dt doesn't do it 100% like that!
static char *variable_get_value(dt_variables_params_t *params, char **variable)
{
// invariant: the variable starts with "$(" which we can skip
......
......@@ -296,7 +296,7 @@ static const char *_camera_request_image_filename(const dt_camera_t *camera, con
struct dt_camera_shared_t *shared;
shared = (dt_camera_shared_t *)data;
/* update import session with orginal filename so that $(FILE_EXTENSION)
/* update import session with original filename so that $(FILE_EXTENSION)
* and alikes can be expanded. */
dt_import_session_set_filename(shared->session, filename);
if(exif_time)
......
......@@ -214,7 +214,7 @@ static void dt_film_import1(dt_job_t *job, dt_film_t *film)
if(cfr && cfr->dir)
{
/* check if we can find a gpx data file to be auto applied
to images in the jsut imported filmroll */
to images in the just imported filmroll */
g_dir_rewind(cfr->dir);
const gchar *dfn = NULL;
while((dfn = g_dir_read_name(cfr->dir)) != NULL)
......
......@@ -3378,7 +3378,7 @@ int dt_develop_blend_legacy_params(dt_iop_module_t *module, const void *const ol
{
// first deal with all-zero parmameter sets, regardless of version number.
// these occured in previous
// these occurred in previous
// darktable versions when modules
// without blend support stored zero-initialized data in history stack. that's
// no problem unless the module
......
......@@ -374,7 +374,7 @@ gboolean dt_develop_blend_params_is_all_zero(const void *params, size_t length);
/** update blendop params from older versions */
int dt_develop_blend_legacy_params(dt_iop_module_t *module, const void *const old_params,
const int old_version, void *new_params, const int new_version,
const int lenght);
const int length);
/** gui related stuff */
void dt_iop_gui_init_blendif(GtkBox *blendw, dt_iop_module_t *module);
......
......@@ -1209,7 +1209,7 @@ void dt_iop_gui_init_blendif(GtkBox *blendw, dt_iop_module_t *module)
bd->numberstops[6] = sizeof(_gradient_gray) / sizeof(dt_iop_gui_blendif_colorstop_t);
break;
default:
assert(FALSE); // blendif not supported for RAW, which is already catched upstream; we should not get
assert(FALSE); // blendif not supported for RAW, which is already caught upstream; we should not get
// here
}
......
......@@ -1503,7 +1503,7 @@ void dt_dev_average_delay_update(const dt_times_t *start, uint32_t *average_dela
}
/** duplicate a existant module */
/** duplicate a existent module */
dt_iop_module_t *dt_dev_module_duplicate(dt_develop_t *dev, dt_iop_module_t *base, int priority)
{
// we create the new module
......
......@@ -343,9 +343,9 @@ void dt_dev_masks_selection_change(dt_develop_t *dev, int selectid, int throw_ev
/*
* multi instances
*/
/** duplicate a existant module */
/** duplicate a existent module */
struct dt_iop_module_t *dt_dev_module_duplicate(dt_develop_t *dev, struct dt_iop_module_t *base, int priority);
/** remove an existant module */
/** remove an existent module */
void dt_dev_module_remove(dt_develop_t *dev, struct dt_iop_module_t *module);
/** update "show" values of the multi instance part (show_move, show_delete, ...) */
void dt_dev_module_update_multishow(dt_develop_t *dev, struct dt_iop_module_t *module);
......
......@@ -2031,7 +2031,7 @@ dt_masks_point_group_t *dt_masks_group_add_form(dt_masks_form_t *grp, dt_masks_f
if(!(grp->type & DT_MASKS_GROUP)) return NULL;
// either the form to add is not a group, so no risk
// or we go throught all points of form to see if we find a ref to grp->formid
// or we go through all points of form to see if we find a ref to grp->formid
if(!(form->type & DT_MASKS_GROUP) || _find_in_group(form, grp->formid) == 0)
{
dt_masks_point_group_t *grpt = malloc(sizeof(dt_masks_point_group_t));
......@@ -2217,7 +2217,7 @@ static void _cleanup_unused_recurs(dt_develop_t *dev, int formid, int *used, int
if(used[i] == formid) break;
}
// if the form is a group, we iterate throught the sub-forms
// if the form is a group, we iterate through the sub-forms
dt_masks_form_t *form = dt_masks_get_from_id(dev, formid);
if(form && (form->type & DT_MASKS_GROUP))
{
......@@ -2237,7 +2237,7 @@ void dt_masks_cleanup_unused(dt_develop_t *dev)
guint nbf = g_list_length(dev->forms);
int *used = calloc(nbf, sizeof(int));
// now we iterate throught all iop to find used forms
// now we iterate through all iop to find used forms
GList *iops = g_list_first(dev->iop);
while(iops)
{
......
......@@ -399,9 +399,9 @@ static int _path_find_self_intersection(dt_masks_dynbuf_t *inter, int nb_corners
return 0;
}
// we'll iterate throught all border points, but we can't start at point[0]
// we'll iterate through all border points, but we can't start at point[0]
// because it may be in a self-intersected section
// so we choose a point where we are sure there's no intersection :
// so we choose a point where we are sure there's no intersection:
// one from border shape extrema (here x_max)
int lastx = border[(posextr[1] - 1) * 2];
int lasty = border[(posextr[1] - 1) * 2 + 1];
......@@ -2199,8 +2199,8 @@ static int dt_path_get_mask(dt_iop_module_t *module, dt_dev_pixelpipe_iop_t *pie
// we add the point
if(just_change_dir && ii == i)
{
// if we have changed the direction, we have to be carefull that point can be at the same place
// as the previous one , especially on sharp edges
// if we have changed the direction, we have to be careful that point can be at the same place
// as the previous one, especially on sharp edges
const size_t idx = (size_t)(yy - (*posy)) * (*width) + xx - (*posx);
assert(idx < bufsize);
float v = (*buffer)[idx];
......
......@@ -47,7 +47,7 @@ typedef struct _GtkDarktableButtonClass
GType dtgtk_button_get_type(void);
/** Instansiate a new darktable button control passing paint function as content */
/** instantiate a new darktable button control passing paint function as content */
GtkWidget *dtgtk_button_new(DTGTKCairoPaintIconFunc paint, gint paintflags);
/** set the paint function for a button */
void dtgtk_button_set_paint(GtkDarktableButton *button, DTGTKCairoPaintIconFunc paint, gint paintflags);
......
......@@ -116,7 +116,7 @@ typedef struct _gradient_slider_stop_t
GType dtgtk_gradient_slider_get_type(void);
GType dtgtk_gradient_slider_multivalue_get_type(void);
/** Instansiate a new darktable gradient slider control */
/** instantiate a new darktable gradient slider control */
GtkWidget *dtgtk_gradient_slider_new();
GtkWidget *dtgtk_gradient_slider_new_with_color(GdkRGBA start, GdkRGBA end);
......@@ -149,7 +149,7 @@ void dtgtk_gradient_slider_set_margins(GtkDarktableGradientSlider *gslider, gint
void dtgtk_gradient_slider_set_increment(GtkDarktableGradientSlider *gslider, gdouble value);
/** Instansiate a new darktable gradient slider multivalue control */
/** instantiate a new darktable gradient slider multivalue control */
GtkWidget *dtgtk_gradient_slider_multivalue_new(gint positions);
GtkWidget *dtgtk_gradient_slider_multivalue_new_with_color(GdkRGBA start, GdkRGBA end, gint positions);
......
......@@ -40,7 +40,7 @@ typedef struct _GtkDarktableIconClass
GType dtgtk_icon_get_type(void);
/** Instansiate a new darktable icon control passing paint function as content */
/** instantiate a new darktable icon control passing paint function as content */
GtkWidget *dtgtk_icon_new(DTGTKCairoPaintIconFunc paint, gint paintflags);
/** set the paint function for a icon */
......
......@@ -43,7 +43,7 @@ typedef struct _GtkDarktableToggleButtonClass
GType dtgtk_togglebutton_get_type(void);
/** Instansiate a new darktable toggle button */
/** instantiate a new darktable toggle button */
GtkWidget *dtgtk_togglebutton_new(DTGTKCairoPaintIconFunc paint, gint paintflag);
/** Set the paint function and paint flags */
......
......@@ -1934,7 +1934,7 @@ public:
};
/*! \class Image
* \brief Base class interface for all images.
* \brief Base class interface for all images.
*/
class Image : public Memory
{
......
......@@ -42,7 +42,7 @@ static GList *_gui_hist_get_active_items(dt_gui_hist_dialog_t *d)
{
GList *result = NULL;
/* run thru all items and add active ones to result */
/* run through all items and add active ones to result */
GtkTreeIter iter;
GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->items));
if(gtk_tree_model_get_iter_first(model, &iter))
......@@ -61,7 +61,7 @@ static GList *_gui_hist_get_active_items(dt_gui_hist_dialog_t *d)
static void _gui_hist_set_items(dt_gui_hist_dialog_t *d, gboolean active)
{
/* run thru all items and set active status */
/* run through all items and set active status */
GtkTreeIter iter;
GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(d->items));
if(gtk_tree_model_get_iter_first(model, &iter))
......
......@@ -76,7 +76,7 @@ static int _single_selected_imgid()
void _gui_styles_get_active_items(dt_gui_styles_dialog_t *sd, GList **enabled, GList **update)
{
/* run thru all items and add active ones to result */
/* run through all items and add active ones to result */
GtkTreeIter iter;
GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(sd->items));
int num = 0, update_num = 0;
......
......@@ -61,7 +61,7 @@ void *legacy_params(struct dt_imageio_module_format_t *self, const void *const o
size_t params_size(struct dt_imageio_module_format_t *self);
void *get_params(struct dt_imageio_module_format_t *self);
void free_params(struct dt_imageio_module_format_t *self, struct dt_imageio_module_data_t *data);
/* resets the gui to the paramters as given here. return != 0 on fail. */
/* resets the gui to the parameters as given here. return != 0 on fail. */
int set_params(struct dt_imageio_module_format_t *self, const void *params, const int size);
/* returns the mime type of the exported image. */
......
......@@ -96,7 +96,7 @@ typedef enum FBAlbumPrivacyPolicy
/**
* Represents informations about an album
* Represents information about an album
*/
typedef struct FBAlbum
{
......@@ -119,7 +119,7 @@ static void fb_album_destroy(FBAlbum *album)
}
/**
* Represents informations about an account
* Represents information about an account
*/
typedef struct FBAccountInfo
{
......@@ -552,7 +552,7 @@ static const gchar *fb_upload_photo_to_album(FBContext *ctx, gchar *albumid, gch
/**
* @see https://developers.facebook.com/docs/reference/api/user/
* @return basic informations about the account
* @return basic information about the account
*/
static FBAccountInfo *fb_get_account_info(FBContext *ctx)
{
......
......@@ -82,7 +82,7 @@ typedef enum PicasaAlbumPrivacyPolicy
} PicasaAlbumPrivacyPolicy;
/**
* Represents informations about an album
* Represents information about an album
*/
typedef struct PicasaAlbum
{
......@@ -105,7 +105,7 @@ static void picasa_album_destroy(PicasaAlbum *album)
}
/**
* Represents informations about an account
* Represents information about an account
*/
typedef struct PicasaAccountInfo
{
......@@ -196,7 +196,7 @@ static gchar *picasa_get_user_refresh_token(PicasaContext *ctx);
//////////////////////////// curl requests related functions
/** Grow and fill _buffer_t with recieved data... */
/** Grow and fill _buffer_t with received data... */
static size_t _picasa_api_buffer_write_func(void *ptr, size_t size, size_t nmemb, void *stream)
{
_buffer_t *buffer = (_buffer_t *)stream;
......@@ -629,7 +629,7 @@ static const gchar *picasa_upload_photo_to_album(PicasaContext *ctx, gchar *albu
/**
* @see https://developers.google.com/accounts/docs/OAuth2InstalledApp#callinganapi
* @return basic informations about the account
* @return basic information about the account
*/
static PicasaAccountInfo *picasa_get_account_info(PicasaContext *ctx)
{
......
......@@ -52,8 +52,8 @@
#define ROTATION_RANGE 10 // allowed min/max default range for rotation parameter
#define ROTATION_RANGE_SOFT 20 // allowed min/max range for rotation parameter with manual adjustment
#define LENSSHIFT_RANGE 0.5 // allowed min/max default range for lensshift paramters
#define LENSSHIFT_RANGE_SOFT 1 // allowed min/max range for lensshift paramters with manual adjustment
#define LENSSHIFT_RANGE 0.5 // allowed min/max default range for lensshift parameters
#define LENSSHIFT_RANGE_SOFT 1 // allowed min/max range for lensshift parameters with manual adjustment
#define SHEAR_RANGE 0.2 // allowed min/max range for shear parameter
#define SHEAR_RANGE_SOFT 0.5 // allowed min/max range for shear parameter with manual adjustment
#define MIN_LINE_LENGTH 5 // the minimum length of a line in pixels to be regarded as relevant
......@@ -67,7 +67,7 @@
#define LSD_DENSITY_TH 0.7 // LSD: minimal density of region points in rectangle
#define LSD_N_BINS 1024 // LSD: number of bins in pseudo-ordering of gradient modulus
#define LSD_GAMMA 0.45 // gamma correction to apply on raw images prior to line detection
#define RANSAC_RUNS 400 // how many interations to run in ransac
#define RANSAC_RUNS 400 // how many iterations to run in ransac
#define RANSAC_EPSILON 2 // starting value for ransac epsilon (in -log10 units)
#define RANSAC_EPSILON_STEP 1 // step size of epsilon optimization (log10 units)
#define RANSAC_ELIMINATION_RATIO 60 // percentage of lines we try to eliminate as outliers
......@@ -2126,7 +2126,7 @@ static dt_iop_ashift_nmsresult_t nmsfit(dt_iop_module_t *module, dt_iop_ashift_p
fit.lensshift_h = isnan(fit.lensshift_h) ? ilogit(params[pcount++], -fit.lensshift_h_range, fit.lensshift_h_range) : fit.lensshift_h;
fit.shear = isnan(fit.shear) ? ilogit(params[pcount++], -fit.shear_range, fit.shear_range) : fit.shear;
#ifdef ASHIFT_DEBUG
printf("params after optimization (%d interations): rotation %f, lensshift_v %f, lensshift_h %f, shear %f\n",
printf("params after optimization (%d iterations): rotation %f, lensshift_v %f, lensshift_h %f, shear %f\n",
iter, fit.rotation, fit.lensshift_v, fit.lensshift_h, fit.shear);
#endif
......@@ -2456,7 +2456,7 @@ static void do_crop(dt_iop_module_t *module, dt_iop_ashift_params_t *p)
if(A == 0.0f) goto failed;
// we need the half diagonal of that rectangle (this is in output image dimensions);
// no need to check for division by zero here as this case implies A == 0.0f, catched above
// no need to check for division by zero here as this case implies A == 0.0f, caught above
const float d = sqrt(A / (2.0f * sin(2.0f * cropfit.alpha)));
// the rectangle's center in input image (homogeneous) coordinates
......@@ -3170,7 +3170,7 @@ void gui_post_expose(struct dt_iop_module_t *self, cairo_t *cr, int32_t width, i
int closeup = dt_control_get_dev_closeup();
float zoom_scale = dt_dev_get_zoom_scale(dev, zoom, closeup ? 2 : 1, 1);
// we draw the cropping area; we need x_off/y_off/width/height which is only availabe
// we draw the cropping area; we need x_off/y_off/width/height which is only available
// after g->buf has been processed
if(g->buf && (p->cropmode != ASHIFT_CROP_OFF) && self->enabled)
{
......