mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +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"
|
#include "gimp-intl.h"
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
buffers_paste_cmd_callback (GtkAction *action,
|
buffers_paste_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "gimp-intl.h"
|
#include "gimp-intl.h"
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include "data-editor-commands.h"
|
#include "data-editor-commands.h"
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
data_editor_edit_active_cmd_callback (GtkAction *action,
|
data_editor_edit_active_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -44,7 +44,7 @@ static const GimpActionEntry debug_actions[] =
|
||||||
{ "debug-benchmark-projection", NULL,
|
{ "debug-benchmark-projection", NULL,
|
||||||
"Benchmark _Projection", NULL,
|
"Benchmark _Projection", NULL,
|
||||||
"Invalidates the entire projection, measures the time it takes to "
|
"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.",
|
"and print the result to stdout.",
|
||||||
G_CALLBACK (debug_benchmark_projection_cmd_callback),
|
G_CALLBACK (debug_benchmark_projection_cmd_callback),
|
||||||
NULL },
|
NULL },
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "fonts-commands.h"
|
#include "fonts-commands.h"
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
fonts_refresh_cmd_callback (GtkAction *action,
|
fonts_refresh_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -65,7 +65,7 @@ static void gradient_editor_replicate_response (GtkWidget *widge
|
||||||
GimpGradientEditor *editor);
|
GimpGradientEditor *editor);
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
gradient_editor_left_color_cmd_callback (GtkAction *action,
|
gradient_editor_left_color_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#include "images-commands.h"
|
#include "images-commands.h"
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
images_raise_views_cmd_callback (GtkAction *action,
|
images_raise_views_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -51,7 +51,7 @@ static void palettes_merge_callback (GtkWidget *widget,
|
||||||
gpointer data);
|
gpointer data);
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
palettes_import_cmd_callback (GtkAction *action,
|
palettes_import_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -59,7 +59,7 @@ static void quick_mask_configure_callback (GtkWidget *dialog,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
|
||||||
/* public functionss */
|
/* public functions */
|
||||||
|
|
||||||
void
|
void
|
||||||
quick_mask_toggle_cmd_callback (GtkAction *action,
|
quick_mask_toggle_cmd_callback (GtkAction *action,
|
||||||
|
|
|
@ -584,7 +584,7 @@ gimp_brush_load_abr_brush_v12 (GDataInputStream *input,
|
||||||
/* FIXME: support it!
|
/* FIXME: support it!
|
||||||
*
|
*
|
||||||
* We can probabaly feed the info into the generated brush code
|
* 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
|
* types -akl
|
||||||
*/
|
*/
|
||||||
g_printerr ("WARNING: computed brush unsupported, skipping.\n");
|
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
|
* 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
|
* 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
|
* 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
|
* walking along the corresponding rows and columns (named U and V) in
|
||||||
* the source image.
|
* 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
|
* 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
|
* 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
|
* 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
|
* walking along the corresponding rows and columns (named U and V) in
|
||||||
* the source image.
|
* the source image.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1005,9 +1005,9 @@ gimp_curve_plot (GimpCurve *curve,
|
||||||
/*
|
/*
|
||||||
* the x values of the inner control points are fixed at
|
* 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
|
* 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
|
* 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;
|
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
|
* 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++)
|
for (i = 0; i <= ROUND (dx * (gdouble) (curve->n_samples - 1)); i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ struct _GimpCurve
|
||||||
gint n_samples;
|
gint n_samples;
|
||||||
gdouble *samples;
|
gdouble *samples;
|
||||||
|
|
||||||
gboolean identity; /* whether the curve is an identiy mapping */
|
gboolean identity; /* whether the curve is an identity mapping */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GimpCurveClass
|
struct _GimpCurveClass
|
||||||
|
|
|
@ -3552,7 +3552,7 @@ gimp_image_parasite_attach (GimpImage *image,
|
||||||
C_("undo-type", "Attach Parasite to 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
|
* unusable (NULL on the stack) and prevented people from undoing after a
|
||||||
* save (since most save plug-ins attach an undoable comment parasite).
|
* save (since most save plug-ins attach an undoable comment parasite).
|
||||||
* Now we simply attach the parasite without pushing an undo. That way
|
* 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),
|
gimp_item_get_ID (item),
|
||||||
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
|
* the one implicitly set when setting the image
|
||||||
*/
|
*/
|
||||||
gimp_item_set_image (item, gimp_item_get_image (replace));
|
gimp_item_set_image (item, gimp_item_get_image (replace));
|
||||||
|
|
|
@ -29,7 +29,7 @@ GimpPalette * gimp_palette_import_from_image (GimpImage *image,
|
||||||
GimpContext *context,
|
GimpContext *context,
|
||||||
const gchar *palette_name,
|
const gchar *palette_name,
|
||||||
gint n_colors,
|
gint n_colors,
|
||||||
gint treshold,
|
gint threshold,
|
||||||
gboolean selection_only);
|
gboolean selection_only);
|
||||||
GimpPalette * gimp_palette_import_from_indexed_image (GimpImage *image,
|
GimpPalette * gimp_palette_import_from_indexed_image (GimpImage *image,
|
||||||
GimpContext *context,
|
GimpContext *context,
|
||||||
|
|
|
@ -375,7 +375,7 @@ gimp_scan_convert_stroke (GimpScanConvert *sc,
|
||||||
/**
|
/**
|
||||||
* gimp_scan_convert_render:
|
* gimp_scan_convert_render:
|
||||||
* @sc: a #GimpScanConvert context
|
* @sc: a #GimpScanConvert context
|
||||||
* @bufferr: the #GeglBuffer to render to
|
* @buffer: the #GeglBuffer to render to
|
||||||
* @off_x: horizontal offset into the @buffer
|
* @off_x: horizontal offset into the @buffer
|
||||||
* @off_y: vertical offset into the @buffer
|
* @off_y: vertical offset into the @buffer
|
||||||
* @antialias: whether to apply antialiasiing
|
* @antialias: whether to apply antialiasiing
|
||||||
|
|
|
@ -78,7 +78,7 @@ struct _GimpStrokeOptionsPrivate
|
||||||
{
|
{
|
||||||
GimpStrokeMethod method;
|
GimpStrokeMethod method;
|
||||||
|
|
||||||
/* options for medhod == LIBART */
|
/* options for method == LIBART */
|
||||||
gdouble width;
|
gdouble width;
|
||||||
GimpUnit unit;
|
GimpUnit unit;
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ gimp_tag_get_internal (GimpTag *tag)
|
||||||
/**
|
/**
|
||||||
* gimp_tag_set_internal:
|
* gimp_tag_set_internal:
|
||||||
* @tag: a gimp tag.
|
* @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
|
* Set internal status of the tag. Internal tags are usually automatically
|
||||||
* generated and will not be saved into users tag cache.
|
* 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:
|
* gimp_viewable_get_description:
|
||||||
* @viewable: viewable object for which to retrieve a 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,
|
* Retrieves a string containing a description of the viewable object,
|
||||||
* By default, it simply returns the name of the object, but this can
|
* 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
|
/* override GtkContainer's focus() implementation which would always
|
||||||
* give focus to the canvas because it is focussable. Instead, try
|
* 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
|
* GtkContainer's default implementation only if that fails (which
|
||||||
* happens when focus navigation leaves the overlay child).
|
* 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
|
* @width: returns width of display measured in image coordinates
|
||||||
* @height: returns height 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.
|
* that corresponds to the display viewport.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
|
|
|
@ -191,7 +191,7 @@ struct _GimpToolRectanglePrivate
|
||||||
/* How to constrain the rectangle. */
|
/* How to constrain the rectangle. */
|
||||||
GimpRectangleConstraint constraint;
|
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)
|
* will always be double internally)
|
||||||
*/
|
*/
|
||||||
GimpRectanglePrecision precision;
|
GimpRectanglePrecision precision;
|
||||||
|
|
|
@ -672,7 +672,7 @@ gimp_curves_config_save_cruft (GimpCurvesConfig *config,
|
||||||
|
|
||||||
for (j = 0; j < curve->n_points; j++)
|
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
|
* work when the curve type is GIMP_CURVE_FREE
|
||||||
*/
|
*/
|
||||||
gdouble x = curve->points[j].x;
|
gdouble x = curve->points[j].x;
|
||||||
|
|
|
@ -781,7 +781,7 @@ gimp_operation_flood_process_propagate_horizontal (GimpOperationFloodContext
|
||||||
GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
|
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
|
* and the minimum of the current and previous water levels. Recall
|
||||||
* that `level` holds the previous water level, and that the current
|
* that `level` holds the previous water level, and that the current
|
||||||
* water level is never less than the ground level.
|
* water level is never less than the ground level.
|
||||||
|
|
|
@ -372,7 +372,7 @@ gimp_operation_grow_process (GeglOperation *operation,
|
||||||
GEGL_AUTO_ROWSTRIDE);
|
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;
|
circ -= self->radius_x;
|
||||||
max -= self->radius_x;
|
max -= self->radius_x;
|
||||||
|
|
||||||
|
|
|
@ -423,11 +423,11 @@ gimp_operation_shrink_process (GeglOperation *operation,
|
||||||
GEGL_AUTO_ROWSTRIDE);
|
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;
|
circ -= self->radius_x;
|
||||||
max -= self->radius_x;
|
max -= self->radius_x;
|
||||||
|
|
||||||
/* free the memmory */
|
/* free the memory */
|
||||||
g_free (circ);
|
g_free (circ);
|
||||||
g_free (buffer);
|
g_free (buffer);
|
||||||
g_free (max);
|
g_free (max);
|
||||||
|
|
|
@ -336,7 +336,7 @@ struct AlgorithmBase
|
||||||
/* BasicDispatch:
|
/* BasicDispatch:
|
||||||
*
|
*
|
||||||
* A class template implementing a simple dispatch function object, which adds
|
* 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
|
* alogithm class template (usually a helper class, rather than an actual
|
||||||
* algorithm), and 'Mask' is the dispatch function mask, as described in
|
* algorithm), and 'Mask' is the dispatch function mask, as described in
|
||||||
* 'dispatch()'.
|
* 'dispatch()'.
|
||||||
|
@ -369,7 +369,7 @@ struct BasicDispatch
|
||||||
* is a list of (types of) dispatch functions the algorithm depends on, usd as
|
* is a list of (types of) dispatch functions the algorithm depends on, usd as
|
||||||
* explained below.
|
* 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
|
* the set of requested algorithms; specifically, if the bitwise-AND of the
|
||||||
* requested-algorithms bitset and of 'Mask' is equal to 'Mask'.
|
* requested-algorithms bitset and of 'Mask' is equal to 'Mask'.
|
||||||
*
|
*
|
||||||
|
@ -881,7 +881,7 @@ struct PaintMaskToPaintBuffer : Base
|
||||||
PaintMaskToPaintBuffer (const GimpPaintCoreLoopsParams *params) :
|
PaintMaskToPaintBuffer (const GimpPaintCoreLoopsParams *params) :
|
||||||
Base (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) <=
|
g_return_if_fail (gimp_temp_buf_get_width (params->paint_buf) <=
|
||||||
gimp_temp_buf_get_width (params->paint_mask) -
|
gimp_temp_buf_get_width (params->paint_mask) -
|
||||||
params->paint_mask_offset_x);
|
params->paint_mask_offset_x);
|
||||||
|
|
|
@ -8036,13 +8036,13 @@ register_plug_in_compat_procs (GimpPDB *pdb)
|
||||||
gimp_procedure_add_argument (procedure,
|
gimp_procedure_add_argument (procedure,
|
||||||
g_param_spec_double ("alpha1",
|
g_param_spec_double ("alpha1",
|
||||||
"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,
|
0, 1, 0,
|
||||||
GIMP_PARAM_READWRITE));
|
GIMP_PARAM_READWRITE));
|
||||||
gimp_procedure_add_argument (procedure,
|
gimp_procedure_add_argument (procedure,
|
||||||
g_param_spec_double ("alpha2",
|
g_param_spec_double ("alpha2",
|
||||||
"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,
|
0, 1, 0,
|
||||||
GIMP_PARAM_READWRITE));
|
GIMP_PARAM_READWRITE));
|
||||||
gimp_procedure_add_argument (procedure,
|
gimp_procedure_add_argument (procedure,
|
||||||
|
|
|
@ -711,7 +711,7 @@ repeatedly_switch_window_mode (gconstpointer data)
|
||||||
/* Switch to single-window mode */
|
/* Switch to single-window mode */
|
||||||
gimp_ui_switch_window_mode (gimp);
|
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),
|
gtk_window_get_size (GTK_WINDOW (toplevel),
|
||||||
&expected_second_width,
|
&expected_second_width,
|
||||||
&expected_second_height);
|
&expected_second_height);
|
||||||
|
|
|
@ -446,7 +446,7 @@ gimp_create_mainimage (Gimp *gimp,
|
||||||
GIMP_MAINIMAGE_SAMPLEPOINT2_Y,
|
GIMP_MAINIMAGE_SAMPLEPOINT2_Y,
|
||||||
FALSE /*push_undo*/);
|
FALSE /*push_undo*/);
|
||||||
|
|
||||||
/* Tatto
|
/* Tattoo
|
||||||
* We don't bother testing this, not yet at least
|
* 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
|
* 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
|
* %NULL, the field is longer than XFLD_MAX_FIELD_LEN or it contains
|
||||||
* just an asteriks.
|
* just an asterisk.
|
||||||
**/
|
**/
|
||||||
static gchar *
|
static gchar *
|
||||||
gimp_text_get_xlfd_field (const gchar *fontname,
|
gimp_text_get_xlfd_field (const gchar *fontname,
|
||||||
|
|
|
@ -43,7 +43,7 @@ GimpTextLayout * gimp_text_layout_new (GimpText *text,
|
||||||
GError **error);
|
GError **error);
|
||||||
gboolean gimp_text_layout_get_size (GimpTextLayout *layout,
|
gboolean gimp_text_layout_get_size (GimpTextLayout *layout,
|
||||||
gint *width,
|
gint *width,
|
||||||
gint *heigth);
|
gint *height);
|
||||||
void gimp_text_layout_get_offsets (GimpTextLayout *layout,
|
void gimp_text_layout_get_offsets (GimpTextLayout *layout,
|
||||||
gint *x,
|
gint *x,
|
||||||
gint *y);
|
gint *y);
|
||||||
|
|
|
@ -300,7 +300,7 @@ gimp_cage_tool_button_press (GimpTool *tool,
|
||||||
switch (ct->tool_state)
|
switch (ct->tool_state)
|
||||||
{
|
{
|
||||||
case CAGE_STATE_INIT:
|
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.
|
* moving handle state.
|
||||||
*/
|
*/
|
||||||
gimp_cage_config_add_cage_point (ct->config,
|
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);
|
gimp_tool_control_push_preserve (tool->control, TRUE);
|
||||||
|
|
||||||
/* We can conceptually think of a click outside of the
|
/* 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
|
* for the current selection mode
|
||||||
*/
|
*/
|
||||||
operation = gimp_rectangle_select_tool_get_operation (rect_tool);
|
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:
|
* gimp_dialog_factory_dockable_new:
|
||||||
* @factory: a #GimpDialogFactory
|
* @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
|
* @identifier: the identifier of the dialog as registered with
|
||||||
* gimp_dialog_factory_register_entry()
|
* gimp_dialog_factory_register_entry()
|
||||||
* @view_size:
|
* @view_size:
|
||||||
|
|
|
@ -659,7 +659,7 @@ gimp_dock_window_delete_event (GtkWidget *widget,
|
||||||
GimpDialogFactoryEntry *entry = NULL;
|
GimpDialogFactoryEntry *entry = NULL;
|
||||||
gchar *name = 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
|
* recently closed dock since those can be brought back through the
|
||||||
* normal Windows->Dockable Dialogs menu
|
* normal Windows->Dockable Dialogs menu
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -669,7 +669,7 @@ gimp_layer_tree_view_drop_possible (GimpContainerTreeView *tree_view,
|
||||||
GtkTreeViewDropPosition *return_drop_pos,
|
GtkTreeViewDropPosition *return_drop_pos,
|
||||||
GdkDragAction *return_drag_action)
|
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.
|
* has a floating selection.
|
||||||
*/
|
*/
|
||||||
if (src_type == GIMP_DND_TYPE_URI_LIST ||
|
if (src_type == GIMP_DND_TYPE_URI_LIST ||
|
||||||
|
|
|
@ -2451,7 +2451,7 @@ xcf_load_old_path (XcfInfo *info,
|
||||||
{
|
{
|
||||||
guint32 dummy;
|
guint32 dummy;
|
||||||
|
|
||||||
/* Has extra tatto field */
|
/* Has extra tattoo field */
|
||||||
xcf_read_int32 (info, (guint32 *) &dummy, 1);
|
xcf_read_int32 (info, (guint32 *) &dummy, 1);
|
||||||
xcf_read_int32 (info, (guint32 *) &tattoo, 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
|
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
|
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 */
|
/* 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 */
|
#include <glib.h> /* *only* needed if the file needs stuff */
|
||||||
/* like G_OS_WIN32 for conditional inclusion */
|
/* 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
|
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.
|
and PROP_TEXT_LAYER_FLAGS for flags.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -357,7 +357,7 @@ gimp_config_writer_comment_mode (GimpConfigWriter *writer,
|
||||||
* @writer: a #GimpConfigWriter
|
* @writer: a #GimpConfigWriter
|
||||||
* @name: name of the element to open
|
* @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
|
* It also increases the indentation level and sets a mark that
|
||||||
* can be used by gimp_config_writer_revert().
|
* can be used by gimp_config_writer_revert().
|
||||||
*
|
*
|
||||||
|
|
|
@ -2938,7 +2938,7 @@ p_vertical_bend (BenderDialog *cd,
|
||||||
src_gdrw->drawable->height);
|
src_gdrw->drawable->height);
|
||||||
l_diff = l_curvy = l_nb_curvy = l_nb2_curvy= l_miny = l_maxy = 0;
|
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);
|
last_arr = g_new (t_Last, src_gdrw->x2);
|
||||||
first_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 *src_buffer;
|
||||||
GeglBuffer *dst_buffer[MAX_EXTRACT_IMAGES];
|
GeglBuffer *dst_buffer[MAX_EXTRACT_IMAGES];
|
||||||
GimpPrecision precision;
|
GimpPrecision precision;
|
||||||
gboolean requirments = FALSE;
|
gboolean requirements = FALSE;
|
||||||
gboolean decomp_has_alpha = FALSE;
|
gboolean decomp_has_alpha = FALSE;
|
||||||
|
|
||||||
extract_idx = -1; /* Search extract type */
|
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);
|
decomp_has_alpha |= ! g_strcmp0 ("A", extract[extract_idx].component[j].babl_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
requirments |= (gimp_drawable_is_rgb (drawable_ID));
|
requirements |= (gimp_drawable_is_rgb (drawable_ID));
|
||||||
requirments |= (gimp_drawable_is_indexed (drawable_ID));
|
requirements |= (gimp_drawable_is_indexed (drawable_ID));
|
||||||
requirments |= (gimp_drawable_is_gray (drawable_ID)
|
requirements |= (gimp_drawable_is_gray (drawable_ID)
|
||||||
&& gimp_drawable_has_alpha (drawable_ID)
|
&& gimp_drawable_has_alpha (drawable_ID)
|
||||||
&& (num_layers <= 2)
|
&& (num_layers <= 2)
|
||||||
&& decomp_has_alpha);
|
&& 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"));
|
g_message (_("Image not suitable for this decomposition"));
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -604,7 +604,7 @@ query (void)
|
||||||
|
|
||||||
static const GimpParamDef set_load_args[] =
|
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, "width", "Desired width" },
|
||||||
{ GIMP_PDB_INT32, "height", "Desired height" },
|
{ GIMP_PDB_INT32, "height", "Desired height" },
|
||||||
{ GIMP_PDB_INT32, "check-bbox", "0: Use width/height, 1: Use BoundingBox" },
|
{ GIMP_PDB_INT32, "check-bbox", "0: Use width/height, 1: Use BoundingBox" },
|
||||||
|
|
|
@ -647,7 +647,7 @@ find_extension (const gchar *filename)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* we found somehting, loop back, and look again */
|
/* we found something, loop back, and look again */
|
||||||
*ext = 0;
|
*ext = 0;
|
||||||
ext = strrchr (filename_copy, '.');
|
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
|
* 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
|
* 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
|
* 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).
|
* analytically).
|
||||||
*
|
*
|
||||||
* The threshold matrix is used to compare against image values. If
|
* 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| */
|
/* |1 0 -1| | 1 2 1| */
|
||||||
/* DX: |2 0 -2| DY: | 0 0 0| */
|
/* DX: |2 0 -2| DY: | 0 0 0| */
|
||||||
/* |1 0 -1| | -1 -2 -1| */
|
/* |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
|
static gint
|
||||||
|
|
|
@ -1364,7 +1364,7 @@ load_gui_defaults (JpegSaveGui *pg)
|
||||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->smoothing),
|
gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->smoothing),
|
||||||
jsvals.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)
|
if (!jsvals.use_orig_quality)
|
||||||
{
|
{
|
||||||
gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->quality),
|
gtk_adjustment_set_value (GTK_ADJUSTMENT (pg->quality),
|
||||||
|
|
|
@ -451,7 +451,7 @@ run (const gchar *name,
|
||||||
jsvals.quality = orig_quality;
|
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 */
|
* setting or if original have worst setting */
|
||||||
if (!(jsvals.subsmp == JPEG_SUBSAMPLING_1x1_1x1_1x1 ||
|
if (!(jsvals.subsmp == JPEG_SUBSAMPLING_1x1_1x1_1x1 ||
|
||||||
orig_subsmp == JPEG_SUBSAMPLING_2x2_1x1_1x1))
|
orig_subsmp == JPEG_SUBSAMPLING_2x2_1x1_1x1))
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
*
|
*
|
||||||
* 2005-2-11 Jay Cox <jaycox@gimp.org>
|
* 2005-2-11 Jay Cox <jaycox@gimp.org>
|
||||||
* Rewrote all the code that deals with pixels to be stingy with
|
* 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
|
* copy of the image when necessary. Fixes file corruption bug
|
||||||
* #167139 and memory bug #121871
|
* #167139 and memory bug #121871
|
||||||
*
|
*
|
||||||
|
|
|
@ -318,7 +318,7 @@ compute_maps (void)
|
||||||
gint x;
|
gint x;
|
||||||
gdouble val, c, d;
|
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;
|
c = 1.0 / 255.0;
|
||||||
|
|
|
@ -94,7 +94,7 @@ set_default_settings (void)
|
||||||
mapvals.material.highlight = 27.0;
|
mapvals.material.highlight = 27.0;
|
||||||
mapvals.material.metallic = FALSE;
|
mapvals.material.metallic = FALSE;
|
||||||
|
|
||||||
mapvals.pixel_treshold = 0.25;
|
mapvals.pixel_threshold = 0.25;
|
||||||
mapvals.max_depth = 3.0;
|
mapvals.max_depth = 3.0;
|
||||||
mapvals.preview_zoom_factor = 1.0;
|
mapvals.preview_zoom_factor = 1.0;
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct
|
||||||
MaterialSettings material;
|
MaterialSettings material;
|
||||||
MaterialSettings ref_material;
|
MaterialSettings ref_material;
|
||||||
|
|
||||||
gdouble pixel_treshold;
|
gdouble pixel_threshold;
|
||||||
gdouble bumpmax,bumpmin;
|
gdouble bumpmax,bumpmin;
|
||||||
gint max_depth;
|
gint max_depth;
|
||||||
gint bumpmaptype;
|
gint bumpmaptype;
|
||||||
|
|
|
@ -305,7 +305,7 @@ compute_image (void)
|
||||||
gimp_adaptive_supersample_area (0, 0,
|
gimp_adaptive_supersample_area (0, 0,
|
||||||
width - 1, height - 1,
|
width - 1, height - 1,
|
||||||
max_depth,
|
max_depth,
|
||||||
mapvals.pixeltreshold,
|
mapvals.pixelthreshold,
|
||||||
render,
|
render,
|
||||||
NULL,
|
NULL,
|
||||||
poke,
|
poke,
|
||||||
|
|
|
@ -39,7 +39,7 @@ cairo_surface_t *preview_surface = NULL;
|
||||||
glong maxcounter,old_depth,max_depth;
|
glong maxcounter,old_depth,max_depth;
|
||||||
gint imgtype,width,height,in_channels,out_channels,image_id;
|
gint imgtype,width,height,in_channels,out_channels,image_id;
|
||||||
GimpRGB background;
|
GimpRGB background;
|
||||||
gdouble oldtreshold;
|
gdouble oldthreshold;
|
||||||
|
|
||||||
gint border_x, border_y, border_w, border_h;
|
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 glong maxcounter, old_depth, max_depth;
|
||||||
extern gint imgtype, width,height, in_channels, out_channels, image_id;
|
extern gint imgtype, width,height, in_channels, out_channels, image_id;
|
||||||
extern GimpRGB background;
|
extern GimpRGB background;
|
||||||
extern gdouble oldtreshold;
|
extern gdouble oldthreshold;
|
||||||
|
|
||||||
extern gint border_x1, border_y1, border_x2, border_y2;
|
extern gint border_x1, border_y1, border_x2, border_y2;
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ set_default_settings (void)
|
||||||
|
|
||||||
mapvals.maptype = MAP_PLANE;
|
mapvals.maptype = MAP_PLANE;
|
||||||
|
|
||||||
mapvals.pixeltreshold = 0.25;
|
mapvals.pixelthreshold = 0.25;
|
||||||
mapvals.alpha = 0.0;
|
mapvals.alpha = 0.0;
|
||||||
mapvals.beta = 0.0;
|
mapvals.beta = 0.0;
|
||||||
mapvals.gamma = 0.0;
|
mapvals.gamma = 0.0;
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct
|
||||||
gdouble zoom;
|
gdouble zoom;
|
||||||
gdouble alpha,beta,gamma;
|
gdouble alpha,beta,gamma;
|
||||||
gdouble maxdepth;
|
gdouble maxdepth;
|
||||||
gdouble pixeltreshold;
|
gdouble pixelthreshold;
|
||||||
gdouble radius;
|
gdouble radius;
|
||||||
gdouble cylinder_radius;
|
gdouble cylinder_radius;
|
||||||
gdouble cylinder_length;
|
gdouble cylinder_length;
|
||||||
|
|
|
@ -560,7 +560,7 @@ create_options_page (void)
|
||||||
G_CALLBACK (gimp_double_adjustment_update),
|
G_CALLBACK (gimp_double_adjustment_update),
|
||||||
&mapvals.maxdepth);
|
&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);
|
0.001, 1000, 0.1, 1, 0, 0, 3);
|
||||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||||
_("_Threshold:"), 0.0, 0.5,
|
_("_Threshold:"), 0.0, 0.5,
|
||||||
|
@ -568,7 +568,7 @@ create_options_page (void)
|
||||||
|
|
||||||
g_signal_connect (adj, "value-changed",
|
g_signal_connect (adj, "value-changed",
|
||||||
G_CALLBACK (double_adjustment_update),
|
G_CALLBACK (double_adjustment_update),
|
||||||
&mapvals.pixeltreshold);
|
&mapvals.pixelthreshold);
|
||||||
|
|
||||||
gimp_help_set_help_data (spinbutton,
|
gimp_help_set_help_data (spinbutton,
|
||||||
_("Stop when pixel differences are smaller than "
|
_("Stop when pixel differences are smaller than "
|
||||||
|
|
|
@ -335,19 +335,19 @@ static const combobox_str_tag dicom[] =
|
||||||
{ "other", N_("Other") },
|
{ "other", N_("Other") },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* GPS Altitute Ref */
|
/* GPS Altitude Ref */
|
||||||
static const gchar *gpsaltref[] =
|
static const gchar *gpsaltref[] =
|
||||||
{
|
{
|
||||||
N_("Unknown"), N_("Above Sea Level"), N_("Below Sea Level")
|
N_("Unknown"), N_("Above Sea Level"), N_("Below Sea Level")
|
||||||
};
|
};
|
||||||
|
|
||||||
/* GPS Latitute Ref */
|
/* GPS Latitude Ref */
|
||||||
static const gchar *gpslatref[] =
|
static const gchar *gpslatref[] =
|
||||||
{
|
{
|
||||||
N_("Unknown"), N_("North"), N_("South")
|
N_("Unknown"), N_("North"), N_("South")
|
||||||
};
|
};
|
||||||
|
|
||||||
/* GPS Longitute Ref */
|
/* GPS Longitude Ref */
|
||||||
static const gchar *gpslngref[] =
|
static const gchar *gpslngref[] =
|
||||||
{
|
{
|
||||||
N_("Unknown"), N_("East"), N_("West")
|
N_("Unknown"), N_("East"), N_("West")
|
||||||
|
|
|
@ -449,7 +449,7 @@ CLASS="FILENAME"
|
||||||
CLASS="FILENAME"
|
CLASS="FILENAME"
|
||||||
>plugin.py</TT
|
>plugin.py</TT
|
||||||
> that sets out a structure for
|
> 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
|
or impossible to do in C.</P
|
||||||
><P
|
><P
|
||||||
>The main purpose of <TT
|
>The main purpose of <TT
|
||||||
|
@ -5351,7 +5351,7 @@ NAME="GIMPSHELF-MODULE"
|
||||||
>This module gives a nicer interface to the persistent
|
>This module gives a nicer interface to the persistent
|
||||||
storage interface for Gimp plugins. Due to the complicated
|
storage interface for Gimp plugins. Due to the complicated
|
||||||
nature of Python objects (there is often a lot of connections
|
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
|
gimp's persistent storage. The python interface only allows
|
||||||
storage of strings, so this module wraps pickle and unpickle to
|
storage of strings, so this module wraps pickle and unpickle to
|
||||||
allow persistentstorage of any python object.</P
|
allow persistentstorage of any python object.</P
|
||||||
|
|
|
@ -88,7 +88,7 @@ make install
|
||||||
interface for implementing some portions of a plugin. For this
|
interface for implementing some portions of a plugin. For this
|
||||||
reason, there is a python module called
|
reason, there is a python module called
|
||||||
<filename>plugin.py</filename> that sets out a structure for
|
<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>
|
or impossible to do in C.</Para>
|
||||||
|
|
||||||
<Para>The main purpose of <filename>plugin.py</filename> was to
|
<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
|
<Para>This module gives a nicer interface to the persistent
|
||||||
storage interface for GIMP plugins. Due to the complicated
|
storage interface for GIMP plugins. Due to the complicated
|
||||||
nature of Python objects (there is often a lot of connections
|
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
|
gimp's persistent storage. The python interface only allows
|
||||||
storage of strings, so this module wraps pickle and unpickle to
|
storage of strings, so this module wraps pickle and unpickle to
|
||||||
allow persistentstorage of any python object.</Para>
|
allow persistentstorage of any python object.</Para>
|
||||||
|
|
|
@ -76,7 +76,7 @@ CLASS="FILENAME"
|
||||||
CLASS="FILENAME"
|
CLASS="FILENAME"
|
||||||
>plugin.py</TT
|
>plugin.py</TT
|
||||||
> that sets out a structure for
|
> 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
|
or impossible to do in C.</P
|
||||||
><P
|
><P
|
||||||
>The main purpose of <TT
|
>The main purpose of <TT
|
||||||
|
|
|
@ -161,7 +161,7 @@ NAME="GIMPSHELF-MODULE"
|
||||||
>This module gives a nicer interface to the persistent
|
>This module gives a nicer interface to the persistent
|
||||||
storage interface for Gimp plugins. Due to the complicated
|
storage interface for Gimp plugins. Due to the complicated
|
||||||
nature of Python objects (there is often a lot of connections
|
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
|
gimp's persistent storage. The python interface only allows
|
||||||
storage of strings, so this module wraps pickle and unpickle to
|
storage of strings, so this module wraps pickle and unpickle to
|
||||||
allow persistentstorage of any python object.</P
|
allow persistentstorage of any python object.</P
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# The gimp module provides a basic method for storing information that persists
|
# 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
|
# 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,
|
# 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.
|
# to the gimp module's primitive interface, which resembles the shelve module.
|
||||||
|
|
||||||
# use cPickle and cStringIO if available
|
# use cPickle and cStringIO if available
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
(define (script-fu-guides-from-selection image drawable)
|
(define (script-fu-guides-from-selection image drawable)
|
||||||
(let* (
|
(let* (
|
||||||
(boundries (gimp-selection-bounds image))
|
(boundaries (gimp-selection-bounds image))
|
||||||
;; non-empty INT32 TRUE if there is a selection
|
;; non-empty INT32 TRUE if there is a selection
|
||||||
(selection (car boundries))
|
(selection (car boundaries))
|
||||||
(x1 (cadr boundries))
|
(x1 (cadr boundaries))
|
||||||
(y1 (caddr boundries))
|
(y1 (caddr boundaries))
|
||||||
(x2 (cadr (cddr boundries)))
|
(x2 (cadr (cddr boundaries)))
|
||||||
(y2 (caddr (cddr boundries)))
|
(y2 (caddr (cddr boundaries)))
|
||||||
)
|
)
|
||||||
|
|
||||||
;; need to check for a selection or we get guides right at edges of the image
|
;; 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
|
Patches to the hastily-done version 1.30. Stephen Gildea fixed
|
||||||
some things done wrongly, and Richard Russo fixed the makefile
|
some things done wrongly, and Richard Russo fixed the makefile
|
||||||
for building on Windows. Property lists (heritage from MiniScheme)
|
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.
|
should be considered as deprecated.
|
||||||
|
|
||||||
Version 1.30
|
Version 1.30
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue