Commit graph

17824 commits

Author SHA1 Message Date
Martin Nordholts 7c96452329 Make instance members private.
* app/widgets/gimpdock.[ch]: Make instance members private.

(gimp_dock_get_context)
(gimp_dock_get_dialog_factory)
(gimp_dock_get_dockbooks)
(gimp_dock_get_main_vbox)
(gimp_dock_get_vbox)
(gimp_dock_get_id): New getters.

* app/actions/actions.c
* app/actions/dockable-actions.c
* app/actions/dockable-commands.c
* app/actions/windows-actions.c
* app/menus/windows-menu.c
* app/widgets/gimpdialogfactory.c
* app/widgets/gimpdock.c
* app/widgets/gimpdock.h
* app/widgets/gimpdockable.c
* app/widgets/gimpdockbook.c
* app/widgets/gimpdockseparator.c
* app/widgets/gimpimagedock.c
* app/widgets/gimpmenudock.c
* app/widgets/gimpsessioninfo-book.c
* app/widgets/gimpsessioninfo-dock.c
* app/widgets/gimpsessioninfo-dockable.c
* app/widgets/gimptoolbox-color-area.c
* app/widgets/gimptoolbox-dnd.c
* app/widgets/gimptoolbox-image-area.c
* app/widgets/gimptoolbox-indicator-area.c
* app/widgets/gimptoolbox.c: Use new getters.

svn path=/trunk/; revision=27881
2009-01-04 10:28:31 +00:00
Martin Nordholts dff24a3d98 Format static function prototypes.
* app/widgets/gimpcontainertreeview.c: Format static function
prototypes.

svn path=/trunk/; revision=27880
2009-01-03 22:27:30 +00:00
Sven Neumann 6ee74726a2 removed unused include.
2009-01-01  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: removed unused include.


svn path=/trunk/; revision=27873
2009-01-01 17:00:39 +00:00
Sven Neumann f8b964bf2d Bug 565112 – code duplication in app/core/gimpimage-snap.c
2009-01-01  Sven Neumann  <sven@gimp.org>

	Bug 565112 – code duplication in app/core/gimpimage-snap.c

	* app/core/gimpimage-snap.c: based on a patch from Daniel 
Hornung,
	add the utility function gimp_image_snap_distance().


svn path=/trunk/; revision=27869
2009-01-01 14:34:21 +00:00
Sven Neumann b024d2314b Happy New Year!
2009-01-01  Sven Neumann  <sven@gimp.org>

	* app/about.h (GIMP_COPYRIGHT): Happy New Year!


svn path=/trunk/; revision=27868
2009-01-01 14:02:11 +00:00
Sven Neumann 45387a3900 Bug 565223 – Perspective transformation jagged edges / comb effect
2009-01-01  Sven Neumann  <sven@gimp.org>

	Bug 565223 – Perspective transformation jagged edges / comb effect

	* app/core/gimp-transform-region.c: reverted the code change, but
	not the cleanups, from commit r26786.


svn path=/trunk/; revision=27866
2009-01-01 13:56:37 +00:00
Sven Neumann d9d657ca19 added GimpTagEntryMode.
2008-12-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/widgets-enums.[ch]: added GimpTagEntryMode.

	* app/widgets/gimptagentry.[ch]: removed it here. Also did some
	code cleanup, mostly formatting.

	* app/widgets/gimpcombotagentry.[ch]
	* app/widgets/gimptagpopup.[ch]: some code cleanup, mostly
	formatting.


svn path=/trunk/; revision=27861
2008-12-31 00:01:24 +00:00
Sven Neumann cf0aee5adb deleted trailing whitespace.
2008-12-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpitemtreeview.h: deleted trailing whitespace.


svn path=/trunk/; revision=27860
2008-12-30 23:25:07 +00:00
Sven Neumann 8ae65ad5a3 plug-ins/print/print.[ch] plug-ins/print/print-draw-page.c
2008-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: optionally draw crop-marks.


svn path=/trunk/; revision=27859
2008-12-30 21:36:04 +00:00
Sven Neumann 012b46e427 cleanup
svn path=/trunk/; revision=27857
2008-12-30 11:37:45 +00:00
Marco Ciampa b5d03b3948 app/actions/error-console-actions.c updated italian translation and small
2008-12-30  Marco Ciampa  <ciampix@libero.it>

	* app/actions/error-console-actions.c
	* po/it.po: updated italian translation and small typo fix.


svn path=/trunk/; revision=27856
2008-12-30 11:23:30 +00:00
Martin Nordholts de38a9887b New offset getters for inline use.
* app/core/gimpitem.c
(gimp_item_get_offset_x)
(gimp_item_get_offset_y): New offset getters for inline use.

* app/core/gimpchannel.c
* app/core/gimpdrawable.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-resize.c
* app/tools/gimptexttool.c: Don't access GimpItem offset members
directly, use gimp_item_set_offset() and
gimp_item_get_offset_[xy]() instead.

svn path=/trunk/; revision=27848
2008-12-28 12:43:07 +00:00
Sven Neumann 28237630eb Bug 563985 – jpg save dialog: "cancel" is treated like "commit" for
2008-12-28  Sven Neumann  <sven@gimp.org>

	Bug 563985 – jpg save dialog: "cancel" is treated like "commit"
	for settings

	* plug-ins/file-jpeg/jpeg.c (run): only attach the comment and
	settings to the image if the save was successful.


