* \author Author1
* \author Author2
*
- * Optionaly detailed description of this file
+ * Optionally detailed description of this file
* on more lines.
*/
As you can see above, parentheses are closed to inside, i.e. " (blah blah) "
In "function(<var>)" there are no space before '('.
You MAY use more tabs/spaces than you OUGHT TO (according to this CodingStyle), if
- it makes your code nicer in being verticaly indented.
+ it makes your code nicer in being vertically indented.
Variables declarations should be followed by a blank line and should always be
at the start of the block.
RIGHT [int] - Move "camera" right by the specified amount. Default=1
ROTATE_90 - Rotate image 90 degrees clockwise.
ROTATE_90_CC - Rotate image 90 degrees counter-clockwise.
-SET_INV_ZOOM [int] - Zoom to 1/Nx. Deafult=1x
+SET_INV_ZOOM [int] - Zoom to 1/Nx. Default=1x
SET_ZOOM [int] - Zoom to Nx. Default=1x
UP [int] - Move "camera" up by the specified amount. Default=1
ZOOM_IN [int] - Zoom in. Value specifies the amount of zoom.
gdouble latitude;
gdouble longitude;
/* Latitude and longitude are stored in the config file as an integer of
- * (actual value * 1,000,000). There is no READ_DOUBLE utilty function.
+ * (actual value * 1,000,000). There is no READ_DOUBLE utility function.
*/
gint int_latitude = 54000000;
gint int_longitude = -4000000;
* @param attribute_values
*
* Called from rcfile when processing geeqierc.xml on start-up.
- * It is neccesary to set the bar_sort_enabled flag because
+ * It is necessary to set the bar_sort_enabled flag because
* the sort manager and desktop files are set up in the idle loop, and
* setup is not yet completed during initialisation.
* The flag is checked in layout_editors_reload_idle_cb.
/**
* @brief Creates a text list of the image paths of the contents of a Collection
- * @param[in] name The name of the collection, with or wihout extension
+ * @param[in] name The name of the collection, with or without extension
* @param[inout] contents A GString to which the image paths are appended
*
*
/**
* @brief Returns a list of filedatas of the contents of a Collection
- * @param[in] name The name of the collection, with or wihout extension
+ * @param[in] name The name of the collection, with or without extension
*
*
*/
ed - pointer that can be used for editor_resume/editor_skip or NULL if all files were already processed
flags - flags above
-list - list of procesed FileData structures, typically single file or whole list passed to start_editor_*
+list - list of processed FileData structures, typically single file or whole list passed to start_editor_*
data - generic pointer
*/
typedef gint (*EditorCallback) (gpointer ed, EditorFlags flags, GList *list, gpointer data);
* Additional tag formats should be added to the proper
* location in ExifKnownMarkersList[].
*
- * Human readable ouput (that needs additional processing of data to
+ * Human readable output (that needs additional processing of data to
* be useable) can be defined by adding a key to ExifFormattedList[],
* then handling that tag in the function exif_get_formatted_by_key().
* The human readable formatted keys must begin with the character 'f'.
COPY
MOVE - path is changed, name may be changed too
RENAME - path remains unchanged, name is changed
- extension should remain (FIXME should we allow editing extension? it will make problems wth grouping)
+ extension should remain (FIXME should we allow editing extension? it will make problems with grouping)
sidecar names are changed too, extensions are not changed
DELETE
UPDATE - file size, date or grouping has been changed
}
/* remove sidecars from the list,
- they can be still acessed via main_fd->sidecar_files */
+ they can be still accessed via main_fd->sidecar_files */
work = list;
while (work)
{
}
-/* DONE and ERROR are emited only once, thus they can have normal priority
+/* DONE and ERROR are emitted only once, thus they can have normal priority
PERCENT and AREA_READY should be processed ASAP
*/
if (il->idle_priority > G_PRIORITY_DEFAULT_IDLE)
{
- /* low prio, wait untill high prio tasks finishes */
+ /* low prio, wait until high prio tasks finishes */
image_loader_thread_wait_high();
}
else
{
if (il->idle_priority > G_PRIORITY_DEFAULT_IDLE)
{
- /* low prio, wait untill high prio tasks finishes */
+ /* low prio, wait until high prio tasks finishes */
image_loader_thread_wait_high();
}
cont = image_loader_continue(il);
if ((type & NOTIFY_REREAD) && fd == imd->image_fd)
{
/* there is no need to reload on NOTIFY_CHANGE,
- modified files should be detacted anyway and NOTIFY_REREAD should be recieved
+ modified files should be detacted anyway and NOTIFY_REREAD should be received
or they are removed from the filelist completely on "move" and "delete"
*/
DEBUG_1("Notify image: %s %04x", fd->path, type);
image_attach_window(lw->image, lw->window, NULL, GQ_APPNAME, FALSE);
- /* do not hilight selected image in SPLIT_NONE */
- /* maybe the image should be selected always and hilight should be controled by
+ /* do not highlight selected image in SPLIT_NONE */
+ /* maybe the image should be selected always and highlight should be controlled by
another image option */
if (lw->split_mode != SPLIT_NONE)
image_select(lw->split_images[i], TRUE);
void lua_init(void)
{
L = luaL_newstate();
- luaL_openlibs(L); /* Open all libraries for lua programms */
+ luaL_openlibs(L); /* Open all libraries for lua programs */
/* Now create custom methodes to do something */
static const luaL_Reg meta_methods[] = {
/**
* md5_update: add a buffer to md5 hash computation
- * @ctx: context object used for md5 computaion
+ * @ctx: context object used for md5 computation
* @buf: buffer to add
* @len: buffer length
*
* 1 0* (64-bit count of bits processed, MSB-first)
*/
/**
- * md5_final: copy the final md5 hash to a bufer
+ * md5_final: copy the final md5 hash to a buffer
* @digest: 16 bytes buffer
* @ctx: context containing the calculated md5
*
- * copy the final md5 hash to a bufer
+ * copy the final md5 hash to a buffer
**/
void
md5_final(MD5Context *ctx, guchar digest[16])
const GList *cache_entry;
if (!fd) return NULL;
- /* unwritten data overide everything */
+ /* unwritten data override everything */
if (fd->modified_xmp && format == METADATA_PLAIN)
{
list = g_hash_table_lookup(fd->modified_xmp, key);
if (!end)
break;
- /* Search for optionnal modifiers
+ /* Search for optional modifiers
* %name:99:extra% -> name = "name", limit=99, extra = "extra"
*/
for (p = start + 1; p < end; p++)
/*
*-----------------------------------------------------------------------------
- * peformance warnings
+ * performance warnings
*-----------------------------------------------------------------------------
*/
gdouble norm_center_x; /* coordinates of viewport center in the image, in range 0.0 - 1.0 */
gdouble norm_center_y; /* these coordinates are used for PR_SCROLL_RESET_NOCHANGE and should be preserved over periods with NULL pixbuf */
- gdouble subpixel_x_scroll; /* subpixel scroll alignment, used to prevent acumulation of rounding errors */
+ gdouble subpixel_x_scroll; /* subpixel scroll alignment, used to prevent accumulation of rounding errors */
gdouble subpixel_y_scroll;
gdouble zoom_min;
/*
*-----------------------------------------------------------------------------
- * sync progam to config window routine (private)
+ * sync program to config window routine (private)
*-----------------------------------------------------------------------------
*/
/*
*-----------------------------------------------------------------------------
- * write fuctions for elements (private)
+ * write functions for elements (private)
*-----------------------------------------------------------------------------
*/
pixbuf = image_loader_get_pixbuf(sd->img_loader);
- /* Used to determnine if image is broken
+ /* Used to determine if image is broken
*/
if (cd && !pixbuf)
{
/** fputs() wrapper, set ssi->err to errno on error. If ssi->err is set when
- * called, it immediatly returns EOF.
+ * called, it immediately returns EOF.
*/
gint
secure_fputs(SecureSaveInfo *ssi, const gchar *s)
/** fputc() wrapper, set ssi->err to errno on error. If ssi->err is set when
- * called, it immediatly returns EOF.
+ * called, it immediately returns EOF.
*/
gint
secure_fputc(SecureSaveInfo *ssi, gint c)
}
/** fprintf() wrapper, set ssi->err to errno on error and return a negative
- * value. If ssi->err is set when called, it immediatly returns -1.
+ * value. If ssi->err is set when called, it immediately returns -1.
*/
gint
secure_fprintf(SecureSaveInfo *ssi, const gchar *format, ...)
}
/** fwrite() wrapper, set ssi->err to errno on error and return a value less than
- * the number of elements to write. If ssi->err is set when called, it immediatly returns 0.
+ * the number of elements to write. If ssi->err is set when called, it immediately returns 0.
*/
size_t
secure_fwrite(gconstpointer ptr, size_t size, size_t nmemb, SecureSaveInfo *ssi)
*
* Note: Code has been modified to fit the style of the other code, and to use
* a few more glib-isms.
- * 08-28-2000: Updated to return a gdk_pixbuf, Imlib is dieing a death here.
+ * 08-28-2000: Updated to return a gdk_pixbuf, Imlib is dying a death here.
*/
#define XV_BUFFER 2048
}
if (!path)
{
- /* if invalid UTF-8, text probaby still in original form, so just copy it */
+ /* if invalid UTF-8, text probably still in original form, so just copy it */
path = g_strdup(utf8);
}
{
if (path[s] == G_DIR_SEPARATOR && path[s+1] == '.')
{
- /* /. occurence, let's see more */
+ /* /. occurrence, let's see more */
gint p = s + 2;
if (path[p] == G_DIR_SEPARATOR || path[p] == '\0')
gint *x, gint *y, gint *width, gint *height);
/* return 0 = row visible, -1 = row is above, 1 = row is below visible region
- * if fully_visible is TRUE, the bahavior changes to return -1/1 if _any_ part of the cell is out of view */
+ * if fully_visible is TRUE, the behavior changes to return -1/1 if _any_ part of the cell is out of view */
gint tree_view_row_get_visibility(GtkTreeView *widget, GtkTreeIter *iter, gboolean fully_visible);
/* scrolls to make row visible, if necessary
exit
fi
-# Parse the comand line
+# Parse the command line
OPTS=$(getopt -o vhc:t:b:d: --long version,help,commit:,tag:,back:,debug: -- "$@")
eval set -- "$OPTS"