Commit Graph

8729 Commits

Author SHA1 Message Date
Sven Neumann 6dc91417e1 app/actions/tool-options-commands.c app/core/gimptoolpresets.[ch] code
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/actions/tool-options-commands.c
	* app/core/gimptoolpresets.[ch]
	* app/tools/gimp-tools.c: code cleanup.
2006-12-11 08:23:00 +00:00
Sven Neumann dea94bb4a7 pass the toplevel widget as parent to gimp_query_string_box().
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/actions/tool-options-commands.c
	(tool_options_save_new_cmd_callback): pass the toplevel widget
as
	parent to gimp_query_string_box().
2006-12-10 20:52:38 +00:00
Sven Neumann 05dc8ace05 be consistent with other config files and always display the "Parsing
..." line, even if the file doesn't exist
2006-12-10 19:59:34 +00:00
Sven Neumann 4e0828198c minor cleanup 2006-12-10 19:44:37 +00:00
Sven Neumann 42f91125a7 do not create empty presets files and don't create any output for presets
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/core/gimptoolpresets.c: do not create empty presets files
	and don't create any output for presets files that don't exist.
2006-12-10 19:29:17 +00:00
Sven Neumann df8bf728a6 app/core/Makefile.am app/core/core-types.h added GimpToolPresets, derived
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimptoolpresets.[ch]: added GimpToolPresets, derived
	from GimpList.

	* app/core/gimptoolinfo.[ch]: use the new type, renamed
	member "options_presets" to "presets".

	* app/actions/tool-options-actions.c
	* app/actions/tool-options-commands.c
	* app/core/gimptooloptions.[ch]
	* app/menus/tool-options-menu.c
	* app/widgets/gimptooloptionseditor.c: changed accordingly.

	* app/tools/gimp-tools.c: let the GimpToolPresets object deal
with
	loading and saving the presets from ${gimpdir}/tool-options.

	* app/core/gimpcontainer-filter.c
	* app/core/gimpdocumentlist.c
	* app/core/gimplist.c
	* app/text/gimpfontlist.c: use canonical property names.
2006-12-10 19:13:58 +00:00
Michael Natterer 6be00cbaf9 app/widgets/gimpcolorselectorpalette.[ch]
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.[ch]
	* app/widgets/gimpcontrollerinfo.[ch]
	* app/widgets/gimpcontrollerkeyboard.[ch]
	* app/widgets/gimpcontrollerwheel.[ch]: forgot LIBGIMP -> GIMP
2006-12-10 16:38:48 +00:00
Michael Natterer c6ef9aa1fe also scale the brush's spacing (by scaling its x_axis and y_axis).
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.c: also scale the brush's spacing (by
	scaling its x_axis and y_axis). Addresses bug #65030.
2006-12-09 23:46:16 +00:00
Michael Natterer 69cc852867 fix whitespace.
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushpipe.h: fix whitespace.
2006-12-09 23:15:59 +00:00
Michael Natterer afd0b332d9 app/widgets/gimpcolorselectorpalette.[ch]
2006-12-09  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.[ch]
	* app/widgets/gimpcontrollerinfo.[ch]
	* app/widgets/gimpcontrollerkeyboard.[ch]
	* app/widgets/gimpcontrollerwheel.[ch]: license is GPL, not LGPL.
2006-12-09 21:51:48 +00:00
Sven Neumann 7bd0c05d29 use "GIMP" instead of "The GIMP".
2006-12-09  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c: use "GIMP" instead of "The GIMP".

	* app/core/gimpimagefile.c (gimp_imagefile_save_thumb): use
"GIMP"
	in the 'Software' tag when writing thumbnails.

	* app/composite/gimp-composite.html: removed outdated document.
2006-12-09 21:49:23 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Michael Natterer 6ded475a12 app/core/gimpbrush.c (gimp_brush_class_init) gah, should use the right
2006-12-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrush.c (gimp_brush_class_init)
	* app/core/gimpbrushgenerated.c (gimp_brush_generated_new): gah,
	should use the right binary for testing. Fixes the new spacing
	property.
2006-12-07 11:53:02 +00:00
Sven Neumann 4fa50e1f86 when creating the user directory, create parent directories if they don't
2006-12-07  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-user-install.c: when creating the user directory,
	create parent directories if they don't exist.
2006-12-07 11:51:17 +00:00
Sven Neumann e5893265b1 reverted my last change; will have to address this differently.
2006-12-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimp-tools.c (gimp_tools_save): reverted my last change;
	will have to address this differently.