svn path=/trunk/; revision=27843
2008-12-28 02:10:32 +00:00
Sven Neumann 4ce9631b46 Bug 565362 – the previously opened file is not suggested if gimp was
2008-12-28  Sven Neumann  <sven@gimp.org>

	Bug 565362 – the previously opened file is not suggested if gimp
	was started from command line

	* app/file/file-open.c (file_open_from_command_line): remember 
the
	opened image just as if it was opened using the file-open 
dialog.


svn path=/trunk/; revision=27842
2008-12-28 01:43:52 +00:00
Martin Nordholts a7646e06c7 And ChangeLog...
svn path=/trunk/; revision=27841
2008-12-28 00:09:59 +00:00
Sven Neumann 19f72e4471 use the canonical spelling for the 'stock-id' property.
2008-12-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintcombobox.c (gimp_int_combo_box_init): 
use
	the canonical spelling for the 'stock-id' property.


svn path=/trunk/; revision=27839
2008-12-28 00:08:20 +00:00
Sven Neumann f1c78b1df0 copy-on-write from the projection is not any longer broken, so use it
2008-12-27  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintcore.c
	(gimp_paint_core_validate_saved_proj_tiles): copy-on-write from
	the projection is not any longer broken, so use it here.


svn path=/trunk/; revision=27837
2008-12-27 16:11:54 +00:00
Sven Neumann a4daf7f210 Bug 564087 – Using clone tool on a layer with a part out of canvas
2008-12-27  Sven Neumann  <sven@gimp.org>

        Bug 564087 – Using clone tool on a layer with a part out of 
canvas
        causes crashes

        * app/paint/gimppaintcore.c (gimp_paint_core_paste): intersect 
the
        rectangle with the extents of the saved projection.


svn path=/trunk/; revision=27835
2008-12-27 16:04:43 +00:00
Sven Neumann c03759344b formatting.
2008-12-27  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-surround.c (struct _PixelSurround): formatting.


svn path=/trunk/; revision=27834
2008-12-27 15:21:46 +00:00
Sven Neumann 4409f3853d Bug 564593 – crash when the drawable is changed while a color tools is
2008-12-27  Sven Neumann  <sven@gimp.org>

	Bug 564593 – crash when the drawable is changed while a color
	tools is active

	* app/core/gimpdrawable-shadow.c 
(gimp_drawable_merge_shadow_tiles):
	keep a reference to the shadow tiles because it might otherwise 
be
	free'd under our feet.


svn path=/trunk/; revision=27832
2008-12-27 15:14:48 +00:00
Sven Neumann d86d085601 let the save procedure also accept a grayscale layer with alpha channel,
2008-12-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gbr.c: let the save procedure also accept 
a
	grayscale layer with alpha channel, as we do in the GIH save
	procedure.

	* plug-ins/common/file-gih.c: when loading a brush mask pipe,
	create grayscale layers without an alpha channel. Changed the 
save
	procedure to also accept layers without alpha channel.


svn path=/trunk/; revision=27831
2008-12-26 22:07:53 +00:00
Martin Nordholts 6f9ccc51f5 Make instance members private (they were not accessed from the outside).
* app/widgets/gimplayertreeview.[ch]: Make instance members
private (they were not accessed from the outside).

svn path=/trunk/; revision=27830
2008-12-25 12:12:33 +00:00
Martin Nordholts 2e1653ca8b Make instance members private (they were not accessed from the outside).
* app/widgets/gimpchanneltreeview.[ch]: Make instance members
private (they were not accessed from the outside).

svn path=/trunk/; revision=27829
2008-12-25 12:00:18 +00:00
Martin Nordholts 0c3cc7f562 ChangeLog formating...
svn path=/trunk/; revision=27828
2008-12-25 11:33:24 +00:00
Martin Nordholts 571ce865bd Make instance member private and add getter that didn't already exist.
* app/widgets/gimpitemtreeview.[ch]: Make instance member private
and add getter that didn't already exist.

(gimp_item_tree_view_get_new_button)
(gimp_item_tree_view_get_edit_button): New getters.

* app/actions/actions.c
* app/widgets/gimpvectorstreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpdrawabletreeview.c
* app/widgets/gimpchanneltreeview.c: Use new getters.

svn path=/trunk/; revision=27827
2008-12-25 11:31:51 +00:00
Sven Neumann c7dfb8bd55 if supported, add -Wformat-security and -Wformat-non-literal to the
2008-12-23  Sven Neumann  <sven@gimp.org>

	* configure.in: if supported, add -Wformat-security and
	-Wformat-non-literal to the compiler flags.


svn path=/trunk/; revision=27826
2008-12-23 12:24:44 +00:00
Sven Neumann a7798936f0 declared function calling exit() as G_GNUC_NORETURN.
2008-12-23  Sven Neumann  <sven@gimp.org>

	* app/batch.c: declared function calling exit() as G_GNUC_NORETURN.


