Commit Graph

23601 Commits

Author SHA1 Message Date
Martin Nordholts 6f8f412fd4 Center the image after connecting to it. This is required if the image we
2008-08-03  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): Center
	the image after connecting to it. This is required if the image we
	connect to is smaller than the initial canvas size.

svn path=/trunk/; revision=26356
2008-08-03 17:57:13 +00:00
Martin Nordholts 6c48f2b601 Further work for completing bug #362915 that makes changes to the image
2008-08-03  Martin Nordholts  <martinn@svn.gnome.org>

	Further work for completing bug #362915 that makes changes to the
	image size (e.g when cropping) be much more nicely handled by
	display shell.

	* app/core/gimpimage.[ch]: Add new signal
	GimpImage::size-changed-detailed that is emited whenever
	GimpViewable::size-changed is. The new signal provides additional
	information, namely the previous origin relative to the current
	origin. Cliens choose what specific signal to listen to depending
	on how much info they need.

	* app/display/gimpdisplayshell-handlers.c: Connect to
	GimpImage::size-changed-detailed instead of
	GimpViewable::size-changed since the shell wants information about
	the previous image origin.
	(gimp_display_shell_resolution_changed_handler): Use
	gimp_display_shell_scale_resize() instead to avoid display
	garbage.

	* app/display/gimpdisplayshell-scale.[ch]: Add new utility
	function gimp_display_shell_center_image_on_next_size_allocate().

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_handle_size_changed_detailed): New function
	that replaces logic in gimp_display_shell_handle_size_changed and
	that takes previous-origin of the image into account and adjusts
	the offset so that the image content that remains doesn't move. If
	the window is resized on image resize, just center the image
	afterwards.

	* app/core/gimpimage-undo-push.[ch]
	(gimp_image_undo_push_image_size): Add previous-origin paremeters.

	* app/core/gimpimageundo.[ch]: Add and manage previous-origin
	properties so that the display shell offset can be appropriately
	adjusted also when undoing.

	* app/core/gimpundo.h
	* app/core/gimpimage-undo.c: Add previous_origin members to the
	undo accumulator and emit that information when the size of the
	image changes due to the undo.

	* app/core/gimpimage-crop.c (gimp_image_crop)
	* app/core/gimpimage-scale.c (gimp_image_scale)
	* app/core/gimpimage-rotate.c (gimp_image_rotate)
	* app/core/gimpimage-resize.c (gimp_image_resize_with_layers):
	Supply information about the previous-origin of the image to the
	size-changed signals and the undo system.

svn path=/trunk/; revision=26354
2008-08-03 11:35:53 +00:00
Djihed Afifi 900eedb5e5 Updated Arabic Translation by Khaled Hosny.
svn path=/trunk/; revision=26351
2008-08-02 08:48:36 +00:00
Djihed Afifi 04610e7e1e Updated Arabic Translation by Khaled Hosny.
svn path=/trunk/; revision=26347
2008-07-31 10:28:42 +00:00
Djihed Afifi 92299b97ef Updated Arabic Translation by Khaled Hosny.
svn path=/trunk/; revision=26346
2008-07-31 08:36:25 +00:00
Sven Neumann 5a0df95acf formatting.
2008-07-31  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-scale.c (gimp_image_scale): formatting.


svn path=/trunk/; revision=26345
2008-07-31 06:41:38 +00:00
Jakub Steiner 9973e56a80 new devel splash from Aurore Derriennic <aurore.d@gmail.com>
2008-07-30  Jakub Steiner <jimmac@ximian.com>

* data/images/gimp-splash.png: new devel splash from 
Aurore Derriennic <aurore.d@gmail.com>

svn path=/trunk/; revision=26342
2008-07-30 20:58:40 +00:00
Sven Neumann f4090ee7a2 attach the URI of the last opened image to the Gimp object.
2008-07-30  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-open-dialog.c (file_open_dialog_response):
	attach the URI of the last opened image to the Gimp object.

	* app/actions/file-commands.c (file_open_dialog_show): use the
	last opened URI as a fallback for initializing the dialog.


