Commit Graph

13244 Commits

Author SHA1 Message Date
Manish Singh a0aa2e5c2a plug-ins/pygimp/plug-ins/gimpcons.py remove deprecated mainloop calls.
2004-08-31  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/gimpcons.py
        * plug-ins/pygimp/plug-ins/pdbbrowse.py: remove deprecated mainloop
        calls.
2004-09-01 05:30:47 +00:00
Sven Neumann d0a33caf03 reduced border size 2004-09-01 02:36:42 +00:00
Sven Neumann 4e513adc61 increased default preview size to 150 pixels. Added a border of 10 pixels
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.c: increased default preview size to
	150 pixels. Added a border of 10 pixels around the bounding box of
	the selection.

	* libgimpwidgets/gimppreview.[ch]: only show the GDK_FLEUR cursor
	if there's something to pan. Set the correct page size on the
	scrollbar adjustments.
2004-09-01 02:10:40 +00:00
Sven Neumann 3a0e874522 added new function gimp_preview_area_set_offsets().
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.[ch]: added new function
	gimp_preview_area_set_offsets().

	* libgimpwidgets/gimppreview.c: use the new function to let the
	checkerboard scroll with the preview.
2004-09-01 01:18:19 +00:00
Sven Neumann 6f7adcf985 delay the emission of the "invalidated" signal using a timeout. Removed
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: delay the emission of the
	"invalidated" signal using a timeout. Removed hack that used to
	invalidate the preview on button-release.

	* plug-ins/common/unsharp.c: no need to fiddle with the slider
	update policies any longer.
2004-08-31 23:37:04 +00:00
Sven Neumann ce1370bb2e added a boolean parameter to gimp_dialog_factory_dialog_new() to let the
2004-09-01  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.[ch]: added a boolean parameter to
	gimp_dialog_factory_dialog_new() to let the caller decide whether
	the window should be presented or not.

	* app/actions/dialogs-commands.c
	* app/actions/image-commands.c
	* app/actions/templates-commands.c
	* app/gui/gui-vtable.c
	* app/gui/gui.c
	* app/widgets/gimpsessioninfo.c: changed accordingly. Do not let
	gimp_dialog_factory_dialog_new() present the dialog if we need to
	change it after creation. This avoids annoying resizes, noticeable
	especially with the error dialog.
2004-08-31 22:41:15 +00:00
Sven Neumann cd4154e142 app/widgets/gimpdockable.c converted tabs to spaces.
2004-08-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c
	* libgimp/gimpdrawablepreview.c: converted tabs to spaces.
2004-08-31 21:29:30 +00:00
Sven Neumann e769d4d08c added a style property for the minimum size.
2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.c: added a style property for the
	minimum size.

	* etc/gtkrc: show how to adjust the size of GimpDrawablePreviews.
2004-08-31 21:15:03 +00:00
Michael Natterer a3bb332214 emit "clicked" on the edit_button only if it exists and is sensitive.
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdatafactoryview.c
	(gimp_data_factory_view_activate_item): emit "clicked" on the
	edit_button only if it exists and is sensitive. Fixes bug #151343.
2004-08-31 21:07:35 +00:00
Manish Singh 50dfacf981 cast plug_in_recv_message to GSourceFunc.
2004-08-31  Manish Singh  <yosh@gimp.org>

        * app/plug-in/plug-in.c (plug_in_open): cast plug_in_recv_message
        to GSourceFunc.
2004-08-31 20:30:23 +00:00
Sven Neumann 52504fbf6c oops, forgot to commit the ChangeLog entry 2004-08-31 20:12:58 +00:00
Sven Neumann 43c21e315e handle the widget size dynamically. Hide scrollbars when there's nothing
2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: handle the widget size dynamically.
	Hide scrollbars when there's nothing to scroll.

	* libgimp/gimpdrawablepreview.c: simplified a lot. The scrollbars
	are handled completely in the GimpPreview widget now.
2004-08-31 19:58:25 +00:00
Sven Neumann c6dd571113 removed the hardcoded preview size, removed some redundant assertions.
2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c: removed the hardcoded preview size,
	removed some redundant assertions.
2004-08-31 18:06:36 +00:00
Michael Natterer 3239f670c3 removed the GUI code... Also did some minor cleanups.
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.[ch]: removed the GUI code...
	Also did some minor cleanups.

	* plug-ins/script-fu/script-fu-interface.[ch]: ...and added it here.

	* plug-ins/script-fu/script-fu-types.h: new file keeping the
	various struct defs needed by both the above files.

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/siod-wrapper.c: changed accordingly.
2004-08-31 17:54:46 +00:00
Michael Natterer 79da6a9779 notify the "update" property on the preview, not the toggle.
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppreview.c (gimp_preview_toggle_callback):
	notify the "update" property on the preview, not the toggle.