svn path=/trunk/; revision=27825
2008-12-23 12:08:18 +00:00
Sven Neumann d54686d200 declared function usage() as G_GNUC_NORETURN.
2008-12-23  Sven Neumann  <sven@gimp.org>

	* tools/gimptool.c: declared function usage() as 
G_GNUC_NORETURN.


svn path=/trunk/; revision=27824
2008-12-23 11:36:09 +00:00
Aurimas Juška 3093ef28ce fixed handling of tags which contain non-ASCII characters.
* app/widgets/gimptagentry.c: fixed handling of tags which contain
non-ASCII characters.

svn path=/trunk/; revision=27822
2008-12-21 16:41:09 +00:00
Sven Neumann 6b74d79844 Bug 564869 – GIMP crashes on selecting Tools->GEGL operation
2008-12-21  Sven Neumann  <sven@gimp.org>

	Bug 564869 – GIMP crashes on selecting Tools->GEGL operation

	* app/tools/gimptool.c (gimp_tool_initialize): check if the tool
	has set an error.


svn path=/trunk/; revision=27819
2008-12-21 15:49:12 +00:00
Sven Neumann 5700bd6003 Bug 565138 – python-fu-foggify does not check if image is in rgb mode
2008-12-21  Sven Neumann  <sven@gimp.org>

	Bug 565138 – python-fu-foggify does not check if image is in rgb 
mode

	* plug-ins/pygimp/plug-ins/foggify.py (foggify): fixed handling 
of
	grayscale images.


svn path=/trunk/; revision=27817
2008-12-21 15:33:07 +00:00
Martin Nordholts 4255e43681 Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Merge the rest of the tagging code developed on the tagging branch
by Aurimas Juška. Development will now continue in trunk.

* app/core/gimptag.[ch]: New files (not strictly true but almost)
implementing the represention of a tag.

* app/core/gimptagcache.[ch]: New files implementing functionality
for loading and saving tags to tags.xml, and assigning loaded tags
to tagged objects.

* app/core/gimpfilteredcontainer.[ch]: New files implementing a
tag filtered GimpContainer.

* app/widgets/gimptagentry.[ch]: New files implementing a
GtkEntry-like widget for entering tags.

* app/widgets/gimpcombotagentry.[ch]: New files implementing a
combobox-like widget for selecting tags.

* app/widgets/gimptagpopup.[ch]: New files implementing a popup of
all available tags that can be selected and combined in a
checkbox-like way.

* app/core/gimp.[ch]: Add a GimpTagCache member and manage tag
assignment and saving and loading to/from tags.xml.

* app/widgets/gimpdatafactoryview.c: Add the tag query and tag
assignment widgets to the UI and show the tag filtered items
instead of all items.

* app/core/Makefile.am
* app/widgets/Makefile.am: Add new files.

* app/core/core-types.h
* app/widgets/widgets-types.h: Add new types.

svn path=/trunk/; revision=27816
2008-12-20 14:46:54 +00:00
Martin Nordholts 9c912cf0bb Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Partial merge of code from Aurimas Juška.

* app/widgets/gimpbrushfactoryview.c: Use the same method for
getting the GimpContainer both when adding and when removing the
spacing-changed handler. It was just a coincidence that the
previously different methods retured the same GimpContainer.

svn path=/trunk/; revision=27815
2008-12-20 13:21:03 +00:00
Martin Nordholts a4b0297b4b New helper functions to lesser level of indirection in client code.
* app/widgets/gimpdatafactoryview.[ch]
(gimp_data_factory_view_have)
(gimp_data_factory_view_get_children_type)
(gimp_data_factory_view_has_data_new_func): New helper functions
to lesser level of indirection in client code.

* app/actions/data-commands.c: Use them.

svn path=/trunk/; revision=27814
2008-12-20 12:27:52 +00:00
Martin Nordholts 7f733cee43 Make instance members private and add getters for accessed members.
* app/widgets/gimpdatafactoryview.[ch]: Make instance members
private and add getters for accessed members.

(gimp_data_factory_view_get_edit_button)
(gimp_data_factory_view_get_duplicate_button)
(gimp_data_factory_view_get_data_factory): New getters.

* app/actions/data-commands.c
* app/widgets/gimppatternfactoryview.c: Use new getters.

svn path=/trunk/; revision=27813
2008-12-20 12:08:28 +00:00
Martin Nordholts 4981816c0b Make instance members private and add getters for required members.
* app/core/gimpdatafactory.[ch]: Make instance members private and
add getters for required members.

(gimp_data_factory_get_container)
(gimp_data_factory_get_gimp)
(gimp_data_factory_has_data_new_func): The new getters.

* app/actions/context-commands.c
* app/actions/data-commands.c
* app/core/gimp-gradients.c
* app/core/gimp.c
* app/core/gimpcontext.c
* app/core/gimpdatafactory.c
* app/core/gimpdatafactory.h
* app/dialogs/convert-dialog.c
* app/dialogs/palette-import-dialog.c
* app/pdb/gimppdb-utils.c
* app/widgets/gimpbrushfactoryview.c
* app/widgets/gimpdataeditor.c
* app/widgets/gimpdatafactoryview.c
* app/widgets/gimpselectiondata.c
* app/widgets/gimpviewablebox.c
* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/gradient_select.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/palette_select.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/pattern_select.pdb
* tools/pdbgen/pdb/patterns.pdb: Use the getters.


