Commit Graph

24066 Commits

Author SHA1 Message Date
Sven Neumann aa5cca0002 some more cleanups.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: some more cleanups.


svn path=/trunk/; revision=26748
2008-08-25 06:46:26 +00:00
Khoem Sokhem 694a713294 Khmer translations updated
svn path=/trunk/; revision=26747
2008-08-25 03:26:59 +00:00
Lars-Peter Clausen 141e7eb460 Moved execution into global namespace. Fixes import statements inside of
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into
	global namespace. Fixes import statements inside of evaled code.


svn path=/trunk/; revision=26746
2008-08-24 16:54:38 +00:00
Lars-Peter Clausen 0527aaa3e4 Fix wrong strcmp evaluation.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
	evaluation.


svn path=/trunk/; revision=26745
2008-08-24 16:38:23 +00:00
Lars-Peter Clausen c796bca92f Fix method format string, so the method is actual callable in a script.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,
	drw_transform_flip_simple): Fix method format string, so the
	method is actual callable in a script.


svn path=/trunk/; revision=26744
2008-08-24 16:31:35 +00:00
Martin Nordholts ee44ab3d32 Set page_size for the Ouput/Input Levels lower/upper adjustments to 0 to
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimplevelstool.c (gimp_levels_tool_dialog): Set
	page_size for the Ouput/Input Levels lower/upper adjustments to 0
	to adapt to new and more correct value clamping in GTK+.

svn path=/trunk/; revision=26743
2008-08-24 13:57:42 +00:00
Martin Nordholts 6bbeb8ef93 Updated for 2.6 release.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* authors.xml: Updated for 2.6 release.

	* AUTHORS: Regenerated.

svn path=/trunk/; revision=26742
2008-08-24 11:24:12 +00:00
Martin Nordholts 8f5adb2f62 Prevent the popup from being positioned far away from the click position.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): Prevent the popup from being
	positioned far away from the click position. This is further work
	on bug #362915.

svn path=/trunk/; revision=26741
2008-08-24 08:56:02 +00:00
Martin Nordholts f50037c474 Further clarify and simplify.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): Further clarify and simplify.

svn path=/trunk/; revision=26740
2008-08-24 08:31:45 +00:00
Martin Nordholts f887047d6e Correct the positioning calculation (while still retaining current overall
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): Correct the positioning
	calculation (while still retaining current overall behaviour).

svn path=/trunk/; revision=26739
2008-08-24 08:05:07 +00:00
Martin Nordholts 513d0c9b46 Use a define for border width.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_draw_marker): Use a define for border width.

svn path=/trunk/; revision=26738
2008-08-24 07:10:31 +00:00
Martin Nordholts fa3b6cdb1a Don't redraw the view, only invalidate it. This causes the redraw to occur
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_set_marker): Don't redraw the view, only
	invalidate it. This causes the redraw to occur in an idle-handler
	intead of each time this function is called, which reduces flicker
	when opening new images. Stil some flicker left though...

svn path=/trunk/; revision=26737
2008-08-24 06:02:21 +00:00
Sven Neumann 93e5a3d293 use a constant to decide if we should decimate or interpolate.
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale) (scale_pr): use a
	constant to decide if we should decimate or interpolate.


svn path=/trunk/; revision=26736
2008-08-24 00:08:39 +00:00
Sven Neumann 510e21219f instead of iterating over tiles manually and using write_pixel_data_1() to
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: instead of iterating over 
tiles
	manually and using write_pixel_data_1() to write the data, use
	pixel_region_process() to iterate over the destination.


svn path=/trunk/; revision=26735
2008-08-23 23:59:09 +00:00
Sven Neumann bb61099be5 added more const qualifiers.
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: added more const qualifiers.


svn path=/trunk/; revision=26734
2008-08-23 23:43:31 +00:00
Sven Neumann c7f3b68c08 sprinkled with const qualifiers. Moved calculations out of the loops.
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): sprinkled with const
	qualifiers. Moved calculations out of the loops.


svn path=/trunk/; revision=26733
2008-08-23 23:13:18 +00:00
Sven Neumann d588580cba removed optimization of the case where the source and dest regions are the
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): removed optimization 
of
	the case where the source and dest regions are the same size. 
This
	should not happen any longer.


svn path=/trunk/; revision=26732
2008-08-23 22:58:16 +00:00
Sven Neumann 8187067243 avoid unnecessary scaling when scaling factor is 2^n. (pixel_average):
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (determine_scale): avoid
	unnecessary scaling when scaling factor is 2^n.
	(pixel_average): replaced with optimized pixel averager from
	tile-pyramid.c (from the gimp-2-4 branch with some minor
	corrections).


svn path=/trunk/; revision=26731
2008-08-23 22:43:21 +00:00
Sven Neumann 6203139692 replaced code that copies pixels from one tile-manager to another by a
2008-08-23  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): replaced code that
	copies pixels from one tile-manager to another by a call to
	copy_region().


svn path=/trunk/; revision=26730
2008-08-23 21:39:11 +00:00
Sven Neumann 82550ffe54 return with a proper PDB status type depending on the result of
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: return with a proper PDB status type
	depending on the result of gtk_print_operation_run(). When run
	non-interactively, pass the error message with the return 
