mirror of https://github.com/GNOME/gimp.git
parent
3ce2c7e3f9
commit
44d10e458c
|
@ -647,7 +647,7 @@ gimp_brush_load_abr_brush_v12 (GDataInputStream *input,
|
|||
case 1: /* computed brush */
|
||||
/* FIXME: support it!
|
||||
*
|
||||
* We can probabaly feed the info into the generated brush code
|
||||
* We can probably feed the info into the generated brush code
|
||||
* and get a usable brush back. It seems to support the same
|
||||
* types -akl
|
||||
*/
|
||||
|
|
|
@ -166,7 +166,7 @@ gimp_drawable_get_floating_sel_filter (GimpDrawable *drawable)
|
|||
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
|
||||
g_return_val_if_fail (gimp_drawable_get_floating_sel (drawable) != NULL, NULL);
|
||||
|
||||
/* Ensure that the graph is construced before the filter is used.
|
||||
/* Ensure that the graph is constructed before the filter is used.
|
||||
* Otherwise, we rely on the projection to cause the graph to be
|
||||
* constructed, which fails for images that aren't displayed.
|
||||
*/
|
||||
|
|
|
@ -198,7 +198,7 @@ gimp_drawable_gradient_shapeburst_distmap (GimpDrawable *drawable,
|
|||
|
||||
component_format = babl_format ("A float");
|
||||
|
||||
/* extract the aplha into the temp mask */
|
||||
/* extract the alpha into the temp mask */
|
||||
gegl_buffer_set_format (temp_buffer, component_format);
|
||||
gimp_gegl_buffer_copy (gimp_drawable_get_buffer (drawable), region,
|
||||
GEGL_ABYSS_NONE,
|
||||
|
|
|
@ -440,7 +440,7 @@ gimp_extension_load (GimpExtension *extension,
|
|||
if (error && *error == NULL)
|
||||
*error = g_error_new (GIMP_EXTENSION_ERROR,
|
||||
GIMP_EXTENSION_NO_VERSION,
|
||||
_("Extension AppData must advertize a version in a <release> tag."));
|
||||
_("Extension AppData must advertise a version in a <release> tag."));
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,13 +119,13 @@
|
|||
/* CODE READABILITY BUGS:
|
||||
*
|
||||
* . Most uses of variants of the R,G,B variable naming convention
|
||||
* are referring to L*a*b* co-ordinates, not RGB co-ordinates!
|
||||
* are referring to L*a*b* coordinates, not RGB coordinates!
|
||||
*
|
||||
* . Each said variable is usually one of the following, but it is
|
||||
* rarely clear which one:
|
||||
* - (assumed sRGB) raw non-linear 8-bit RGB co-ordinates
|
||||
* - 'full'-precision (unshifted) 8-bit L*a*b* co-ordinates
|
||||
* - box-space (reduced-precision shifted L*a*b*) co-ordinates
|
||||
* - (assumed sRGB) raw non-linear 8-bit RGB coordinates
|
||||
* - 'full'-precision (unshifted) 8-bit L*a*b* coordinates
|
||||
* - box-space (reduced-precision shifted L*a*b*) coordinates
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
@ -214,9 +214,9 @@ typedef double etype;
|
|||
/*
|
||||
We provide two different histogram access interfaces. HIST_LIN()
|
||||
accesses the histogram in histogram-native space, taking absolute
|
||||
histogram co-ordinates. HIST_RGB() accesses the histogram in RGB
|
||||
space. This latter takes unsigned 8-bit co-ordinates, internally
|
||||
converts those co-ordinates to histogram-native space and returns
|
||||
histogram coordinates. HIST_RGB() accesses the histogram in RGB
|
||||
space. This latter takes unsigned 8-bit coordinates, internally
|
||||
converts those coordinates to histogram-native space and returns
|
||||
the access pointer to the corresponding histogram cell.
|
||||
|
||||
Using these two interfaces we can import RGB data into a more
|
||||
|
@ -3555,7 +3555,7 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj,
|
|||
goto got_color;
|
||||
}
|
||||
}
|
||||
g_error ("Non-existant color was expected to "
|
||||
g_error ("Non-existent color was expected to "
|
||||
"be in non-destructive colormap.");
|
||||
got_color:
|
||||
dest[INDEXED] = lastindex;
|
||||
|
|
|
@ -172,7 +172,7 @@ struct _GimpToolRectanglePrivate
|
|||
gdouble x1, y1;
|
||||
gdouble x2, y2;
|
||||
|
||||
/* Integer coordinats of upper left corner and size. We must
|
||||
/* Integer coordinates of upper left corner and size. We must
|
||||
* calculate this separately from the gdouble ones because sometimes
|
||||
* we don't want to affect the integer size (e.g. when moving the
|
||||
* rectangle), but that will be the case if we always calculate the
|
||||
|
|
|
@ -216,7 +216,7 @@ session_init (Gimp *gimp)
|
|||
{
|
||||
g_object_unref (info);
|
||||
|
||||
/* set token to left paren to we won't set another
|
||||
/* set token to left paren so we won't set another
|
||||
* error below, gimp_config_deserialize() already did
|
||||
*/
|
||||
token = G_TOKEN_LEFT_PAREN;
|
||||
|
|
|
@ -65,7 +65,7 @@ libapp = static_library('app',
|
|||
)
|
||||
|
||||
|
||||
# Those subdirs need to link againts the first ones
|
||||
# Those subdirs need to link against the first ones
|
||||
subdir('config')
|
||||
# subdir('tests')
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ gimp_toolbox_dnd_init (GimpToolbox *toolbox,
|
|||
|
||||
context = gimp_toolbox_get_context (toolbox);
|
||||
|
||||
/* Before caling any dnd helper functions, setup the drag
|
||||
/* Before calling any dnd helper functions, setup the drag
|
||||
* destination manually since we want to handle all drag events
|
||||
* manually, otherwise we would not be able to give the drag handler
|
||||
* a chance to handle drag events
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</chapter>
|
||||
|
||||
<chapter id="libgimp-image">
|
||||
<title>Manupulating Images and their Properties</title>
|
||||
<title>Manipulating Images and their Properties</title>
|
||||
<xi:include href="xml/gimpchannel.xml" />
|
||||
<xi:include href="xml/gimpdisplay.xml" />
|
||||
<xi:include href="xml/gimpdrawable.xml" />
|
||||
|
|
|
@ -4,7 +4,7 @@ Wilber.xcf.gz.README
|
|||
This is Wilber, the Gimp Mascot.
|
||||
|
||||
Gimp is a image manipulation program for unix computers, see
|
||||
https://www.gimp.org for more detais.
|
||||
https://www.gimp.org for more details.
|
||||
|
||||
The use of Wilber.xcf.gz is free, though it would be kind of you to mention
|
||||
the original author (Tuomas Kuosmanen <tigert@gimp.org>) somewhere.
|
||||
|
|
|
@ -211,7 +211,7 @@ gimp_file_procedure_get_prefixes (GimpFileProcedure *procedure)
|
|||
* gimp_file_procedure_set_magics:
|
||||
* @procedure: A #GimpFileProcedure.
|
||||
* @magics: A comma separated list of magic file information this procedure
|
||||
* can hande (i.e. "0,string,GIF").
|
||||
* can handle (i.e. "0,string,GIF").
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
|
|
|
@ -330,7 +330,7 @@ gimp_item_is_vectors (GimpItem *item)
|
|||
*
|
||||
* Returns: (element-type GimpItem) (transfer container):
|
||||
* The item's list of children.
|
||||
* The returned ist must be freed with g_list_free(). Item
|
||||
* The returned list must be freed with g_list_free(). Item
|
||||
* elements belong to libgimp and must not be unrefed.
|
||||
*
|
||||
* Since: 3.0
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
* #GimpProcedure using #GimpProcedureClass.register().
|
||||
*
|
||||
* The plug-in is called in "run" mode whenever one of the procedures
|
||||
* it implements is called by either the main GIMP appliction or any
|
||||
* it implements is called by either the main GIMP application or any
|
||||
* other plug-in. In "run" mode, one of the procedure names returned
|
||||
* by #GimpPlugInClass.query_procedures() or
|
||||
* #GimpPlugInClass.init_procedures() is passed to
|
||||
|
@ -98,7 +98,7 @@
|
|||
*
|
||||
* In any of the three modes, #GimpPlugInClass.quit() is called before
|
||||
* the plug-in process exits, so the plug-in can perform whatever
|
||||
* cleanup neccessary.
|
||||
* cleanup necessary.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
|
|
|
@ -82,7 +82,7 @@ struct _GimpPlugIn
|
|||
* @quit: This method can be overridden by a plug-in which needs to
|
||||
* perform some actions upon quitting.
|
||||
*
|
||||
* A class which every plug-in should sublass, while overriding
|
||||
* A class which every plug-in should subclass, while overriding
|
||||
* #GimpPlugInClass.query_procedures() and/or
|
||||
* #GimpPlugInClass.init_procedures(), as well as
|
||||
* #GimpPlugInClass.create_procedure().
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
* #GimpProcedureConfig base class for #GimpProcedure-specific config
|
||||
* objects and the main interface to manage aspects of
|
||||
* #GimpProcedure's arguments such as persistency of the last used
|
||||
* argments across GIMP sessions.
|
||||
* arguments across GIMP sessions.
|
||||
*
|
||||
* A #GimpProcedureConfig is created by a #GimpProcedure using
|
||||
* gimp_procedure_create_config() and its properties match the
|
||||
|
|
|
@ -149,7 +149,7 @@ gimp_enum_set_value_descriptions (GType enum_type,
|
|||
* gimp_enum_get_value_descriptions:
|
||||
* @enum_type: a #GType
|
||||
*
|
||||
* Retreives the array of human readable and translatable descriptions
|
||||
* Retrieves the array of human readable and translatable descriptions
|
||||
* and help texts for enum values.
|
||||
*
|
||||
* Returns: a %NULL terminated constant array of #GimpEnumDesc
|
||||
|
@ -191,7 +191,7 @@ gimp_flags_set_value_descriptions (GType flags_type,
|
|||
* gimp_flags_get_value_descriptions:
|
||||
* @flags_type: a #GType
|
||||
*
|
||||
* Retreives the array of human readable and translatable descriptions
|
||||
* Retrieves the array of human readable and translatable descriptions
|
||||
* and help texts for flags values.
|
||||
*
|
||||
* Returns: a %NULL terminated constant array of #GimpFlagsDesc
|
||||
|
|
|
@ -70,7 +70,7 @@ versionconfig.set('GIMP_VERSION', gimp_version)
|
|||
versionconfig.set('GIMP_API_VERSION', gimp_api_version)
|
||||
|
||||
|
||||
# Libtool versionning
|
||||
# Libtool versioning
|
||||
gimp_interface_age = 0
|
||||
lt_current = 0
|
||||
lt_revision = gimp_app_version_micro
|
||||
|
@ -1125,7 +1125,7 @@ conf.set('HAVE_GETTEXT', true)
|
|||
|
||||
|
||||
################################################################################
|
||||
# Miscelaneous configuration
|
||||
# Miscellaneous configuration
|
||||
|
||||
# #
|
||||
## ## # #### ####
|
||||
|
@ -1420,7 +1420,7 @@ add_project_arguments(compiler_args, language: [ 'c', 'cpp' ])
|
|||
add_project_link_arguments(linker_args, language: [ 'c', 'cpp' ])
|
||||
|
||||
################################################################################
|
||||
# Miscelaneous targets
|
||||
# Miscellaneous targets
|
||||
|
||||
|
||||
# # #######
|
||||
|
@ -1681,7 +1681,7 @@ final_message = [
|
|||
message('\n'.join(final_message))
|
||||
|
||||
if warnings.length() > 0
|
||||
warning('Warnings occured during configuration')
|
||||
warning('Warnings occurred during configuration')
|
||||
foreach warning : warnings
|
||||
warning(warning)
|
||||
endforeach
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* A fair proprotion of this code was taken from the Whirl plug-in
|
||||
* A fair proportion of this code was taken from the Whirl plug-in
|
||||
* which was copyrighted by Federico Mena Quintero (as below).
|
||||
*
|
||||
* Whirl plug-in --- distort an image into a whirlpool
|
||||
|
@ -540,7 +540,7 @@ dialog_update_preview (GimpDrawable *drawable,
|
|||
{
|
||||
/* Horizontal blinds */
|
||||
/* Apply the blinds algo to a single column -
|
||||
* this act as a transfomation matrix for the
|
||||
* this act as a transformation matrix for the
|
||||
* rows. Make row 0 invalid so we can find it again!
|
||||
*/
|
||||
gint i;
|
||||
|
@ -683,7 +683,7 @@ apply_blinds (GimpDrawable *drawable)
|
|||
{
|
||||
/* Horizontal blinds */
|
||||
/* Apply the blinds algo to a single column -
|
||||
* this act as a transfomation matrix for the
|
||||
* this act as a transformation matrix for the
|
||||
* rows. Make row 0 invalid so we can find it again!
|
||||
*/
|
||||
gint i;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
/* compressor plug-in for GIMP */
|
||||
/* based on gz.c which in turn is */
|
||||
/* loosley based on url.c by */
|
||||
/* loosely based on url.c by */
|
||||
/* Josh MacDonald, jmacd@cs.berkeley.edu */
|
||||
|
||||
/* and, very loosely on hrz.c by */
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
* 1. Grayscale layers are inverted (although layer masks which are not grayscale,
|
||||
* are not inverted)
|
||||
* 2. Exporting some fonts doesn't work since gimp_text_layer_get_font Returns a
|
||||
* font which is sometimes incompatiable with pango_font_description_from_string
|
||||
* font which is sometimes incompatible with pango_font_description_from_string
|
||||
* (gimp_text_layer_get_font sometimes returns suffixes such as "semi-expanded" to
|
||||
* the font's name although the GIMP's font selection dialog shows the don'ts name
|
||||
* normally - This should be checked again in GIMP 2.7)
|
||||
|
@ -88,7 +88,7 @@
|
|||
* Fixed a typo that prevented the plugin from compiling...
|
||||
* A migration to the new GIMP 2.8 api, which includes:
|
||||
* - Now using gimp_export_dialog_new
|
||||
* - Using gimp_text_layer_get_hint_style (2.8) instead of the depreceated
|
||||
* - Using gimp_text_layer_get_hint_style (2.8) instead of the deprecated
|
||||
* gimp_text_layer_get_hinting (2.6).
|
||||
*
|
||||
* August 24, 2010 | Barak Itkin <lightningismyname@gmail.com>
|
||||
|
|
|
@ -292,7 +292,7 @@ film_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
GIMP_PROC_VAL_IMAGE (procedure, "new-image",
|
||||
"New image",
|
||||
"Outout image",
|
||||
"Output image",
|
||||
FALSE,
|
||||
G_PARAM_READWRITE);
|
||||
}
|
||||
|
|
|
@ -797,7 +797,7 @@ sendmail_create_headers (FILE *mailpipe)
|
|||
/* create all the mail header stuff. Feel free to add your own */
|
||||
/* It is advisable to leave the X-Mailer header though, as */
|
||||
/* there is a possibility of a Gimp mail scanner/reader in the */
|
||||
/* future. It will probabaly need that header. */
|
||||
/* future. It will probably need that header. */
|
||||
|
||||
fprintf (mailpipe, "To: %s \n", mail_info.receipt);
|
||||
fprintf (mailpipe, "Subject: %s \n", mail_info.subject);
|
||||
|
|
|
@ -821,12 +821,12 @@ hex_area (gdouble sx, gdouble sy, gdouble hx, gdouble hy, gdouble d)
|
|||
gdouble hx0,hx1,hx2,hy0,hy1,hy2,hy3;
|
||||
gdouble sx0,sx1,sy0,sy1;
|
||||
|
||||
/* compute square co-ordinates */
|
||||
/* compute square coordinates */
|
||||
sx0 = sx - 0.5;
|
||||
sy0 = sy - 0.5;
|
||||
sx1 = sx + 0.5;
|
||||
sy1 = sy + 0.5;
|
||||
/* compute hexagon co-ordinates */
|
||||
/* compute hexagon coordinates */
|
||||
hx0 = hx - d/2.0;
|
||||
hx1 = hx;
|
||||
hx2 = hx + d/2.0;
|
||||
|
|
|
@ -309,7 +309,7 @@ colorize_create_procedure (GimpPlugIn *plug_in,
|
|||
" in the sample colortable. If hold_inten is FALSE the picked color"
|
||||
" is used 1:1 as resulting remap_color."
|
||||
" If hold_inten is TRUE The brightness of the picked color is adjusted"
|
||||
" back to the origial intensity value (only hue and saturation are"
|
||||
" back to the original intensity value (only hue and saturation are"
|
||||
" taken from the picked sample color)"
|
||||
" (or to the input level, if orig_inten is set FALSE)"
|
||||
" Works on both Grayscale and RGB image with/without alpha channel."
|
||||
|
@ -1042,7 +1042,7 @@ levels_update (gint update)
|
|||
gint i;
|
||||
|
||||
if (g_Sdebug)
|
||||
g_printf ("levels_update: update reques %x\n", update);
|
||||
g_printf ("levels_update: update request %x\n", update);
|
||||
|
||||
/* Recalculate the transfer array */
|
||||
calculate_level_transfers ();
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* A fair proprotion of this code was taken from the Whirl plug-in
|
||||
* A fair proportion of this code was taken from the Whirl plug-in
|
||||
* which was copyrighted by Federico Mena Quintero (as below).
|
||||
*
|
||||
* Whirl plug-in --- distort an image into a whirlpool
|
||||
|
|
|
@ -14,7 +14,7 @@ Pixels".
|
|||
lerp_rgb: The expression computed is exactly equivalent to mul8bit(a[i],255-f)
|
||||
+ mul8bit(b[i],f) - I just verified that by brute force for -255 <= b[i]-a[i]
|
||||
<= 255 because I couldn't be bothered to find a derivation for this :) . You
|
||||
customarily use a factor between 0 and 256 incluse for LERPing if you can, but
|
||||
customarily use a factor between 0 and 256 include for LERPing if you can, but
|
||||
normal DXT blocks have colors placed at 1/3 and 2/3 between the two
|
||||
interpolated colors. 255 is divisible by 3, so lerp_rgb can later be used in
|
||||
eval_colors to determine the result of
|
||||
|
|
|
@ -181,7 +181,7 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Load FLI-movies",
|
||||
"This is an experimantal plug-in to "
|
||||
"This is an experimental plug-in to "
|
||||
"handle FLI movies",
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
|
@ -218,7 +218,7 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Export FLI-movies",
|
||||
"This is an experimantal plug-in to "
|
||||
"This is an experimental plug-in to "
|
||||
"handle FLI movies",
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
|
@ -251,7 +251,7 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Get information about a Fli movie",
|
||||
"This is an experimantal plug-in to "
|
||||
"This is an experimental plug-in to "
|
||||
"handle FLI movies",
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
|
|
|
@ -139,7 +139,7 @@ goat_run (GimpProcedure *procedure,
|
|||
|
||||
INIT_I18N();
|
||||
|
||||
/* In interactive mode, display a dialog to advertize the exercise. */
|
||||
/* In interactive mode, display a dialog to advertise the exercise. */
|
||||
if (run_mode == GIMP_RUN_INTERACTIVE)
|
||||
{
|
||||
GtkTextBuffer *buffer;
|
||||
|
|
|
@ -2134,7 +2134,7 @@ main()
|
|||
<ListItem>
|
||||
<Para>The registered procedure name (first parameter of the
|
||||
<Literal>register()</Literal> function) is mangled: all underscores
|
||||
are converted to hyphens, to better match the usual Scheme syntatic
|
||||
are converted to hyphens, to better match the usual Scheme syntactic
|
||||
style (here, <Literal>console_echo</Literal> becomes
|
||||
<Literal>console-echo</Literal>). Moreover, a
|
||||
<Literal>python-fu-</Literal> prefix is automatically added; it is
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
; Convert a color to a simple pair of braces with comma separated values
|
||||
; '(255 255 255) => "(255, 255, 255)"
|
||||
(define (color-rgb-to-comma-seperated-list color)
|
||||
(define (color-rgb-to-comma-separated-list color)
|
||||
(string-append "(" (number->string (color-get-red color))
|
||||
", " (number->string (color-get-green color))
|
||||
", " (number->string (color-get-blue color)) ")")
|
||||
|
@ -377,7 +377,7 @@
|
|||
" public "
|
||||
(name-standard palette-name) "() {"))
|
||||
(export-palette (car (gimp-context-get-palette))
|
||||
color-rgb-to-comma-seperated-list
|
||||
color-rgb-to-comma-separated-list
|
||||
name-no-conversion
|
||||
" colors = new Hashtable<String,Color>();\n" ; start
|
||||
" colors.put(\"" ; name-pre
|
||||
|
|
|
@ -96,7 +96,7 @@ static const GOptionEntry main_entries[] =
|
|||
{
|
||||
"paste", 'p', 0,
|
||||
G_OPTION_ARG_STRING, &option_paste_filename,
|
||||
"Paste clipoard into <file> ('-' pastes to STDOUT)", "<file>"
|
||||
"Paste clipboard into <file> ('-' pastes to STDOUT)", "<file>"
|
||||
},
|
||||
{
|
||||
"version", 'v', G_OPTION_FLAG_NO_ARG,
|
||||
|
|
Loading…
Reference in New Issue