* app/pdb/brush-select-cmds.c
* app/pdb/brushes-cmds.c
* app/pdb/gradient-select-cmds.c
* app/pdb/gradients-cmds.c
* app/pdb/palette-select-cmds.c
* app/pdb/palettes-cmds.c
* app/pdb/pattern-select-cmds.c
* app/pdb/patterns-cmds.c: Regenerated.

svn path=/trunk/; revision=27812
2008-12-19 21:58:17 +00:00
Sven Neumann 91189b62b2 reverted last change, it was bogus.
2008-12-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-png.c: reverted last change, it was 
bogus.


svn path=/trunk/; revision=27808
2008-12-17 19:33:30 +00:00
Sven Neumann a6f377dd02 use a tile cache to optimize pixel access.
2008-12-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-png.c (load_image) (save_image): use a 
tile
	cache to optimize pixel access.


svn path=/trunk/; revision=27805
2008-12-17 19:23:25 +00:00
Sven Neumann 031a1dfe65 improved docs for gimp-plugin-help-register.
2008-12-16  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/plug_in.pdb: improved docs for
	gimp-plugin-help-register.

	* app/pdb/plug-in-cmds.c
	* libgimp/gimpplugin_pdb.c: regenerated.


svn path=/trunk/; revision=27797
2008-12-16 11:43:32 +00:00
Sven Neumann bd909141ed removed 'gegl:stress' from the blacklist. It was put here on wrong
2008-12-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpgegltool.c 
(gimp_gegl_tool_operation_blacklisted):
	removed 'gegl:stress' from the blacklist. It was put here on 
wrong
	assumptions.


svn path=/trunk/; revision=27796
2008-12-16 08:04:09 +00:00
Sven Neumann 2158f66a65 tools/pdbgen/pdb/pattern.pdb tools/pdbgen/pdb/brushes.pdb
2008-12-15  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/pattern.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/brush.pdb
	* tools/pdbgen/pdb/patterns.pdb: need to do the change to
	temp_buf_get_data() here for the generated PDB code.


svn path=/trunk/; revision=27795
2008-12-15 08:15:09 +00:00
Sven Neumann 412c5b1806 reverted last change as it is totally bogus and the old code was correct.
2008-12-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimp.c: reverted last change as it is totally bogus 
and
	the old code was correct.


svn path=/trunk/; revision=27788
2008-12-14 19:04:05 +00:00
Martin Nordholts fbb4a7c9ec We shall unref in dispose() and free in finalize(), not vice versa.
* app/core/gimp.c: We shall unref in dispose() and free in
finalize(), not vice versa.

svn path=/trunk/; revision=27787
2008-12-13 17:27:50 +00:00
Martin Nordholts 364d2cd84f Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Partial merge of code from Aurimas Juška.

* app/core/gimpdata.c: Implement GimpTagged::get_identifier() and
GimpTagged::get_checksum().

* app/core/gimpbrush.c: 
* app/core/gimpgradient.c
* app/core/gimppalette.c
* app/core/gimppattern.c: Implement GimpTagged::get_checksum().
They all use the GimpData implementation of
GimpTagged::get_identifier().

svn path=/trunk/; revision=27784
2008-12-13 11:58:24 +00:00
Martin Nordholts 4cb231f53b Introduce temp_buf_get_data_size() and use it.
* app/base/temp-buf.[ch]
* app/widgets/gimpbrushselect.c
* app/widgets/gimppatternselect.c

svn path=/trunk/; revision=27783
2008-12-13 10:51:16 +00:00
Martin Nordholts ddaa0b48ec s/temp_buf_data/temp_buf_get_data/
* app/base/pixel-region.c
* app/base/temp-buf.c
* app/base/temp-buf.h
* app/core/gimpbrush-load.c
* app/core/gimpbrush-scale.c
* app/core/gimpbrush.c
* app/core/gimpbrushgenerated.c
* app/core/gimpgradient.c
* app/core/gimpimage.c
* app/core/gimppalette.c
* app/core/gimppattern-load.c
* app/core/gimppattern.c
* app/core/gimppreviewcache.c
* app/core/gimpviewable.c
* app/paint-funcs/paint-funcs-generic.h
* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimperaser.c
* app/paint/gimpheal.c
* app/paint/gimpink.c
* app/paint/gimppaintbrush.c
* app/pdb/brush-cmds.c
* app/pdb/brushes-cmds.c
* app/pdb/drawable-cmds.c
* app/pdb/image-cmds.c
* app/pdb/pattern-cmds.c
* app/pdb/patterns-cmds.c
* app/text/gimpfont.c
* app/tools/gimpiscissorstool.c
* app/vectors/gimpvectors-preview.c
* app/widgets/gimpbrushselect.c
* app/widgets/gimppatternselect.c
* app/widgets/gimpviewrenderer.c

svn path=/trunk/; revision=27782
2008-12-13 10:35:53 +00:00
Martin Nordholts 70ed5218d6 Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Partial merge of code from Aurimas Juška.

* app/core/gimpdata.[ch] (gimp_data_make_internal): Add an
'identifier' parameter/instance struct member that can be used to
identify the internal GimpData object across sessions. It is the
internal-object counterpart to a file path.