values.


svn path=/trunk/; revision=26729
2008-08-23 17:11:40 +00:00
Sven Neumann d3ca13db06 applied patch from LightningIsMyName. Changes the script to not break if
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
	from LightningIsMyName. Changes the script to not break if 
called
	on a floating selection (bug #327681).


svn path=/trunk/; revision=26728
2008-08-23 16:29:39 +00:00
Lars-Peter Clausen d4fac257aa Don't dereference final_start_seg and final_end_seg if NULL.
2008-08-23  Lars-Peter Clausen  <lars@metafoo.de>

	* app/core/gimpgradient.c (gimp_gradient_segment_range_delete):
	Don't dereference final_start_seg and final_end_seg if NULL.


svn path=/trunk/; revision=26725
2008-08-23 13:20:54 +00:00
Lars-Peter Clausen aa129cfc1d Fix indentation in previous patch.
2008-08-23  Lars-Peter Clausen  <lars@metafoo.de>

	Fix indentation in previous patch.

	* tools/pdbgen/pdb/gradient.pdb
	* app/pdb/gradient-cmds.c


svn path=/trunk/; revision=26724
2008-08-23 13:18:13 +00:00
Lars-Peter Clausen 96e8524ce1 Don't crash if the index of the last segment is out of range.
2008-08-23  Lars-Peter Clausen  <lars@metafoo.de>

	* tools/pdbgen/pdb/gradient.pdb
	(gimp_gradient_segment_range_blend_(colors|opacity)): Don't crash 
	if the index of the last segment is out of range.

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


svn path=/trunk/; revision=26723
2008-08-23 12:51:10 +00:00
Sven Neumann ebea1b5ada dropped use of AM_LDFLAGS completely and use target-specific LDFLAGS
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/Makefile.am: dropped use of AM_LDFLAGS 
completely
	and use target-specific LDFLAGS instead.


svn path=/trunk/; revision=26721
2008-08-23 10:30:37 +00:00
Sven Neumann 41fef08ad7 only create and use a timer if GIMP_UNSTABLE is defined.
2008-08-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_init): only create and
	use a timer if GIMP_UNSTABLE is defined.


svn path=/trunk/; revision=26720
2008-08-22 22:47:06 +00:00
Sven Neumann ec12326ccb app/widgets/gimpnavigationview.c hardcode the colors to black and white.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpnavigationview.c
	* libgimpwidgets/gimpscrolledpreview.c: hardcode the colors to
	black and white. Using theme colors doesn't make sense here.


svn path=/trunk/; revision=26719
2008-08-22 21:44:52 +00:00
Sven Neumann 943c4dba85 draw the navigation popup using Cairo, just as we do it in the core now.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.[ch]: draw the navigation
	popup using Cairo, just as we do it in the core now.


svn path=/trunk/; revision=26718
2008-08-22 21:30:33 +00:00
Sven Neumann 0b8e67f2b8 formatting
svn path=/trunk/; revision=26717
2008-08-22 21:04:28 +00:00
Sven Neumann 8c5fe3b574 indicate the viewport by shading the outside region using Cairo.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpnavigationview.c: indicate the viewport by
	shading the outside region using Cairo.


svn path=/trunk/; revision=26716
2008-08-22 20:58:46 +00:00
Martin Nordholts 9a52100e44 Align static function prototypes.
2008-08-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c: Align static function
	prototypes.

svn path=/trunk/; revision=26715
2008-08-22 18:51:36 +00:00
Martin Nordholts 84b0b44d49 Don't confine the cursor to the navigation view window because that
2008-08-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_grab_pointer): Don't confine the cursor to
	the navigation view window because that limitation only feels in
	the way with overscroll.

svn path=/trunk/; revision=26714
2008-08-22 16:30:52 +00:00
Michael Natterer ce00697368 #define GIMP_CANVAS_EVENT_MASK.
2008-08-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.h: #define GIMP_CANVAS_EVENT_MASK.

	* app/display/gimpcanvas.c (gimp_canvas_realize): use it here.


svn path=/trunk/; revision=26713
2008-08-22 16:05:46 +00:00
Michael Natterer c1e13e2c5d add gimp_canvas_scroll() which scrolls the canvas and makes the result
2008-08-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.[ch]: add gimp_canvas_scroll() which
	scrolls the canvas and makes the result visible immediately.

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll): use the new function.


svn path=/trunk/; revision=26712
2008-08-22 15:57:41 +00:00
Sven Neumann bf89d956a4 removed the "Use GEGL" check-box from the toolbox.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptoolbox.c: removed the "Use GEGL" check-box
	from the toolbox.

	* app/config/gimpcoreconfig.c: changed the default for 
"use-gegl"
	to FALSE (in preparation of the 2.6 release).

	* app/actions/debug-commands.[ch]
	* app/actions/debug-actions.c
	* menus/image-menu.xml.in: added a "Use GEGL" check-box to the
	Debug menu. Temporary solution until a final decision is made.