2004-08-31 15:27:53 +00:00
Sven Neumann 95a29f9fdc allow to pan the preview with all mouse buttons. Set a cursor to indicate
2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppreview.c: allow to pan the preview with all mouse
	buttons. Set a cursor to indicate that panning is possible.
2004-08-31 15:13:31 +00:00
David Odin 06c4f31bb7 libgimpwidgets/gimppreview.c renamed the "updated" signal to "invalidated"
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreview.h: renamed the "updated" signal to
  "invalidated" and the confusing "update" virtual function to "draw".

Renamed the property with saner names, too.

Removed _get_width and _get_height functions in favor of a _get_size on.

Added a gimp_preview_invalidate function that emit the "invalidated"
signal if needed.

* libgimp/gimpdrawablepreview.c
* libgimp/gimpdrawablepreview.h: modified accordingly and fixed the
  scrollbar range.

* 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: modified accordingly.
2004-08-31 14:29:25 +00:00
Michael Natterer 111c6af7bc removed the script title label and moved the "About" button to the
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: removed the script title
	label and moved the "About" button to the action_area. Minor
	cleanups.
2004-08-31 14:20:38 +00:00
Michael Natterer 6b43c205d1 added GimpProgress parameter to gimp_drawable_transform_affine().
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-transform.[ch]: added GimpProgress
	parameter to gimp_drawable_transform_affine().

	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: show progress for "blend"
	and all transform functions.

	* app/pdb/edit_cmds.c
	* app/pdb/transform_tools_cmds.c: regenerated.
2004-08-31 14:17:33 +00:00
Sven Neumann 0586ac0ba6 don't use GDK_TOP_LEFT_ARROW to restore the default cursor, simply pass
2004-08-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: don't use GDK_TOP_LEFT_ARROW
	to restore the default cursor, simply pass NULL to
	gdk_window_set_cursor().
2004-08-31 14:02:10 +00:00
Michael Natterer 9e76c5a4bc added "GimpPaintInfo *paint_info" member and construct property. Changed
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintoptions.[ch]: added "GimpPaintInfo *paint_info"
	member and construct property. Changed gimp_paint_options_new()
	to take only a GimpPaintInfo parameter.

	* app/core/gimpitem.c (gimp_item_stroke)
	* app/core/gimppaintinfo.c (gimp_paint_info_new): changed accordingly.

	* app/core/gimpchannel.c (gimp_channel_stroke)
	* app/vectors/gimpvectors.c (gimp_vectors_stroke): use
	paint_options->paint_info->paint_type directly instead of casting
	to GimpToolOptions and using
	tool_options->tool_info->paint_info->paint_type (eek). Fixes crash
	when stroking via the PDB because newly created GimpToolOptions
	instances have no "tool_info" pointer yet.

	* tools/pdbgen/pdb/paint_tools.pdb: changed all paint PDB wrappers
	accordingly.

	* app/pdb/paint_tools_cmds.c: regenerated.
2004-08-31 13:20:57 +00:00
Michael Natterer 6965b0b881 set construct_param->foo, not construct_param*s*->foo, so we don't set the
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig.c (gimp_config_iface_duplicate): set
	construct_param->foo, not construct_param*s*->foo, so we don't set
	the first construct param again and crash.
2004-08-31 13:16:08 +00:00
Michael Natterer e64450b3c1 added "..." to the progress text.
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/cubism.c: added "..." to the progress text.
2004-08-31 11:45:16 +00:00
Michael Natterer edba0ee823 added "..." to "Revert".
2004-08-31  Michael Natterer  <mitch@gimp.org>

	* app/actions/file-actions.c (file_actions): added "..." to "Revert".
2004-08-31 11:43:42 +00:00
Sven Neumann 931eac64b3 libgimp/gimpuitypes.h moved the GimpDrawablePreview typedef to the header
2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpuitypes.h
	* libgimpwidgets/gimpwidgetstypes.h: moved the GimpDrawablePreview
	typedef to the header file that it belongs to.

	* libgimp/gimpdrawablepreview.[ch]: minor include cleanups and
	gtk-doc fixes.

2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimp/Makefile.am
	* libgimp/libgimp-docs.sgml
	* libgimp/libgimp-sections.txt
	* libgimp/libgimp.types
	* libgimp/tmpl/gimpdrawablepreview.sgml: updated for
	GimpDrawablePreview

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/libgimpwidgets-include.c: removed this file, it
	isn't needed since libgimpwidgets doesn't need to be linked
	against libgimp.

	* libgimpwidgets/libgimpwidgets-docs.sgml
	* libgimpwidgets/libgimpwidgets-sections.txt
	* libgimpwidgets/libgimpwidgets.types
	* libgimpwidgets/tmpl/gimppreview.sgml: updated for GimpPreview.