2006-12-07 09:48:40 +00:00
Sven Neumann 5cc125827b only write a .presets file if the presets container is not empty.
2006-12-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimp-tools.c (gimp_tools_save): only write a
.presets
	file if the presets container is not empty.
2006-12-06 20:43:06 +00:00
Michael Natterer 7515d9b6dc made "spacing" a property.
2006-12-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrush.c: made "spacing" a property.

	* app/core/gimpbrushgenerated-save.c
	* app/core/gimpbrushgenerated.c
	* app/core/gimpbrushpipe.c: use it. Don't access brush->spacing
	manually, always use accessors.
2006-12-06 00:01:27 +00:00
Sven Neumann 0f679d7b48 removed unused defines.
2006-12-04  Sven Neumann  <sven@gimp.org>

        * app/tools/gimpperspectiveclonetool.h: removed unused defines.
2006-12-04 13:57:27 +00:00
Sven Neumann 952b35d7bf don't autoscroll with paint tools.
2006-12-03  Sven Neumann  <sven@gimp.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_init): don't
	autoscroll with paint tools.
2006-12-03 19:23:50 +00:00
Sven Neumann 010d9ff7cf removed obsolete parameter from gtk-doc comment.
2006-11-30  Sven Neumann  <sven@gimp.org>

        * app/widgets/gimppropwidgets.c (gimp_prop_color_button_new):
        removed obsolete parameter from gtk-doc comment.
2006-11-30 15:30:25 +00:00
Michael Natterer 9b9542a610 removed gimp_foo_version variables.
2006-11-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimp.[ch]: removed gimp_foo_version variables.

	* libgimpbase/gimpenv.[ch]: added them here.

	* app/sanity.c: added sanity_check_gimp() and abort if the libgimp
	version gimp is compiled with is not exactly the same we encounter
	at runtime.