svn path=/trunk/; revision=26339
2008-07-30 14:53:09 +00:00
Sven Neumann da4e7fd43e plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl removed
2008-07-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/psd-save.c: removed psd-save source here ...

	* plug-ins/psd/Makefile.am
	* plug-ins/psd/psd-save.c: ... and added it back here.


svn path=/trunk/; revision=26335
2008-07-29 17:37:38 +00:00
Sven Neumann c0ed0699a1 added the real name of the author of the new PDB function.
2008-07-29  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: added the real name of the 
author
	of the new PDB function.

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


svn path=/trunk/; revision=26333
2008-07-29 07:27:40 +00:00
Djihed Afifi 083fb249d3 Updated Arabic Translation by .
svn path=/trunk/; revision=26332
2008-07-29 01:12:00 +00:00
Sven Neumann 48964f632e added gimp_vectors_copy().
2008-07-28  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-sections.txt: added gimp_vectors_copy().

	* libgimp/tmpl/gimpvectors.sgml: regenerated.


svn path=/trunk/; revision=26330
2008-07-28 14:37:53 +00:00
Sven Neumann 77402aae6b check that the passed vectors item is attached.
2008-07-28  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/edit.pdb (edit_stroke_vectors_invoker): check
	that the passed vectors item is attached.

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