2004-08-31 09:16:47 +00:00
Sven Neumann e80ba517ba update the preview when the blur radius is being changed.
2004-08-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c (gauss_dialog): update the preview when
	the blur radius is being changed. gimp_coordinates_new() seems to
	be broken though; there shouldn't be two signal connections needed
	here.
2004-08-30 23:50:04 +00:00
Sven Neumann 4daabd3cdb actually commit my changes 2004-08-30 22:49:49 +00:00
Sven Neumann 2222be0f16 libgimp/gimpdrawablepreview.[ch] minor code cleanup, fixes to gtk-doc
2004-08-31  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.[ch]
	* libgimpwidgets/gimppreview.[ch]: minor code cleanup, fixes to
	gtk-doc comments and to the handling of object properties.
2004-08-30 22:49:06 +00:00
Sven Neumann 4454e2500a added libgimpwidgets/gimppreview.c.
2004-08-31  Sven Neumann  <sven@gimp.org>

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

	* de.po: updated german translation.
2004-08-30 22:48:18 +00:00
David Odin 18139487f9 libgimpwidgets/gimppreview.c added a GimpPreview widget, abstract base for
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreview.h: added a GimpPreview widget, abstract
  base for a GimpDrawablePreview.

* libgimpwidgets/Makefile.am
* libgimpwidgets/gimpwidgets.h
* libgimpwidgets/gimpwidgetstypes.h: modified accordingly.

* libgimp/gimpdrawablepreview.c
* libgimp/gimpdrawablepreview.h: added a GimpDrawablePreview widget
  to ease	the use of previews by plug-ins.

* libgimp/Makefile.am
* libgimp/gimpui.h: Changed 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: use a GimpDrawablePreview with these plug-ins.
2004-08-30 22:10:26 +00:00
Michael Natterer 7f0456374b added boolean return values to plug_in_progress_install(), uninstall() and
2004-08-30  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-progress.[ch]: added boolean return values
	to plug_in_progress_install(), uninstall() and cancel(). Added
	checks to make sure the installed progress_callback exists, has
	the correct signature and was installed by this plug-in.

	* tools/pdbgen/pdb/progress.pdb: use the return values to let the
	PDB wrappers succeed/fail.

	* app/pdb/progress_cmds.c: regenerated.
2004-08-30 21:03:52 +00:00
Michael Schumacher c603ea417c added gimp_progress_install & gimp_progress_uninstall
2004-08-30  Michael Schumacher <schumaml@cvs.gnome.org>

	* libgimp/gimp.def: added gimp_progress_install &
	gimp_progress_uninstall
2004-08-30 21:01:55 +00:00
Sven Neumann 78ee8e6036 document the fact that "run_mode" is unused. Also did some code cleanup.
2004-08-30  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpregioniterator.c: document the fact that "run_mode"
	is unused. Also did some code cleanup.
2004-08-30 20:43:48 +00:00
Michael Natterer c748ae75a4 always update the progress. Makes all "run_mode" parameters useless.
2004-08-30  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpregioniterator.c: always update the progress.
	Makes all "run_mode" parameters useless.
2004-08-30 20:07:08 +00:00
Michael Natterer 997db5f556 add "..." to the progress text.
2004-08-30  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/gauss.c: add "..." to the progress text.
2004-08-30 20:02:31 +00:00
Sven Neumann 97c32b8728 added some gtk-doc comments, could be improved further.
2004-08-30  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprogress.c: added some gtk-doc comments, could be
	improved further.
2004-08-30 19:19:02 +00:00
Sven Neumann aeb5f302d5 plug-ins/common/colortoalpha.c plug-ins/common/compose.c
2004-08-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colortoalpha.c
	* plug-ins/common/compose.c
	* plug-ins/common/decompose.c
	* plug-ins/common/film.c
	* plug-ins/fits/fits.c: always use the progress API, not doing it
	in non-interactive mode has always been wrong.
2004-08-30 19:01:41 +00:00
Manish Singh 13d9596812 return the user_data pointer on uninstall. Eases language binding work.
2004-08-30  Manish Singh  <yosh@gimp.org>

        * libgimp/gimpprogress.[ch] (gimp_progress_uninstall): return the
        user_data pointer on uninstall. Eases language binding work.
2004-08-30 18:36:43 +00:00
Michael Natterer 5d720209ae libgimp/libgimp-sections.txt libgimp/tmpl/gimpplugin.sgml moved remaining
2004-08-30  Michael Natterer  <mitch@gimp.org>

	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpplugin.sgml
	* libgimp/tmpl/gimpprogress.sgml: moved remaining progress stuff
	from "Plug-In" to "Progress".