2006-11-28 11:57:05 +00:00
Sven Neumann 2acc124280 applied patch from Aurimas Juška that fixes conversion with dithering of
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c: applied patch from Aurimas Juška
	that fixes conversion with dithering of transparency (bug #358851).
2006-11-27 16:38:58 +00:00
Sven Neumann d77ac40cbf typo.
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_color_button_new): typo.
2006-11-27 12:08:57 +00:00
Sven Neumann 5e43848a7c applied patch from Saul Goode (bug #379611), then cleaned up further.
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/base/color-balance.c (color_balance_transfer_init): applied
	patch from Saul Goode (bug #379611), then cleaned up further.
2006-11-27 10:07:50 +00:00
Michael Natterer 146e063f0a app/core/gimpbrushclipboard.c app/core/gimppatternclipboard.c
2006-11-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushclipboard.c
	* app/core/gimppatternclipboard.c
	* app/core/gimptooloptions.c
	* app/core/gimpundo.c
	* app/widgets/gimpdevicestatus.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpimageparasiteview.c
	* app/widgets/gimpimagepropview.c: no need to cast the return
	value of g_value_get_object(), it's a gpointer.
2006-11-25 14:57:26 +00:00
Kevin Cozens 3c7cca9faf Fix for minor typo in error message.
2006-11-24  Kevin Cozens  <kcozens@cvs.gnome.org>

	* app/pdb/gimpprocedure.c: Fix for minor typo in error message.

	* plug-ins/Lighting/lighting_main.c (check_drawables): Only validate
	ID's for drawables that will be used. Disable use of env map (and not
	bump map) if env drawable is of wrong type.

	* plug-ins/script-fu/ftx/ftx.c: Eliminated some compiler warnings.
2006-11-25 07:27:57 +00:00
Simon Budig 223a578b35 libgimpwidgets/gimpresolutionentry.c fix typo in a function name.
2006-11-25  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c
	* libgimpwidgets/gimpwidgets.def: fix typo in a function name.

	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimppaletteeditor.c
	* app/actions/gradient-editor-actions.c
	* app/actions/palette-editor-actions.c: handle all enum values
	and use sane ones.

	* app/widgets/gimpcontrollerinfo.c: fix a warning.
2006-11-25 00:13:08 +00:00
Simon Budig 5166c11c7d app/core/gimpdrawable.c fix the warnings about the interface
2006-11-24  Simon Budig  <simon@gimp.org>

	* app/core/gimpdrawable.c
	* app/core/gimpprojection.c: fix the warnings about the interface
	initialization.
2006-11-24 22:41:03 +00:00
Simon Budig 0308d410b4 Fixing include/declaration issues in the application:
2006-11-23  Simon Budig  <simon@gimp.org>

	Fixing include/declaration issues in the application:

	* app/composite/gimp-composite-sse2.c: disable unused debugging code

	* app/paint-funcs/paint-funcs.[ch]
	* app/paint-funcs/scale-funcs.[ch]: fix include files, add some
	prototypes, make some other functions static.

	* app/core/gimpbuffer.c
	* app/core/gimpdrawable-preview.c: changed accordingly.

	* app/tools/gimpeditselectiontool.[ch]: untangle .c and .h file.

	* app/widgets/gimpfiledialog.c: add missing #include.
2006-11-24 14:08:40 +00:00
Sven Neumann e1d427b160 reordered to make the test link again.
2006-11-23  Sven Neumann  <sven@gimp.org>

	* app/config/Makefile.am (test_config_LDADD): reordered to make
	the test link again.
2006-11-23 22:38:58 +00:00
Simon Budig 1a95e589c3 tools/pdbgen/pdb/paths.pdb minor documentation fixes, following the
2006-11-23  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/paths.pdb
	* tools/pdbgen/pdb/vectors.pdb: minor documentation fixes,
	following the renaming.

	* app/pdb/paths_cmds.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimppaths_pdb.c
	* libgimp/gimpvectors_pdb.c: regenerated.
2006-11-23 22:26:58 +00:00
Simon Budig d87e5738b6 renamed gimp_vectors_new_from_* to gimp_vectors_import_from_*, as
2006-11-23  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: renamed gimp_vectors_new_from_*
	to gimp_vectors_import_from_*, as discussed in bug #378394.

	* plug-ins/common/svg.c
	* libgimp/gimp.def: changed accordingly.

	* libgimp/gimpvectors_pdb.[ch]
	* app/pdb/vectors_cmds.c: regenerated.
2006-11-23 21:45:54 +00:00
Michael Natterer 35a5a46a4a plug-ins/help/gimphelpitem.[ch] added some EEKy members to the structs
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* plug-ins/help/gimphelpitem.[ch]
	* plug-ins/help/gimphelplocale.[ch]: added some EEKy members to
	the structs where the browser can store its state.

	* plug-ins/helpbrowser/Makefile.am
	* plug-ins/helpbrowser/helpbrowser.c: link against libgimphelp.a
	and implement all the help ID mapping ourselves.

	* plug-ins/helpbrowser/dialog.[ch]: added a tree view with the
	help IDs of the current help domain. Double click to jump to an
	item. Very early-stage code and very unusable, please try anyway.

	* app/widgets/gimphelp.c: if the help browser is available, call
	it directly, not via the help plug-in.
2006-11-23 21:04:41 +00:00
Michael Natterer aa5a8a92ad remove useless newlines from debugging output.
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimpplugin-cleanup.c: remove useless newlines from
	debugging output.
2006-11-23 20:38:17 +00:00
Simon Budig 5fb22c8688 Change the color for XOR drawing. This guarantees that there is always a
2006-11-23  Simon Budig  <simon@gimp.org>

	* app/display/gimpcanvas.c: Change the color for XOR drawing. This
	guarantees that there is always a contrast between the original
	image pixels and the stuff drawn on top of it.
2006-11-23 20:25:17 +00:00
Michael Natterer b831c0c32d made validation error messages more human-readable and prepared the code
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* app/pdb/gimpprocedure.c (gimp_procedure_validate_args): made
	validation error messages more human-readable and prepared the
	code for validating return values.
2006-11-23 12:42:58 +00:00
Sven Neumann f95a118603 special case invalid drawable and image IDs and try to give a somewhat
2006-11-23  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimpprocedure.c (gimp_procedure_validate_args): special
	case invalid drawable and image IDs and try to give a somewhat
	more helpful error message (addresses bug #378334).
2006-11-23 09:17:07 +00:00
Sven Neumann be67311b0b marked the new functions as new in 2.4.
2006-11-23  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: marked the new functions as new in
2.4.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.
2006-11-23 06:41:08 +00:00
Simon Budig 7968dcdc56 Cosmetic reordering - Simon 2006-11-22 22:54:53 +00:00
Simon Budig ff68bde625 Added functions to easily determine the position of a
2006-11-22  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/image.pdb: Added functions to easily determine
	the position of a layer/channel/vectors object in its respective
	stack.

	* libgimp/gimp.def: added new symbols

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.
2006-11-22 22:36:24 +00:00
Simon Budig d27db948d7 Enable scrolling while dragging the nodes of a path. Fix warning when
2006-11-22  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: Enable scrolling while dragging
	the nodes of a path. Fix warning when deleting the last node
	of a stroke.
2006-11-22 20:50:39 +00:00
Michael Natterer a10d6099cb add support for G_TYPE_INT properties.
2006-11-22  Michael Natterer  <mitch@gimp.org>

	* app/actions/actions.c (action_select_property): add support for
	G_TYPE_INT properties.

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]: add actions and callback which
	affect the foreground select tool's stroke-width property.

	* app/tools/gimpforegroundselecttool.c: map tool-action-value-2
	(tool tip size) to the new action.

	* app/tools/gimppaintoptions-gui.c: fixed visibility of the brush
	scale slider.
2006-11-22 20:38:36 +00:00
Michael Natterer 3b903bae0c applied modified patch from Adrian Likins which adds a GRand to the
2006-11-22  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.[ch]: applied modified patch from Adrian
	Likins which adds a GRand to the GimpBrushCore struct and uses it
	instead of using g_random_foo() functions. Fixes bug #377981.
2006-11-22 20:22:32 +00:00
Sven Neumann aa09e29272 don't raise and focus the error console for not so severe error messages.
2006-11-22  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-message.c (gui_message_error_console): don't raise
	and focus the error console for not so severe error messages. Fixes
	bug #322210 and bug #373254.

	* app/widgets/gimperrorconsole.c (gimp_error_console_init): reduced
	font sizes in error console.
2006-11-22 16:33:31 +00:00
Simon Budig d3543f1b06 load the channels in the proper order. fixes bug #378003. Thanks to Chris
2006-11-22  Simon Budig  <simon@gimp.org>

	* app/xcf/xcf-load.c: load the channels in the proper order.
	fixes bug #378003. Thanks to Chris Mohler for spotting this.
2006-11-22 10:19:53 +00:00
Michael Natterer 7d30e91cf5 the pixmap's size is width * height * bpp, not just width * height.
2006-11-21  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/brush.pdb (brush_get_pixels): the pixmap's size
	is width * height * bpp, not just width * height.

	* app/pdb/brush_cmds.c: regenerated.
2006-11-21 22:43:41 +00:00
Sven Neumann 226b2e6333 check argument types before assigning them. Allows to use a batch
2006-11-21  Sven Neumann  <sven@gimp.org>

	* app/batch.c (batch_run_cmd): check argument types before
	assigning them. Allows to use a batch processor processor without
	a run-mode parameter.
2006-11-21 14:26:03 +00:00
Simon Budig 73b1863a28 app/vectors/gimpstroke.[ch] tools/pdbgen/pdb/vectors.pdb Applied patch
2006-11-20  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpstroke.[ch]
	* tools/pdbgen/pdb/vectors.pdb
	* plug-ins/pygimp/pygimp-vectors.c: Applied patch from
	Joao S. O. Bueno Calligaris that adds some missing transformations
	to the PDB-API for strokes. Fixes bug #129598.

	* app/pdb/internal_procs.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated.
2006-11-20 15:34:30 +00:00
Michael Natterer 170901c5eb applied patch from Jernej Simoncic which enables environment variables and
2006-11-18  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-rc.c (plug_in_def_deserialize): applied
	patch from Jernej Simoncic which enables environment variables and
	${gimp_foo} variables in plug-in filename and converts them to
	filesystem encoding. Fixes bug #375349.

	(plug_in_rc_write): write UTF-8 filenames to pluginrc.
2006-11-18 16:19:47 +00:00
Michael Natterer 02de3076c9 Got rid of the word "editor" were it was good for nothing but exposing an
2006-11-17  Michael Natterer  <mitch@gimp.org>

	Got rid of the word "editor" were it was good for nothing but
	exposing an implementation detail in public API and installed
	files.  Fixes bug #345251:

	* app/actions/colormap-editor-actions.[ch]
	* app/actions/colormap-editor-commands.[ch]
	* app/actions/sample-point-editor-actions.[ch]
	* app/actions/sample-point-editor-commands.[ch]
	* menus/colormap-editor-menu.xml
	* menus/sample-point-editor-menu.xml
	* menus/selection-editor-menu.xml
	* menus/undo-editor-menu.xml: removed.

	* app/actions/colormap-actions.[ch]
	* app/actions/colormap-commands.[ch]
	* app/actions/sample-points-actions.[ch]
	* app/actions/sample-points-commands.[ch]
	* menus/colormap-menu.xml
	* menus/sample-points-menu.xml
	* menus/selection-menu.xml
	* menus/undo-menu.xml: added.

	* app/actions/Makefile.am
	* menus/Makefile.am
	* app/actions/actions.c
	* app/menus/menus.c
	* app/menus/plug-in-menus.c
	* app/plug-in/gimppluginprocedure.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpsamplepointeditor.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpundoeditor.c
	* plug-ins/common/colormap-remap.c: changed accordingly.
2006-11-17 22:07:07 +00:00