svn path=/trunk/; revision=26329
2008-07-28 14:17:49 +00:00
Sven Neumann bef9ba2945 applied patch from LightningIsMyName adding the new PDB function
2008-07-28  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: applied patch from 
LightningIsMyName
	adding the new PDB function gimp-vectors-copy (bug #544212).

	* app/pdb/internal-procs.c
	* app/pdb/vectors-cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=26328
2008-07-28 14:13:18 +00:00
Sven Neumann c23c546df4 applied the same workaround for a memory leak in PangoFT2 (bug #143542) as
2008-07-27  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext-compat.c (text_get_extents): applied the 
same
	workaround for a memory leak in PangoFT2 (bug #143542) as was
	applied long ago in gimptextlayout.c.


svn path=/trunk/; revision=26324
2008-07-27 20:51:16 +00:00
Sven Neumann 7a78da0e55 app/text/gimptext-compat.c (text_get_extents) use the readonly variant of
2008-07-27  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext-compat.c (text_get_extents)
	* app/text/gimptextlayout-render.c (gimp_text_layout_render):
	use the readonly variant of pango_layout_iter_get_line().


svn path=/trunk/; revision=26323
2008-07-27 20:45:14 +00:00
Martin Nordholts 0a40def09c Bail out if there is no pending rectangle to synthesize a motion on. Fixes
2008-07-27  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_synthesize_motion): Bail out if there is no
	pending rectangle to synthesize a motion on. Fixes bug #544181.

svn path=/trunk/; revision=26322
2008-07-27 19:06:10 +00:00
Sven Neumann bb82fb8ccf renamed executable to 'psd-load'.
2008-07-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/psd/Makefile.am: renamed executable to 'psd-load'.


svn path=/trunk/; revision=26320
2008-07-27 18:59:04 +00:00
Marco Ciampa 02511d1c8d Updated italian translation
svn path=/trunk/; revision=26311
2008-07-26 01:27:59 +00:00
Marco Ciampa f966884432 Updated italian translation
svn path=/trunk/; revision=26310
2008-07-26 01:25:57 +00:00
Marco Ciampa 953ec9775a Updated italian translation
svn path=/trunk/; revision=26309
2008-07-26 01:15:52 +00:00
Marco Ciampa 31584af0a0 Updated italian translation
svn path=/trunk/; revision=26308
2008-07-26 01:12:29 +00:00
Jorge Gonzalez Gonzalez f43ef8eaa8 Updated Spanish translation by Paco Vila
svn path=/trunk/; revision=26306
2008-07-25 17:10:42 +00:00
Jorge Gonzalez Gonzalez 7b8034e130 Updated Spanish translation by Francisco Vila
svn path=/trunk/; revision=26304
2008-07-24 22:33:18 +00:00
Gil Forcada Codinachs ac4e29d597 Minor update to Catalan translation by Joaquim Perez
svn path=/trunk/; revision=26303
2008-07-24 22:12:03 +00:00
Sven Neumann c45fe6b7fa added missing prototypes.
2008-07-24  Sven Neumann  <sven@gimp.org>

	* app/widgets/gtkscalebutton.c: added missing prototypes.


svn path=/trunk/; revision=26302
2008-07-24 19:02:07 +00:00
Sven Neumann b9168c21d0 formatting.
2008-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimphelplocale.c: formatting.


svn path=/trunk/; revision=26301
2008-07-24 14:48:28 +00:00
Sven Neumann f7b3175af7 minor cleanup of the checks for the URI plug-in.
2008-07-24  Sven Neumann  <sven@gimp.org>

	* configure.in: minor cleanup of the checks for the URI plug-in.

	* plug-ins/uri/Makefile.am: changed accordingly.


svn path=/trunk/; revision=26300
2008-07-24 14:47:48 +00:00
Sven Neumann 1a2d2422dc use g_fopen().
2008-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-libcurl.c: use g_fopen().

	* plug-ins/uri/uri-backend-gvfs.c: formatting.


svn path=/trunk/; revision=26299
2008-07-24 14:43:40 +00:00
Sven Neumann 3ed10a56a5 renamed variables.
2008-07-24  Sven Neumann  <sven@gimp.org>

        * app/paint/gimppaintcore-stroke.c
        (gimp_paint_core_stroke_emulate_dynamics): renamed variables.


svn path=/trunk/; revision=26298
2008-07-24 11:24:20 +00:00
Sven Neumann 5624a717fe also implement brush dynamics emulation for stroking selections.
2008-07-23  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintcore-stroke.[ch]: also implement brush
	dynamics emulation for stroking selections.

	* app/core/gimpchannel.c: pass the 'emulate-dynamics' parameter 
to
	gimp_paint_core_stroke_boundary().


svn path=/trunk/; revision=26293
2008-07-23 12:20:45 +00:00
Sven Neumann 7c389ba534 don't report negative offsets, they would be interpreted wrongly.
2008-07-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsessioninfo.c 
(gimp_session_info_get_geometry):
	don't report negative offsets, they would be interpreted 
wrongly.


svn path=/trunk/; revision=26292
2008-07-23 11:45:39 +00:00
Sven Neumann 2eea018396 Based on a patch from Alexia Death (bug #543706):
2008-07-23  Sven Neumann  <sven@gimp.org>

	Based on a patch from Alexia Death (bug #543706):
	
	* app/paint/gimppaintcore-stroke.[ch]
	(gimp_paint_core_stroke_vectors): added code to emulate brush
	dynamics by modifying pressure and velocity along the stroke.

	* app/vectors/gimpvectors.c (gimp_vectors_stroke): pass the
	'emulate-dynamics' parameter to 
gimp_paint_core_stroke_vectors().


svn path=/trunk/; revision=26291
2008-07-23 08:30:22 +00:00
Sven Neumann dcbe611b8e app/widgets/gimpcontrollerinfo.c app/widgets/gimpcontrollerlist.c
2008-07-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollerlist.c
	* app/widgets/gimpdasheditor.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpgrideditor.c
	* app/widgets/gimppdbdialog.c
	* app/widgets/gimppluginaction.c
	* app/widgets/gimpstrokeeditor.c
	* app/widgets/gimptemplateeditor.c
	* libgimpwidgets/gimpcolorprofilecombobox.c: no need to cast the
	return value of g_value_dup_object().


svn path=/trunk/; revision=26290
2008-07-23 07:47:10 +00:00
Sven Neumann d77ee21b8c app/core/gimpguideundo.c app/core/gimpitemundo.c
2008-07-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpguideundo.c
	* app/core/gimpitemundo.c
	* app/core/gimplayermaskundo.c
	* app/core/gimppdbprogress.c
	* app/core/gimpstrokedesc.c
	* app/core/gimptooloptions.c
	* app/core/gimptoolpresets.c
	* app/paint/gimppaintoptions.c
	* app/text/gimpfont.c
	* app/tools/gimptool.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpcontrollereditor.c: no need to cast the return
	value of g_value_dup_object().


svn path=/trunk/; revision=26289
2008-07-23 06:47:23 +00:00
Gil Forcada Codinachs f279279e09 Updated Catalan translation by Joaquim Perez
svn path=/trunk/; revision=26288
2008-07-22 21:18:49 +00:00
Ignacio Casal Quinteiro c927e3c399 Fixed problem.
svn path=/trunk/; revision=26286
2008-07-22 19:32:02 +00:00
Ignacio Casal Quinteiro 9407236483 Updated Galician Translation by Frco. Javier Rial.
2008-07-22  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gl.po: Updated Galician Translation by Frco. Javier Rial.

svn path=/trunk/; revision=26285
2008-07-22 19:27:49 +00:00
Ignacio Casal Quinteiro 9795d1610d Updated Galician Translation by Frco. Javier Rial.
2008-07-22  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gl.po: Updated Galician Translation by Frco. Javier Rial.


svn path=/trunk/; revision=26284
2008-07-22 19:27:14 +00:00
Ignacio Casal Quinteiro 8f991e8970 Updated Galician Translation by Frco. Javier Rial.
2008-07-22  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gl.po: Updated Galician Translation by Frco. Javier Rial.

svn path=/trunk/; revision=26283
2008-07-22 19:26:37 +00:00
Ignacio Casal Quinteiro 0d475b8221 Updated Galician Translation by Frco. Javier Rial.
2008-07-22  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gl.po: Updated Galician Translation by Frco. Javier Rial.

svn path=/trunk/; revision=26282
2008-07-22 19:26:01 +00:00
Ignacio Casal Quinteiro fba9fb4c01 Updated Galician Translation by Frco. Javier Rial.
2008-07-22  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>

        * gl.po: Updated Galician Translation by Frco. Javier Rial.

svn path=/trunk/; revision=26281
2008-07-22 19:25:22 +00:00
Ignacio Casal Quinteiro a00de533d2 Updated Galician Translation.
svn path=/trunk/; revision=26280
2008-07-22 19:18:31 +00:00
Sven Neumann 343dbdf241 no need to cast the return value of g_value_dup_object().
2008-07-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcellrendererviewable.c: no need to cast the
	return value of g_value_dup_object().


svn path=/trunk/; revision=26279
2008-07-22 14:54:12 +00:00
Sven Neumann 023fa1490c check the return value of webkit_web_history_item_get_title() to guard us
2008-07-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/help-browser/dialog.c (build_menu): check the return
	value of webkit_web_history_item_get_title() to guard us against
	a (reported) bug in WebKit.


svn path=/trunk/; revision=26278
2008-07-22 14:53:14 +00:00
Michael Natterer f3ffe972eb guard against g_file_query_info() returning NULL (if the file doesn't
2008-07-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_get_icon): guard against
	g_file_query_info() returning NULL (if the file doesn't exist or
	whatever error).


svn path=/trunk/; revision=26277
2008-07-22 14:50:37 +00:00
Michael Natterer 7750d317c8 set scroll_lock to TRUE while moving or creating sample points so the
2008-07-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcolortool.c: set scroll_lock to TRUE while moving
	or creating sample points so the image doesn't scroll while a new
	sample point is dragged from the rulers and sample points can be
	deleted by dragging them out of image without scrolling at the
	same time.


svn path=/trunk/; revision=26276
2008-07-22 14:43:52 +00:00
Sven Neumann a00579917a only use the position from the event coordinates when creating or
2008-07-22  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpvectortool.c: only use the position from the 
event
	coordinates when creating or modifying strokes. Initialize all
	other GimpCoords fields with default values.


svn path=/trunk/; revision=26275
2008-07-22 12:33:15 +00:00
Sven Neumann 9fa59a22fd formatting
2008-07-22  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpvectortool.c: formatting

svn path=/trunk/; revision=26274
2008-07-22 11:12:16 +00:00
Sven Neumann be7d770ad3 template can be const
svn path=/trunk/; revision=26273
2008-07-22 10:56:35 +00:00