Commit Graph

13244 Commits

Author SHA1 Message Date
Sven Neumann 5a016a752f Reverted my change. It was bogus since Noisify is actually Scatter RGB. 2004-09-05 00:28:47 +00:00
Sven Neumann ea84f1ba6c libgimp/libgimp-sections.txt added gimp_image_resize_to_layers().
2004-09-05  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpimage.sgml: added gimp_image_resize_to_layers().
2004-09-05 00:17:28 +00:00
Simon Budig 0f46fb7fdf improved documentation for gimp_image_resize_to_layers
2004-09-05  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/image.pdb: improved documentation for
	gimp_image_resize_to_layers

	* libgimp/gimp.def
	* devel-docs/libgimp/libgimp-sections.txt: added
	gimp_image_resize_to_layers

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.c: regenerated
2004-09-05 00:13:22 +00:00
Sven Neumann 6fd8da2266 added libgimpwidgets/gimppreviewarea.c.
2004-09-05  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: added libgimpwidgets/gimppreviewarea.c.

	* de.po: updated german translation.
2004-09-04 23:22:39 +00:00
Simon Budig cf9951a0e4 NEWS: Updated for "Fit Canvas to Layers" 2004-09-04 22:43:21 +00:00
Simon Budig fe7eb34e6e Implement function to resize the image to contain all layers completely.
2004-09-05  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-resize.[ch]: Implement function to resize
	the image to contain all layers completely. Untabified.

	* app/actions/image-actions.c
	* app/actions/image-commands.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in: Make it available in the GUI.

	* tools/pdbgen/pdb/image.pdb: Make it available in the PDB.

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.
2004-09-04 22:08:43 +00:00
David Odin 967bac104d ported to GimpDrawablePreview.
* plug-ins/common/noisify.c: ported to GimpDrawablePreview.
2004-09-04 20:31:41 +00:00
Sven Neumann 0ef4dc1713 NEWS update, ChangeLog formatting 2004-09-04 08:53:10 +00:00
David Odin 3b3740ad85 added a note about the comment in info window and did some changes about the
plug-ins which now have a preview
2004-09-04 01:10:30 +00:00
Michael Schumacher abcf106b8e libgimp/gimp.def libgimpwidgets/gimpwidgets.def: added the check(erboard)
2004-09-04  Michael Schumacher <schumaml@cvs.gnome.org>

	* libgimp/gimp.def
	* libgimpbase/gimpbase.def: libgimpwidgets/gimpwidgets.def: added
	the check(erboard) related entries
2004-09-04 01:03:36 +00:00
Sven Neumann 35c218168e updated 2004-09-04 00:45:03 +00:00
Sven Neumann 2e1bceea1e libgimpwidgets/libgimpwidgets-sections.txt added
2004-09-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/libgimpwidgets-sections.txt
	* libgimpwidgets/tmpl/gimppreviewarea.sgml: added
	gimp_preview_area_menu_popup().
2004-09-04 00:12:01 +00:00
Sven Neumann 6ece077f87 pass a GdkEventButton to gimp_preview_area_menu_popup().
2004-09-04  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.[ch]: pass a GdkEventButton to
	gimp_preview_area_menu_popup().

	* libgimpwidgets/gimppreview.c: implement GtkWidget::popup_menu().
2004-09-03 23:41:39 +00:00
David Odin f7a2f14211 Changed the way we attach the preview area frame to the table so very
* libgimpwidgets/gimppreview.c: Changed the way we attach the preview
  area frame to the table so very small drawables don't cause a
  malicious bug.
2004-09-03 23:32:35 +00:00
David Odin a53b847ac8 ported to GimpDrawablePreview.
* plug-ins/common/sel_gauss.c: ported to GimpDrawablePreview.
2004-09-03 23:22:31 +00:00
David Odin 4525c29f66 ported to GimpDrawablePreview.
* plug-ins/common/sharpen.c: ported to GimpDrawablePreview.
2004-09-03 22:32:37 +00:00
Sven Neumann ecca201aa9 added gimp_preview_area_menu_popup(). Not completely finished yet...
2004-09-03  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.[ch]: added
	gimp_preview_area_menu_popup(). Not completely finished yet...

	* libgimpwidgets/gimppreview.c: use the new function.