* app/core/gimp.c
* app/core/gimpcurve.c
* app/core/gimpbrush.c
* app/core/gimppattern.c
* app/core/gimppalette.c
* app/core/gimpgradient.c
* app/core/gimp-gradients.c: Assign an identifier to the the
internal GimpData objects.

svn path=/trunk/; revision=27781
2008-12-12 07:03:42 +00:00
Martin Nordholts 41ad6f4ea4 Clarify documentation.
* app/core/gimptagged.c (gimp_tagged_get_identifier): Clarify
documentation.

svn path=/trunk/; revision=27780
2008-12-12 05:52:01 +00:00
Martin Nordholts dca385281f Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Partial merge of code from Aurimas Juška.

* app/core/gimptag.c: A new minimal GimpTag type with only a
gimp_tag_equals() class function so that we can

* app/core/gimptagged.c
* app/core/gimpdata.c (gimp_data_add_tag, gimp_data_remove_tag):
Adapt these to GimpTag being an object instead of a GQuark.

* app/core/core-types.h: Update GimpTag typedef.

* app/core/Makefile.am: Add gimptag.[ch].

svn path=/trunk/; revision=27778
2008-12-11 22:04:05 +00:00
Martin Nordholts d975ea725f Sort typedefs.
* app/core/core-types.h: Sort typedefs.

svn path=/trunk/; revision=27777
2008-12-11 21:17:22 +00:00
Martin Nordholts 83f1184219 Remove references to typedefs in config-types.h that are more annoying
* app/core/core-types.h: Remove references to typedefs in
config-types.h that are more annoying than helpful.

svn path=/trunk/; revision=27776
2008-12-11 21:10:07 +00:00
Martin Nordholts 3588c72fb8 Remove weird const qualifier.
* app/core/gimptagged.c (gimp_tagged_add_tag): Remove weird const
qualifier.

svn path=/trunk/; revision=27775
2008-12-11 20:21:54 +00:00
Martin Nordholts 25668c1535 Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Partial merge of code from Aurimas Juška.

* app/core/gimptagged.[ch]: Added GimpTagged::get_identifier() and
GimpTagged::get_checksum().

svn path=/trunk/; revision=27774
2008-12-11 20:15:08 +00:00
Martin Nordholts 7a3646c6f0 s/gimp_tagged_get_get_tags/gimp_tagged_get_tags/
* app/core/gimptagged.[ch]

svn path=/trunk/; revision=27773
2008-12-11 07:37:06 +00:00
Sven Neumann bc5079d296 updated link to the color keywords in the SVG spec.
2008-12-10  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb-parse.c: updated link to the color 
keywords
	in the SVG spec.


svn path=/trunk/; revision=27772
2008-12-10 12:16:46 +00:00
Sven Neumann 83c66baef5 app/core/gimpchannel.c app/core/gimpdrawable-operation.c
2008-12-08  Sven Neumann  <sven@gimp.org>

	* app/core/gimpchannel.c
	* app/core/gimpdrawable-operation.c
	* app/core/gimpdrawablestack.c
	* app/core/gimpimage.c
	* app/core/gimpimagemap.c
	* app/core/gimplayer.c
	* app/core/gimpprojection.c: gegl_node_add_child() and
	gegl_node_remove_child() are public API in GEGL now.


svn path=/trunk/; revision=27770
2008-12-08 09:56:51 +00:00
Martin Nordholts bcb13c1378 app/core/gimp.c Sort #includes.
* app/core/gimp.c
* app/widgets/gimpdatafactoryview.c: Sort #includes.

svn path=/trunk/; revision=27766
2008-12-04 21:58:45 +00:00
Sven Neumann 73eccd7a22 Bug 563130 – Hue selection mode does not cross the 0-360 degrees line
2008-12-04  Sven Neumann  <sven@gimp.org>

	Bug 563130 – Hue selection mode does not cross the 0-360 degrees 
line

	* app/core/gimpimage-contiguous-region.c (pixel_difference):
	applied patch from Daniel Hornung.


svn path=/trunk/; revision=27764
2008-12-04 20:58:50 +00:00
Martin Nordholts 073b8ab9d5 Bug 563179 – Scrollbars not resized when we extend the canvas size
* app/display/gimpdisplayshell-handlers.c
(gimp_display_shell_size_changed_detailed_handler): Add explicit
call to gimp_display_shell_scroll_clamp_and_update() at the end to
make sure it is called.

svn path=/trunk/; revision=27762
2008-12-04 20:22:30 +00:00
Martin Nordholts bac6232e39 Pass arguments to gimp_action_group_add_actions() in the right order.
* app/actions/images-actions.c (images_actions_setup): Pass
arguments to gimp_action_group_add_actions() in the right order.

svn path=/trunk/; revision=27760
2008-12-04 19:32:15 +00:00
Sven Neumann b654d8f5c1 fixed an error in the documentation of the gimp-image-convert-rgb
2008-12-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/convert.pdb: fixed an error in the 
documentation
	of the gimp-image-convert-rgb procedure.

	* app/pdb/convert-cmds.c
	* libgimp/gimpconvert_pdb.c: regenerated.


