Commit Graph

25133 Commits

Author SHA1 Message Date
Martin Nordholts a0d9f6e57e app: Rename file_save() parameter save_a_copy to change_saved_state
Rename file_save() parameter save_a_copy to change_saved_state since
that is the semantics it has now.
2009-05-06 15:03:30 +02:00
Martin Nordholts edac194b23 app: Move save-on-copy URI remembering to the appropriate place
The Save a copy-URI shall only be remembered when the URI has been
entered through the dialog, so move it from file_save() to
file_save_dialog_response(). This is a preparation for the future
where we need to pass TRUE to save_a_copy without the URI being
remembered.
2009-05-04 21:04:37 +02:00
Michael Natterer 0da1c4cb7c Some style cleanup. 2009-05-03 12:19:07 +02:00
Michael Natterer 07ba32d6f8 Stop accessing GimpPaintCore's coords members directly (no encapsulation yet).
* app/paint/gimppaintcore.[ch]: add
  gimp_paint_core_{get|set}_{current|last}_coords(), add "const GimpCoords*"
  parameter to ::paint() which gets core->cur_coords passed.

* app/paint/gimpsourcecore.[ch]: add "const GimpCoords*" to ::motion().

* app/paint/gimpbrushcore.c: use the new coords getters/setters instead
  of accessing GimpPaintCore members directly.

* app/paint/gimpairbrush.c
* app/paint/gimpclone.c
* app/paint/gimpconvolve.c
* app/paint/gimpdodgeburn.c
* app/paint/gimperaser.c
* app/paint/gimpheal.c
* app/paint/gimpink.c
* app/paint/gimppaintbrush.[ch]
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsmudge.c: change implementations of GimpPaintCore::paint()
  and GimpSourceCore::motion() accordingly. app/paint/ is now virtually
  free of direct access to the paint core's coords members. More to come...
2009-05-03 12:08:21 +02:00
Martin Nordholts 82d327a550 Revert "app: Move last-save URI management to file_save()"
This reverts commit f6cd700dd6. We
can't save the last-save-URI on such a low level.
2009-05-03 09:29:04 +02:00
Martin Nordholts f6cd700dd6 app: Move last-save URI management to file_save()
Move the logic to remember the URI of the last saved file from
file_save_dialog_response() to the more central place file_save().
2009-05-03 08:45:19 +02:00
Martin Nordholts 8064bbf22e app: Pass Gimp instead of GimpContext to file_save() 2009-05-03 08:35:01 +02:00
Martin Nordholts 3c1366a0c1 app: Merge almost identical higher level file_save() wrappers
Merge file_savefile_write_with_uri_and_proc() and
file_save_dialog_save_image() which contains the same logic. Call the
result file_save_dialog_save_image() in lack of a better name, and
keep it in file-save-dialog.[ch] for now in lack of a better place.
2009-05-02 15:58:32 +02:00
Martin Nordholts 290d433edf app: Remove image refs in file_save_dialog_save_image()
The function file_save() also refs the image so there is no for
file_save_dialog_save_image() to do the same.
2009-05-02 15:33:05 +02:00
Martin Nordholts 1bd506d91d app: Make file_save_dialog_save_image() more general
Move out specialized logic from file_save_dialog_save_image() to make
it more similar to file_write_with_uri_and_proc() in file-commands.c
2009-05-02 09:05:34 +02:00
Martin Nordholts 9a8efbe410 app: Remove unused variable 2009-05-01 17:29:17 +02:00
Martin Nordholts c5787f51fc app: Introduce gimp_file_dialog_get_dirname_from_uri()
Introduce gimp_file_dialog_get_dirname_from_uri() to improve
readability.
2009-05-01 17:29:02 +02:00
Martin Nordholts a93346d0a0 app: Gather save dialog uri defaults in one place
Gather save dialog uri defaults in one place. Move the small bits of
it from file_save_dialog_new() to gimp_file_dialog_set_save_image()
where the rest is.
2009-05-01 12:23:46 +02:00
Sven Neumann b0af6524b4 app/file: Rename gimpfile.h to gimp-file.h and fix include guards
The source filename convention would indicate that gimpfile.h
	holds code for the GimpFile object. Rename it to gimp-file.h
	to make clear that it doesn't.