2004-09-03 19:34:59 +00:00
Sven Neumann 4c91c25337 take care of setting the colormap for indexed drawables.
2004-09-03  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_set_drawable):
	take care of setting the colormap for indexed drawables.

	* libgimpwidgets/gimppreview.c (gimp_preview_area_event): pan with
	the first mouse button only. We will need the other buttons.
2004-09-03 16:52:26 +00:00
Sven Neumann 414c19762f ported to GimpDrawablePreview.
2004-09-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/grid.c: ported to GimpDrawablePreview.
2004-09-03 16:37:53 +00:00
Sven Neumann dd9cc198f5 left-align the preview.
2004-09-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plasma.c (plasma_dialog): left-align the preview.

	* plug-ins/common/grid.c (dialog): pack the preview as in other
	plug-in dialogs and embed it into a GtkFrame.
2004-09-03 14:41:31 +00:00
Michael Natterer 1c045ca77e removed "Configure input devices" button. Fixes bug #150177.
2004-09-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdevicestatus.c: removed "Configure input
	devices" button. Fixes bug #150177.
2004-09-03 14:26:50 +00:00
Simon Budig fc8e7632bb Applied modified patch by Kevin Cozens that implements a "Comments" tab in
2004-09-03  Simon Budig  <simon@gimp.org>

	* app/gui/info-window.c: Applied modified patch by Kevin Cozens
	that implements a "Comments" tab in the image info dialog.

	Fixes bug #151719.
2004-09-03 13:38:09 +00:00
Sven Neumann a1e5a55c7d removed unused function 2004-09-03 13:07:22 +00:00
Sven Neumann 9b314d0e81 swapped light and gray checks to get a checkerboard that matches the image
2004-09-03  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c (CHECK_COLOR): swapped light
	and gray checks to get a checkerboard that matches the image window.
2004-09-03 12:57:35 +00:00
Michael Natterer 9f31a8f858 added gimp_check_size() and gimp_check_type().
2004-09-03  Michael Natterer  <mitch@gimp.org>

	* libgimp/libgimp-sections.txt: added gimp_check_size() and
	gimp_check_type().

	* libgimp/tmpl/gimp.sgml: regenerated.
2004-09-03 12:22:38 +00:00
Michael Natterer 4085b1fecf replaced the never used "gdouble gamma" with 8 reserved gint8 and stuffed
2004-09-03  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpprotocol.h (struct _GPConfig): replaced the
	never used "gdouble gamma" with 8 reserved gint8 and stuffed two
	gint8 behind "gint8 show_tool_tips" where they fit in in a binary
	compatible way due to 32bit aligning of the following "gint32
	min_colors". Use the latter ones for "check_size" and
	"check_type".

	* libgimpbase/gimpprotocol.c (_gp_config_read,write): changed
	accordingly to pass the new stuff over the wire.

	* app/plug-in/plug-in-run.c: ditto. Pass the transpareny values
	from GimpDisplayConfig to plug-ins.

	* libgimp/gimp.[ch] (gimp_config): remember the new config values.
	(gimp_check_size,type): new functions returning the new config values.

	* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_init):
	use the new values to configure preview->area accordingly.
2004-09-03 12:19:26 +00:00
Sven Neumann 1b81142365 libgimpbase/gimpchecks.h moved check size and check color defines. It
2004-09-03  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpchecks.h
	* libgimpbase/gimplimits.h: moved check size and check color
	defines. It makes a lot more sense to keep them in gimpchecks.h.

	* libgimpbase/gimpchecks.c (gimp_checks_get_shades): documented.

	* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_draw):
	added a sanity check so we don't crash if the drawable pointer
	should ever be NULL here.
2004-09-03 11:18:56 +00:00
Sven Neumann bf441c106f actually add the new file 2004-09-03 09:47:05 +00:00
Sven Neumann 72d392f0df shut up CVS 2004-09-03 09:45:17 +00:00
Helvetix Victorinox bac9cfa083 a regression test now iterates over 8388625 pixels per pass.
* app/composite/gimp-composite-*test.c: a regression test now
	iterates over 8388625 pixels per pass.