svn path=/trunk/; revision=26711
2008-08-22 15:33:02 +00:00
Sven Neumann 961683cc23 app/widgets/gimpaction.c app/widgets/gimpdockable.c
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpaction.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpradioaction.c
	* app/widgets/gimpstringaction.c
	* app/widgets/gimptoggleaction.c: added basic support for icon
	names for actions and dockables. Uses the stock-id as icon name
	if the icon theme provides an icon under this name.

	* app/dialogs/dialogs.c
	* app/actions/documents-actions.c
	* app/actions/dialogs-actions.c: use the "document-open-recent"
	icon for the document history.


svn path=/trunk/; revision=26710
2008-08-22 08:57:11 +00:00
Martin Nordholts cafc9289fc Adapted to play nicely with the overscroll feature. Basically remove
2008-08-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c: Adapted to play nicely with
	the overscroll feature. Basically remove limitations of the
	marker, but also draw the marker frame with an inner and outer
	border so it is possible to see on what side the viewport is when
	zoomed out and overscrolled to the max. This is further work on
	bug #362915.

svn path=/trunk/; revision=26709
2008-08-22 06:50:52 +00:00
Michael Natterer 041fd8e125 turn into a GtkContainer subclass mainly to reduce the diff to a local
2008-08-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.[ch]: turn into a GtkContainer subclass
	mainly to reduce the diff to a local hack I'm at. Also swallow
	some code that used to be called on the canvas widget externally.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): remove
	the swallowed code.

	* app/display/gimpdisplayshell-callbacks.h: remove canvas event
	mask define.


svn path=/trunk/; revision=26708
2008-08-21 23:55:58 +00:00
Sven Neumann cac2a79d31 bumped version to 2.5.4.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version to 2.5.4.


svn path=/trunk/; revision=26707
2008-08-21 20:35:21 +00:00
Sven Neumann a512b2fab6 Made 2.5.3 development release.
2008-08-21  Sven Neumann  <sven@gimp.org>

        * Made 2.5.3 development release.


svn path=/trunk/; revision=26705
2008-08-21 20:08:59 +00:00
Sven Neumann 1cad29079f last-minute news update for 2.5.3
svn path=/trunk/; revision=26704
2008-08-21 19:18:03 +00:00
Sven Neumann 2b1bf9b77a app/plug-in/gimppluginprocedure.[ch] moved error handling for asynchronous
2008-08-21  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.[ch]
	* app/plug-in/gimptemporaryprocedure.c: moved error handling for
	asynchronous procedure calls to a central place. Use the plug-in
	label instead of the procedure name for the error message.


svn path=/trunk/; revision=26703
2008-08-21 18:09:41 +00:00
Sven Neumann c908bfc3fc plug-ins/script-fu/script-fu-scripts.c changed to actually return a
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-interface.[ch]: changed to 
actually
	return a meaningful return status when a script-fu procedure is 
run.


svn path=/trunk/; revision=26702
2008-08-21 17:35:52 +00:00
Michael Natterer 84c0b27708 Fix wrong news entry.
svn path=/trunk/; revision=26701
2008-08-21 17:15:44 +00:00
Sven Neumann 5e95e896b1 app/plug-in/gimppluginprocedure.c don't just free the return values when
2008-08-21  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.c
	* app/plug-in/gimptemporaryprocedure.c: don't just free the 
return
	values when running procedures asynchronously. Instead examine
	them and display the error message if there's one.

	* app/plug-in/gimppluginmanager-call.c
	(gimp_plug_in_manager_call_run_temp): return NULL if
	procedure->plug_in is not set.

	* app/plug-in/gimpplugin-message.c: comment.


svn path=/trunk/; revision=26700
2008-08-21 16:27:06 +00:00
Michael Natterer 3f37605f34 removed indentation from blocks after AC_ARG_WITH(), it's confusing
2008-08-21  Michael Natterer  <mitch@gimp.org>

	* configure.in: removed indentation from blocks after
	AC_ARG_WITH(), it's confusing otherwise because they appeared to
	be part of the macro. Added some newlines. Minor cleanups.


svn path=/trunk/; revision=26699
2008-08-21 15:56:32 +00:00
Sven Neumann bf1c783f44 plug-ins/script-fu/Makefile.am new files split out of
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-eval.[ch]: new files split out of
	script-fu-console.c[ch].

	* plug-ins/script-fu/script-fu-text-console.h: fixed comment.

	* plug-ins/script-fu/script-fu-console.[ch]: removed 
script-fu-eval
	procedure here.

	* plug-ins/script-fu/script-fu.c: changed accordingly.


svn path=/trunk/; revision=26698
2008-08-21 14:48:29 +00:00
Sven Neumann c85fc6eb21 formatting.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c (script_fu_run): formatting.


svn path=/trunk/; revision=26697
2008-08-21 14:01:17 +00:00
Sven Neumann 7c5fa991a4 follow plug-in name changes
svn path=/trunk/; revision=26696
2008-08-21 13:55:08 +00:00
Sven Neumann 105966b07e follow plug-in name changes.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* POTFILES.skip: follow plug-in name changes.


svn path=/trunk/; revision=26695
2008-08-21 13:40:19 +00:00