2004-08-30 18:03:34 +00:00
Sven Neumann dfcc73ecb3 libgimp/libgimp-docs.sgml libgimp/libgimp-sections.txt
2004-08-30  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-docs.sgml
	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpprogress.sgml
	* libgimpbase/libgimpbase-sections.txt
	* libgimpbase/tmpl/gimpbaseenums.sgml: updated for new progress API.
2004-08-30 15:36:28 +00:00
Sven Neumann 1901ac2ff3 fixed drawing of brushes that extend beyond the preview.
2004-08-30  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpbrushmenu.c (gimp_brush_select_preview_draw): fixed
	drawing of brushes that extend beyond the preview.
2004-08-30 15:31:22 +00:00
Sven Neumann d1825782ea avoid excessive use of strdup() and strcmp(). The strings are all constant
2004-08-30  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpvectortool.[ch] (gimp_vector_tool_status_set):
	avoid excessive use of strdup() and strcmp(). The strings are all
	constant anyway.
2004-08-30 15:08:02 +00:00
Michael Natterer 509b88e815 Brought the PDB progress into a working state. Fixes bug #6010, addressed
2004-08-30  Michael Natterer  <mitch@gimp.org>

	Brought the PDB progress into a working state. Fixes bug #6010,
	addressed bugs #97266 and #135185 and unfortunately reopens bug
	#150194 (will fix that later).

	* libgimpbase/gimpbaseenums.h: added enum GimpProgressCommand.

	* app/core/gimppdbprogress.c
	* libgimp/gimpprogress.c: use the enum instead of integer
	constants for the different progress commands. Cleanup.

	* app/plug-in/plug-in-progress.c
	* app/plug-in/plug-in-run.c
	* app/plug-in/plug-in.c: switch bach to real refcouting for
	plug_in->progress (reopens bug #150194) and enabled the PDB
	progress code.

	* plug-ins/script-fu/script-fu-scripts.c: cleaned up the
	progress stuff and the script-fu interface a bit.

	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.
2004-08-30 14:57:24 +00:00
Manish Singh 1c4395c5c7 set can_recurse on the recv_message watch, so we don't block on recursive
2004-08-29  Manish Singh  <yosh@gimp.org>

        * app/plug-in/plug-in.c (plug_in_open): set can_recurse on the
        recv_message watch, so we don't block on recursive calls to the
        handler. plug_in_recv_message needs some refcounting help now
        though.
2004-08-29 22:21:53 +00:00
Helvetix Victorinox ed055fa66f app/composite/gimp-composite-x86.h app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-x86.h
* app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-sse2.c: Fixed a bunch of
  warnings due to bad type casting.
2004-08-29 21:06:31 +00:00
Helvetix Victorinox cbdcd0ee54 app/composite/gimp-composite-mmx.c app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-mmx.c
* app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-x86.h
* app/composite/gimp-composite-sse2.c:
  The last changes to fix the the clobber registers bug #147013.
  Commented out some dead code to be reviewed later.
2004-08-29 20:07:06 +00:00
Michael Natterer 065db21d0a Added an API to allow plug-ins to embed the progress for the actions they
2004-08-29  Michael Natterer  <mitch@gimp.org>

	Added an API to allow plug-ins to embed the progress for the
	actions they trigger into their own GUI (attention: half-done and
	broken code ahead...)

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimppdbprogress.[ch]: new object implementing dispatching
	progress calls to a temporary PDB procedure in a plug-in.

	* app/Makefile.am: force to link gimppdbprogress.o, bah!

	* app/plug-in/plug-in-progress.[ch]: added API to install,
	uninstall and cancel a PDB progress for this plug-in, but disabled
	the implementation because it doesn't work yet.

	* tools/pdbgen/pdb/progress.pdb: added pdb wrappers for the new
	install, uninstall and cancel functions.

	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimpprogress.[ch]: added an API around the PDB progress
	stuff.

	* app/pdb/internal_procs.c
	* app/pdb/progress_cmds.c
	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* plug-ins/script-fu/script-fu-scripts.c: use the new API to show
	the progress in the script-fu dialog.
2004-08-29 18:36:30 +00:00
Michael Schumacher 3cb42821c2 added gimp_scale_entry_set_logarithmic
2004-08-29  Michael Schumacher <schumaml@cvs.gnome.org>

	* libgimpwidgets/gimpwidgets.def: added
	gimp_scale_entry_set_logarithmic
2004-08-29 12:32:43 +00:00
Sven Neumann bbe2c8ca3f forgot to commit the ChangeLog entry 2004-08-29 12:20:04 +00:00
Sven Neumann 8b9456f6f2 don't emit critical warnings about a messed up state of GimpConfigWriter
2004-08-29  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfigwriter.c: don't emit critical warnings
	about a messed up state of GimpConfigWriter if the writer is
	disabled because of a write error that occured earlier.
2004-08-29 12:13:34 +00:00