* app/composite/gimp-composite-mmx.c
* app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-sse2.c:
	Ensured that a clobbered condition code register is reflected in
	the clobbered register list for each asm() statement.
	This should FIX bug #147013.
2004-09-03 02:53:19 +00:00
Sven Neumann 4fbc8764b4 libgimpbase/Makefile.am libgimpbase/gimpchecks.[ch] added
2004-09-03  Sven Neumann  <sven@gimp.org>

	* libgimpbase/Makefile.am
	* libgimpbase/gimpchecks.[ch] added gimp_checks_get_shades().

	* app/base/temp-buf.c
	* app/display/gimpdisplayshell-render.c
	* libgimpwidgets/gimppreviewarea.c: use the new function instead
	of replicating these numbers in three different places.
2004-09-03 00:06:21 +00:00
David Odin dfa47f2736 made the code much more readable by applying the gimp's coding standard
* plug-ins/gimpressionist/*.c: made the code much more readable by
  applying the gimp's coding standard (intentation, space, etc.), and
  remove the GTK_DISABLE_DEPRECATED warnings, since these files don't use
  any deprecated stuff anymore.
2004-09-02 23:28:44 +00:00
Michael Schumacher 331d85ba29 libgimp/gimpui.def libgimpbase/gimpbase.def added the preview and progress
2004-09-02  Michael Schumacher <schumaml@cvs.gnome.org>

	* libgimp/gimpui.def
	* libgimpbase/gimpbase.def
	* libgimpwidgets/gimpwidgets.def: added the preview and progress
	related entries
2004-09-02 19:54:11 +00:00
Michael Natterer 67f7f1dbea plug-ins/common/neon.c plug-ins/common/noisify.c plug-ins/common/sobel.c
2004-09-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/neon.c
	* plug-ins/common/noisify.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/spread.c
	* plug-ins/common/unsharp.c: fixed various coding style and naming
	issues and added some missing signal connections to update the new
	previews.
2004-09-02 18:55:20 +00:00
David Odin 6d69fae5d8 don't assume the preview has always the same size, and do the memory
* plug-ins/common/despeckle.c: don't assume the preview has always the
  same size, and do the memory allocation in preview_update(). As a side
  effect, this fix a segfault :-).  Also save the preview toggle state
  between invocations.
2004-09-02 17:49:51 +00:00
Sven Neumann 3f4de431c1 light and dark check color were swapped for GIMP_CHECK_TYPE_GRAY_CHECKS.
2004-09-02  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-render.c (check_combos): light and
	dark check color were swapped for GIMP_CHECK_TYPE_GRAY_CHECKS.

	* libgimpwidgets/gimppreviewarea.[ch]: added "check-size" and
	"check-type" properties and draw the checkerboard accordingly.
2004-09-02 15:39:07 +00:00
Sven Neumann b9bd1bfa06 app/base/base-enums.[ch] moved GimpCheckSize and GimpCheckType enums to
2004-09-02  Sven Neumann  <sven@gimp.org>

	* app/base/base-enums.[ch]
	* libgimpbase/gimpbaseenums.[ch]: moved GimpCheckSize and
	GimpCheckType enums to libgimpbase. Correctly prefix the enum
	values.

	* app/base/temp-buf.c
	* app/config/gimpdisplayconfig.c
	* app/display/gimpdisplayshell-render.c
	* app/pdb/fileops_cmds.c
	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
2004-09-02 14:28:37 +00:00
Michael Natterer dc572fc9e6 plug-ins/script-fu/script-fu-interface.c (script_fu_ok) use a GString for
2004-09-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_ok)
	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	use a GString for assembling the commands string instead of
	g_sprintf()ing into a buffer. Removes the need for a separate loop
	over all args to determine the buffer's length and makes the
	remaining code smaller and more readable.
2004-09-02 13:04:47 +00:00
Sven Neumann acc1d9bca4 updated API docs 2004-09-02 10:25:25 +00:00
Sven Neumann 50627802d0 made gimp_preview_draw() public, added some gtk-doc comments.
2004-09-02  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: made gimp_preview_draw() public,
	added some gtk-doc comments.
	(gimp_preview_toggle_callback): immidiately invalidate the preview.

	* plug-ins/common/gauss.c (gauss): fixed (and simplified) handling
	of zero radii by using the new GimpPreview API.
2004-09-02 10:23:52 +00:00
Helvetix Victorinox 072bd88d4f Regression tests now include printing the image type for each test.
* Added gimp_composite_addition_va8_va8_va8_mmx():
* Regression tests now include printing the image type for each test.
* Regenerated
2004-09-02 02:46:31 +00:00
Sven Neumann 8959450c2f plug-ins/common/borderaverage.c plug-ins/common/checkerboard.c
2004-09-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/borderaverage.c
	* plug-ins/common/checkerboard.c
	* plug-ins/common/diffraction.c
	* plug-ins/common/illusion.c
	* plug-ins/common/polar.c
	* plug-ins/common/ripple.c
	* plug-ins/common/spread.c
	* plug-ins/common/video.c: don't pass run_mode to
	gimp_rgn_iterator_new(), it's unused. Removes the need for ir being
	a global variable.
2004-09-02 01:23:09 +00:00
Michael Natterer 2a67415c51 app/display/gimpdisplay.c gracefully handle progress calls after the
2004-09-01  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplay.c
	* app/widgets/gimpprogressdialog.c: gracefully handle progress
	calls after the widget is destroyed. Re-fixes bug #150194.
2004-09-01 15:26:48 +00:00
Sven Neumann 3155d682a5 libgimp/gimpdrawablepreview.[ch] always show the "Preview" check button.
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.[ch]
	* libgimpwidgets/gimppreview.[ch]: always show the "Preview" check
	button. Simplified the preview APIs, moved the "size" style
	property to the GimpPreview class.

	* etc/gtkrc: changed the example accordingly.

	* plug-ins/common/despeckle.c
	* plug-ins/common/gauss.c
	* plug-ins/common/neon.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/spread.c
	* plug-ins/common/unsharp.c: follow change in GimpDrawablePreview API.
2004-09-01 14:01:10 +00:00
Michael Natterer aeb2888657 changed "guint history" to "gint history".
2004-09-01  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-types.h (struct SFOptions): changed
	"guint history" to "gint history".

	* plug-ins/script-fu/script-fu-interface.c: added callbacks for
	string entries and combo boxes and connect *all* widgets to callbacks.

	(script_fu_ok): don't touch the widgets at all but get the values
	directly now that the callbacks correctly write them to their
	structs.

	(script_fu_reset): don't copy the default values manually but
	simply set the default values on the widgets; their callbacks will
	do the rest.

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	added some line breaks and spaces to make it more readable.
2004-09-01 13:51:51 +00:00
Michael Natterer 527f33bb65 libgimp/Makefile.am libgimp/gimpui.h libgimp/gimpuitypes.h new widget
2004-09-01  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am
	* libgimp/gimpui.h
	* libgimp/gimpuitypes.h
	* libgimp/gimpprogressbar.[ch]: new widget GimpProgressBar which
	automatically redirects any progress calls to itself while
	it exists.

	* plug-ins/script-fu/script-fu-interface.c: removed all progress
	callback and simply use a GimpProgressBar.
2004-09-01 12:38:41 +00:00
Sven Neumann b76075922c set a busy cursor while the preview is being recalculated.
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: set a busy cursor while the
	preview is being recalculated.

	* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_draw_original):
	do nothing if there's no drawable.
2004-09-01 12:10:09 +00:00
Sven Neumann e397e4abc4 oops, swapped x and y variables.
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c (CHECK_COLOR): oops, swapped x
	and y variables.
2004-09-01 08:50:52 +00:00
Sven Neumann a7fb4a431a some minor changes, mainly cleanup.
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: some minor changes, mainly cleanup.
2004-09-01 08:18:13 +00:00
Manish Singh 2c82c9fca0 plug-ins/pygimp/gimpfu.py Hacked up support for the new progress
2004-09-01  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py
        * plug-ins/pygimp/gimpmodule.c: Hacked up support for the new
        progress interface. Emphasis on hacked.

        * plug-ins/pygimp/gimpmodule.c: Wrapped gimp_extension_enable(). Minor
        cleanups.

        * plug-ins/pygimp/pygimp-image.c
        * plug-ins/pygimp/pygimp-tile.c: Minor cleanups.
2004-09-01 07:57:15 +00:00