2009-05-01 09:03:13 +02:00
Martin Nordholts e622dc3cad app: Introduce gimpfile.h
Introduce gimpfile.h which for now contains defines for GObject data
keys used when managing save and open dialog URI defaults. More are to
be added.
2009-04-30 20:00:18 +02:00
Martin Nordholts a51521fe1d app: Rename save-a-copy key
Rename "gimp-image-save-a-copy" key to "gimp-file-save-a-copy-uri"
since the key is more logical to have in the gimp file namespace and
the "-ur"i suffix is more consistent with other similar keys.
2009-04-30 19:58:55 +02:00
Martin Nordholts 30ff5a15e9 Adjust gimp.doap slightly for better display on git.gnome.org/cgit 2009-04-29 07:24:02 +02:00
Martin Nordholts 29ce36795e Add gimp.doap 2009-04-29 07:20:00 +02:00
Marco Ciampa f456d99bca Updated italian translation 2009-04-28 10:17:25 +02:00
Martin Nordholts d4fbcb01bb Add note to ChangeLog about it not being used during development
NOTE: After the migration to git the ChangeLog is no longer used
during development. Instead, it will be updated prior to every
release based on the git log.
2009-04-27 08:16:21 +02:00
Martin Nordholts 9e7edcd6f4 app: Introduce file_write_with_uri_and_proc()
Introduce file_write_with_uri_and_proc() so that the
file_save_cmd_callback() switch case becomes more managable and so
that we can reuse that logic later.
2009-04-26 17:22:56 +02:00
Alexia Death c3be07e937 Fixes to brush aspect ratio dynamics
Fixes to brush aspect ratios for parametric brushes
2009-04-26 12:08:41 +03:00
Alexia Death 6aafd34380 Adds dynamic aspect ratio for brushes. 2009-04-25 20:53:09 +03:00
Martin Nordholts 7bddad1320 app: Introduce file_save_dialog_unknown_ext_msg()
Introduce file_save_dialog_unknown_ext_msg() so that we don't need to
have a copy-pasted huge error message (and prepare for more intricate
message handling).
2009-04-25 18:14:13 +02:00
Martin Nordholts 64cbf6254f Convert Subversion references to git 2009-04-25 18:12:21 +02:00
Shlomi Fish 5f81acb2d2 Update link to GTK+ themes in README 2009-04-24 17:08:26 +02:00
Michael Natterer 42b28066b8 Move the straight line constrain code to GimpPaintCore.
* app/paint/gimppaintcore.[ch]: add gimp_paint_core_round_line()

* app/tools/gimppainttool.c: remove gimp_paint_tool_round_line() and call
above new function instead.
2009-04-22 21:22:08 +02:00
Michael Natterer 090e06ecdd Move the stuff in tools-utils to the core so it can be used from
app/paint/ in the next step.

* app/tools/Makefile.am
* app/tools/tools-utils.[ch]: removed.

* app/core/gimp-utils.[ch]: add gimp_constrain_line() instead.