svn path=/trunk/; revision=27758
2008-12-04 11:09:16 +00:00
Sven Neumann ff6bde0a88 also use the translation context for the tooltips.
2008-12-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpactiongroup.[ch]: also use the translation
	context for the tooltips.

	* app/actions/*.c: added translation context to all tooltips. 
Also
	improved some tooltips while I was on it.


svn path=/trunk/; revision=27757
2008-12-04 10:32:20 +00:00
Sven Neumann 1c30c4ae7b allow to save images that are plain white or plain black using the CCITT
2008-12-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-tiff-save.c (save_image)
	(image_is_monochrome): allow to save images that are plain white 
or
	plain black using the CCITT Fax compression methods.


svn path=/trunk/; revision=27756
2008-12-03 16:22:57 +00:00
Sven Neumann 0e3acdccb7 minor cleanup.
2008-12-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-ps.c: minor cleanup.


svn path=/trunk/; revision=27755
2008-12-03 16:07:32 +00:00
Sven Neumann 74e76f2c6a added an extra parameter for the translation context to all
2008-12-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpactiongroup.[ch]: added an extra parameter for
	the translation context to all gimp_action_group_add methods.

	* app/actions/*.c: added a translation context to all action
	labels. Also unified and improved the labels and tooltips in a 
few
	places.


svn path=/trunk/; revision=27754
2008-12-03 15:27:42 +00:00
Sven Neumann 6c82108236 check that the action name is unique before adding it to a
2008-12-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpactiongroup.c: check that the action name is
	unique before adding it to a GimpActionGroup.


svn path=/trunk/; revision=27751
2008-12-03 13:20:03 +00:00
Sven Neumann 86bab55c2f use "gegl:translate" instead of "gegl:shift".
2008-12-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimpitem.c (gimp_item_get_offset_node): use
	"gegl:translate" instead of "gegl:shift".


svn path=/trunk/; revision=27750
2008-12-03 12:31:07 +00:00
Sven Neumann 97eb65b2ba renamed GeglNode shift to translate. Use "gegl:translate" instead of
2008-12-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagemap.c: renamed GeglNode shift to translate.
	Use "gegl:translate" instead of "gegl:shift".


svn path=/trunk/; revision=27749
2008-12-03 11:29:15 +00:00
Sven Neumann 47612a393b use the G_KEY_FILE_DESKTOP defines from GLib.
2008-12-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-desktop-link.c: use the 
G_KEY_FILE_DESKTOP
	defines from GLib.


svn path=/trunk/; revision=27745
2008-12-02 14:18:53 +00:00
Sven Neumann ab94f83b90 added gimp_widgets_error_quark.
2008-12-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.def: added 
gimp_widgets_error_quark.


svn path=/trunk/; revision=27744
2008-12-01 09:14:27 +00:00
Martin Nordholts 43f810870b Added 'Since: GIMP 2.8' to GIMP_WIDGETS_ERROR.
* libgimpwidgets/gimpwidgets-error.h: Added 'Since: GIMP 2.8' to
GIMP_WIDGETS_ERROR.

* libgimpwidgets/gimpwidgets.h: Added gimpwidgets-error.h.

svn path=/trunk/; revision=27743
2008-12-01 07:44:14 +00:00
Martin Nordholts bb591631fe New files defining GIMP_WIDGETS_ERROR domain with currently only a
* libgimpwidgets/gimpwidgets-error.[ch]: New files defining
GIMP_WIDGETS_ERROR domain with currently only a
GIMP_WIDGETS_PARSE_ERROR error code.

* libgimpwidgets/Makefile.am: Add the new files here.

svn path=/trunk/; revision=27741
2008-11-30 21:25:02 +00:00
Sven Neumann 930772a763 Bug 562459 – PF_PALETTE: 'TypeError' when used in a plugin that is
2008-11-27  Sven Neumann  <sven@gimp.org>

	Bug 562459 – PF_PALETTE: 'TypeError' when used in a plugin that 
is
	registered in <Image>

	* plug-ins/pygimp/gimpui.defs (gimp_palette_select_button_new):
	the 'title' parameter is optional.


svn path=/trunk/; revision=27735
2008-11-27 20:49:14 +00:00
Michael Natterer 5a1cf727bf Bug 562427 – Compilation with --as-needed
2008-11-27  Michael Natterer  <mitch@gimp.org>

	Bug 562427 – Compilation with --as-needed

	* app/Makefile.am (gimp_console_2_7_LDADD): add $(GLIB_LIBS) so
	libgthread gets pulled in explicitely.


svn path=/trunk/; revision=27732
2008-11-27 19:21:03 +00:00
Sven Neumann 3cbb3dc994 Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
2008-11-27  Sven Neumann  <sven@gimp.org>

	Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not 
change
	consistently...

	* plug-ins/pygimp/gimpfu.py (SliderEntry): set the precision on
	the slider just as we do it for the spin-button.


svn path=/trunk/; revision=27730
2008-11-27 11:57:07 +00:00
Sven Neumann 44c92ad267 Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
2008-11-27  Sven Neumann  <sven@gimp.org>

	Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not 
change
	consistently...

	* plug-ins/pygimp/gimpfu.py (SpinnerEntry): initialize the
	spin-button the way that gtk_spin_button_new_with_range() is
	implemented.


svn path=/trunk/; revision=27726
2008-11-27 10:25:10 +00:00
Martin Nordholts aea5b1a9dc Bug 562366 – Default image dimensions are not correctly
transferred in the file/new dialog box

* app/dialogs/preferences-dialog.c
(prefs_template_select_callback): We need to copy the template in
the same way as in the New Image dialog.

* app/dialogs/image-new-dialog.c (image_new_dialog_set): ... and
when we copy the template to the New Image dialog.

svn path=/trunk/; revision=27724
2008-11-27 07:26:44 +00:00
Martin Nordholts 3db37671a4 Bug 562366 – Default image dimensions are not correctly
transferred in the file/new dialog box

* app/dialogs/preferences-dialog.c
(prefs_template_select_callback): We need to copy the template in
the same way as in the New Image dialog.

svn path=/trunk/; revision=27720
2008-11-26 19:15:27 +00:00
Sven Neumann 6ec38fb918 split spaghetti code into lots of helper functions.
2008-11-26  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-duplicate.c: split spaghetti code into lots
	of helper functions.


svn path=/trunk/; revision=27719
2008-11-26 07:20:04 +00:00
Sven Neumann 2766dea04f show the "invalid search term" message in the label below the list instead
2008-11-25  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocbrowserdialog.c (browser_search): show the
	"invalid search term" message in the label below the list 
instead
	of in the pane on the right side.


svn path=/trunk/; revision=27718
2008-11-25 20:05:19 +00:00
Sven Neumann 7bdf3a0df8 minor code cleanup.
2008-11-25  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c: minor code cleanup.


svn path=/trunk/; revision=27716
2008-11-25 08:20:56 +00:00
Martin Nordholts 5ddcda87e1 Sort entries.
* libgimpwidgets/Makefile.am: Sort entries.

svn path=/trunk/; revision=27715
2008-11-24 22:11:18 +00:00
Sven Neumann f4908263c8 removed reference to gimp-remote manual page in the generated gimprc
2008-11-22  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c: removed reference to gimp-remote
	manual page in the generated gimprc manual page.


svn path=/trunk/; revision=27712
2008-11-22 23:12:25 +00:00
Michael Natterer 558e2e17a9 make the entire selection API take GimpSelection arguments, not
2008-11-22  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpselection.[ch]: make the entire selection
	API take GimpSelection arguments, not GimpChannel.
	Clean up gimp_selection_load() a bit.

	* app/actions/select-commands.c
	* app/core/gimp-edit.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpimage-quick-mask.c
	* app/tools/gimpeditselectiontool.c
	* tools/pdbgen/pdb/selection.pdb: add the needed casts.

	* app/pdb/selection-cmds.c: regenerated.


svn path=/trunk/; revision=27711
2008-11-22 22:07:55 +00:00
Sven Neumann 3271c2a698 Bug 561899 – GIMP can't save to mounted filesystem if file exists
2008-11-22  Sven Neumann  <sven@gimp.org>

	Bug 561899 – GIMP can't save to mounted filesystem if file 
exists

	* plug-ins/file-uri/uri-backend-gvfs.c (copy_uri): pass the
	G_FILE_COPY_OVERWRITE flag to g_file_copy().


svn path=/trunk/; revision=27709
2008-11-22 16:55:32 +00:00
Sven Neumann 8d11c0c3e0 removed unused methods gimp_draw_tool_set_vectors() and
2008-11-21  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch]: removed unused methods
	gimp_draw_tool_set_vectors() and gimp_draw_tool_set_transform()
	and related infrastructure.


svn path=/trunk/; revision=27704
2008-11-21 21:43:43 +00:00
Sven Neumann 6b74d8d8d6 inlined local variables that are only used once.
2008-11-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrenderervectors.c
	(gimp_view_renderer_vectors_draw): inlined local variables that
	are only used once.


svn path=/trunk/; revision=27703
2008-11-21 21:15:29 +00:00
Sven Neumann ebc39ee055 moved vectors drawing to its own function.
2008-11-21  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.c (gimp_draw_tool_real_draw): moved
	vectors drawing to its own function.


svn path=/trunk/; revision=27702
2008-11-21 21:07:48 +00:00
Sven Neumann cdb30fb4e1 reordered functions to keep those that actually draw together.
2008-11-21  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch]: reordered functions to keep those
	that actually draw together.


svn path=/trunk/; revision=27698
2008-11-21 19:01:58 +00:00
Sven Neumann 64416069e0 app/core/gimpprojection.c (gimp_projection_get_tiles_at_level) cosmetics.
2008-11-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprojection.c (gimp_projection_get_tiles_at_level)
	cosmetics.

	* app/display/gimpdisplayshell-render.[ch]: added const 
qualifier.


svn path=/trunk/; revision=27697
2008-11-21 17:59:04 +00:00
Martin Nordholts 9f97829e98 Add gimpcolormapeditor.c to most recent ChangeLog entry (I forgot to
add it earlier)

svn path=/trunk/; revision=27696
2008-11-21 08:46:35 +00:00
Martin Nordholts 9cb700d7f2 For consistency, prefix the #warning:s with FIXME.
* app/widgets/gimpselectioneditor.c: For consistency, prefix the
#warning:s with FIXME.

svn path=/trunk/; revision=27695
2008-11-21 07:16:00 +00:00
Martin Nordholts 1cf1276793 Move the rest of the class instance members to GimpContainerPriv and
* app/core/gimpcontainer.[ch]: Move the rest of the class instance
members to GimpContainerPriv and rename the member num_children to
n_children.

svn path=/trunk/; revision=27694
2008-11-20 23:51:39 +00:00
Martin Nordholts 2f25fb132f Use GimpContainer getters instead of poking into the class
instance struct.

* app/actions/context-commands.c
* app/actions/data-commands.c
* app/actions/plug-in-commands.c
* app/actions/templates-commands.c
* app/core/gimp-utils.c
* app/core/gimpdrawablestack.c
* app/core/gimpitemstack.c
* app/core/gimplist.c
* app/gui/gui-vtable.c
* app/widgets/gimpcontainerbox.c
* app/widgets/gimpcontainercombobox.c
* app/widgets/gimpcontainereditor.c
* app/widgets/gimpcontainerentry.c
* app/widgets/gimpcontainergridview.c
* app/widgets/gimpcontainerpopup.c
* app/widgets/gimpcontainertreeview-dnd.c
* app/widgets/gimpcontainertreeview.c
* app/widgets/gimpcontainerview-utils.c
* app/widgets/gimpcontainerview.c
* app/widgets/gimpdataeditor.c
* app/widgets/gimpdatafactoryview.c
* app/widgets/gimpsettingsbox.c
* app/widgets/gimpviewablebutton.c

svn path=/trunk/; revision=27693
2008-11-20 23:43:58 +00:00
Martin Nordholts 5aeb568650 s/gimp_container_children_type/gimp_container_get_children_type/
s/gimp_container_policy/gimp_container_get_policy/
s/gimp_container_num_children/gimp_container_get_n_children/

* app/actions/actions.c
* app/actions/file-actions.c
* app/actions/file-commands.c
* app/actions/tool-options-actions.c
* app/actions/tools-actions.c
* app/actions/tools-commands.c
* app/actions/vectors-actions.c
* app/core/gimpcontainer-filter.c
* app/core/gimpcontainer.c
* app/core/gimpcontainer.h
* app/core/gimpimage-convert.c
* app/core/gimpimage-flip.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-resize.c
* app/core/gimpimage-rotate.c
* app/core/gimpimage-scale.c
* app/core/gimpimage-undo.c
* app/core/gimpimage.c
* app/core/gimpimagefile.c
* app/core/gimplist.c
* app/core/gimpundostack.c
* app/dialogs/palette-import-dialog.c
* app/dialogs/quit-dialog.c
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-layer-select.c
* app/display/gimpdisplayshell-title.c
* app/gui/gui-vtable.c
* app/menus/tool-options-menu.c
* app/tools/gimp-tools.c
* app/widgets/gimpcontrollerlist.c
* app/widgets/gimpimagepropview.c
* app/widgets/gimpsettingsbox.c
* app/widgets/gimpviewablebutton.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c

svn path=/trunk/; revision=27692
2008-11-20 22:45:19 +00:00
Martin Nordholts 807095548b Don't expose class instance members marked as private.
* app/core/gimpcontainer.[ch]: Don't expose class instance members
marked as private.

svn path=/trunk/; revision=27691
2008-11-20 19:19:54 +00:00
Michael Natterer 37cff850af remove members "quick_mask_changed" and "alpha_changed" (the former was
2008-11-20  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpundo.h (struct GimpUndoAccumulator): remove members
	"quick_mask_changed" and "alpha_changed" (the former was unused
	and the latter is entirely handled by the image's flush
	accumulator now.

	* app/core/gimpimage-undo.c
	* app/core/gimplayerundo.c: changed accordingly.


svn path=/trunk/; revision=27690
2008-11-19 23:39:28 +00:00
Michael Natterer b50a3994da image->quick_mask_state is a boolean, return it directly instead of "state
2008-11-20  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-quick-mask.c (gimp_image_get_quick_mask_state):
	image->quick_mask_state is a boolean, return it directly instead
	of "state != NULL".


svn path=/trunk/; revision=27688
2008-11-19 23:34:43 +00:00
Sven Neumann 69452f96a1 fixed typo
svn path=/trunk/; revision=27685
2008-11-19 08:19:32 +00:00
Sven Neumann d43a0fbf19 Bug 558454 – Plugin Map Color Range disapears from GIMP
2008-11-19  Sven Neumann  <sven@gimp.org>

	Bug 558454 – Plugin Map Color Range disapears from GIMP

	* plug-ins/script-fu/scripts/Makefile.am

	* plug-ins/script-fu/scripts/plug-in-compat.init: new file
	providing compatibility with plug-ins from older GIMP
	versions. Contains a reimplementation of plug-in-color-map based
	on ideas and code from Eric Lamarque.

	* plug-ins/script-fu/scheme-wrapper.c (tinyscheme_init): load 
the
	plug-in-compat.init file.


svn path=/trunk/; revision=27683
2008-11-19 08:17:28 +00:00