* app/tools/gimpblendtool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpfreeselecttool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimppainttool.c: changed accordingly.
2009-04-22 21:08:42 +02:00
Sven Neumann 6fa2ece547 Avoid use of temporary files for accessing remote files
When using GIO/GVFS, remote files may have a local representation
provided by a FUSE mount. Try to detect this and access the file
directly instead of using a temporary file. Fallback to the old
behavior of using temporary files if GIO can't give us a local path
to the file.
2009-04-21 17:48:17 +02:00
Sven Neumann 74424325ab Fix default values for Image.new_layer() methods
Use image height instead of width as the default height of the
newly created layer (bug #579400).
2009-04-21 10:24:52 +02:00
Kappa8086 22e4fa3116 Updated Simplified Chinese translation. 2009-04-19 09:46:10 +08:00
Aron Xu b7a67e6c06 Updated zh_CN.po 2009-04-18 16:17:37 +08:00
Kappa8086 ff6df86052 Updated Simplified Chinese translations. 2009-04-18 16:07:45 +08:00
Kappa8086 4eecf3a391 Updated Simplified Chinese translations. 2009-04-18 16:04:59 +08:00
Michael Natterer efd34eb085 Add .gitignore 2009-04-18 00:08:19 +02:00
Michael Natterer 3ed83f3103 Ignore object files globally. 2009-04-17 23:36:42 +02:00
Michael Natterer 50199a542c Made GimpCoords* parameter of GimpPaintCore::start() const.
* app/paint/gimppaintcore.[ch]: made GimpCoords* parameter of
GimpPaintCore::start() const.

* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimpheal.c
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsourcecore.c: changed accordingly.
2009-04-17 22:29:25 +02:00
Shankar Prasad b4896d3e93 added kn.po and updated ChangeLog and LINGUAS
svn path=/trunk/; revision=28269
2009-04-16 07:04:54 +00:00
Tobias Mueller ed7b1a9c4d Remove the ICC profile when image will be converted from/to grayscale mode.
svn path=/trunk/; revision=28268
2009-04-13 20:14:49 +00:00
Aron Xu c2eeebf8f4 Fixed nplural error of zh_CN.po
svn path=/trunk/; revision=28266
2009-04-12 11:11:05 +00:00
Martin Nordholts 5803dc058b Improve Debug -> Show Image Graph output
Use the new gegl:introspect feature of showing the graph of nodes a
given node depends on. This gives much better depicted graphs.

svn path=/trunk/; revision=28265
2009-04-12 10:23:02 +00:00
Aron Xu 73b287148d Updated Simplified Chinese translations by kappa8086.
svn path=/trunk/; revision=28264
2009-04-12 06:07:51 +00:00
Aron Xu e780e4abf4 Updated Simplified Chinese translations by kappa8086.
svn path=/trunk/; revision=28263
2009-04-12 06:04:12 +00:00
Aron Xu 8f68d3fdb1 Updated Simplified Chinese translations by kappa8086.
svn path=/trunk/; revision=28262
2009-04-12 06:01:02 +00:00
Aron Xu 079608b374 Updated Simplified Chinese translations by kappa8086.
svn path=/trunk/; revision=28261
2009-04-12 05:57:25 +00:00
Michael Natterer e2dc72b168 various plug-in parameter cleanups that have piled up on my disk: some
2009-04-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c: various plug-in parameter cleanups that
	have piled up on my disk: some whitespace fixes and other
	formatting, but mostly changes to make plug-in boolean/enum
	parameter desciptions look more like the ones that are generated
	for core procedures.


svn path=/trunk/; revision=28260
2009-04-11 16:57:42 +00:00
Michael Natterer 83b37fb4f9 Bug 577575 – transform tool fills underlying extracted area wrongly
2009-04-03  Michael Natterer  <mitch@gimp.org>

	Bug 577575 – transform tool fills underlying extracted area wrongly

	* app/tools/gimpfliptool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c (gimp_*_tool_register): pass
	GIMP_CONTEXT_BACKGROUND_MASK to the register callback to the tools
	use the global background color.


svn path=/trunk/; revision=28236
2009-04-03 14:03:38 +00:00
Sven Neumann 94e626e1cc Bug 568479 – add PDB procedures to manipulate size of text box
2009-03-31  Sven Neumann  <sven@gimp.org>

	Bug 568479 – add PDB procedures to manipulate size of text box

	* tools/pdbgen/pdb/text_layer.pdb: add gimp-text-layer-resize,
	based on a patch from Barak Itkin.

	* app/pdb/internal-procs.c
	* app/pdb/text-layer-cmds.c
	* libgimp/gimptextlayer_pdb.[ch]: regenerated.


svn path=/trunk/; revision=28235
2009-03-31 19:07:12 +00:00
Sven Neumann 9ba967f0e0 simplified the code.
2009-03-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-uri/uri-backend-gvfs.c (copy_uri): simplified the
	code.


svn path=/trunk/; revision=28234
2009-03-31 09:52:58 +00:00
Michael Natterer bee31119ca Bug 555738 – Image display is wrong after undoing canvas size
2009-03-28  Michael Natterer  <mitch@gimp.org>

	Bug 555738 – Image display is wrong after undoing canvas size
	enlargement

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_size_changed_detailed_handler): call
	gimp_display_shell_expose_full() because resizing the canvas can
	leave all sorts of display areas unupdated otherwise.


svn path=/trunk/; revision=28230
2009-03-28 21:18:40 +00:00