Commit Graph

8793 Commits

Author SHA1 Message Date
William Skaggs f7cca5f2f2 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpchannel-combine.c: improve anti-aliasing for
	elliptical selections, as described in bug #147836.
2004-07-18 19:31:29 +00:00
Sven Neumann 55c03a25b5 don't start a comment with /** unless it's meant to be parsed by gtk-doc.
2004-07-18  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite-mmx.h: don't start a comment with
	/** unless it's meant to be parsed by gtk-doc.

	* app/actions/Makefile.am:
	* app/actions/file-dialog-commands.[ch]: removed, not used any
	longer.
2004-07-18 18:24:32 +00:00
Philip Lafleur a1c89069db Check if the array index is legal before using it, not the other way
2004-07-18  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/paint/gimpink-blob.c (blob_make_convex): Check if the
	array index is legal before using it, not the other way around.
	Fixes bug #144856.
2004-07-18 09:10:17 +00:00
Philip Lafleur 68aa11c012 Fixed a write to unallocated memory that was causing crashes in various
2004-07-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/polar.c (dialog_update_preview): Fixed a
	write to unallocated memory that was causing crashes in various
	spots.
2004-07-18 01:45:57 +00:00
Philip Lafleur 774b116e08 moved array initialization out of variable declaration. Fixes bug #147799.
2004-07-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/polar.c (polarize_func): moved array
	initialization out of variable declaration. Fixes bug #147799.
2004-07-18 00:30:56 +00:00
Michael Natterer 09c6ee7363 added the removed help IDs back.
2004-07-17  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h: added the removed help IDs back.

	* app/widgets/gimpfileprocview.[ch]: cache all file_procs' help
	IDs and added gimp_file_proc_view_get_help_id() which returns the
	selected item's help ID.

	* app/widgets/gimpfiledialog.c: added a custom help func which
	shows the help for the selected file_proc if the proc_view has the
	focus.
2004-07-17 19:53:05 +00:00
Sven Neumann d95059db48 use GIMP_STOCK_WEB for "file-open-location".
2004-07-17  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c (file_actions): use GIMP_STOCK_WEB
	for "file-open-location".

	* app/widgets/gimpfiledialog.c: create the scrolled window with
	shadow_type GTK_SHADOW_IN.

	* app/widgets/gimpfileprocview.c (gimp_file_proc_view_new): skip
	procedures that register a prefix (the URL loader).

	* app/widgets/gimphelp-ids.h: removed help IDs that used to be
	used from the file-open and file-save menus.

	* plug-ins/common/xwd.c (query): "X window dump" seems to be more
	appropriate than "X window image".
2004-07-17 13:06:59 +00:00
Sven Neumann 996b45696e app/actions/Makefile.am app/actions/file-dialog-actions.[ch]
2004-07-17  Sven Neumann  <sven@gimp.org>

	* app/actions/Makefile.am
	* app/actions/file-dialog-actions.[ch]
	* app/actions/file-open-actions.[ch]
	* app/actions/file-save-actions.[ch]: these aren't needed any
	longer.

	* app/actions/actions.c: changed accordingly.

	* app/menus/Makefile.am
	* app/menus/file-dialog-menu.[ch]
	* app/menus/file-open-menu.[ch]
	* app/menus/file-save-menu.[ch]: these aren't needed any longer.

	* app/menus/menus.c: changed accordingly.

	* menus/Makefile.am
	* menus/file-open-menu.xml
	* menus/file-save-menu.xml: these are also not needed any longer.
2004-07-17 12:19:58 +00:00
Philip Lafleur a23024eb2b Applied a patch from Brion Vibber that fixes corruption when saving
2004-07-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/bmp/bmpwrite.c (WriteImage): Applied a patch from
	Brion Vibber that fixes corruption when saving RLE-encoded
	BMPs on big endian hosts. Fixes bug #147759.
2004-07-17 11:33:03 +00:00
Shlomi Fish 7ddb6a6a9e normalized the identifiers of general.c and general.h. Also, renamed a
* plug-ins/gimpressionist/: normalized the identifiers of
general.c and general.h. Also, renamed a callback from _store
to simply _callback to avoid confusion with the _store methods.
Some of the member variables of the pcvals struct were changed
as a result.
2004-07-17 09:43:46 +00:00
Helvetix Victorinox 47b1730948 We've had trouble compiling with the Intel compiler which
identifies itself as GCC, but doesn't support the same extended
assembly features/misfeatures as GCC.  With the help of the Intel
compiler group, we've determined that the Intel compiler can be
identified at compile time by the definition of the preprocessor
variable __INTEL_COMPILER.

These changes make all of the assembly code currently written to
simply avoid the Intel compiler.

This is an interim solution to get a build working despite the
Intel compiler.  A more correct solution has been identified, see
the discussion of bug #147013 for more information.
2004-07-17 05:24:08 +00:00
Sven Neumann 76a5689fc5 also register the internal XCF handlers according to the new scheme.
2004-07-17  Sven Neumann  <sven@gimp.org>

	* app/xcf/xcf.c (xcf_init): also register the internal XCF
	handlers according to the new scheme.

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/hrz.c: removed the HRZ file plug-in since it
	doesn't seem to be very useful.
2004-07-16 22:54:53 +00:00
Sven Neumann 81bdb3c8d0 use g_slist_prepend() instead of g_slist_append().
2004-07-17  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add)
	(plug_ins_init_file): use g_slist_prepend() instead of
	g_slist_append().

	* plug-ins/common/url.c (query): ported to the new PDB registration
	scheme.
2004-07-16 22:45:03 +00:00
Sven Neumann 5222925694 sort the file procedures by their menu labels.
2004-07-16  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_init): sort the file procedures
	by their menu labels.

	* app/widgets/gimpfileprocview.c: removed the sort function here.
2004-07-16 21:47:06 +00:00
Sven Neumann ccf8ed69e7 app/widgets/Makefile.am app/widgets/widgets-types.h added new widget that
2004-07-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpfileprocview.[ch]: added new widget that offers
	a treeview on file procedures.

	* app/widgets/gimpfiledialog.[ch]: replaced the file type option
	menu with the new GimpFileProcView widget.
	(gimp_file_dialog_set_image): reset the file type to Automatic
	(fixes bug #141535).

	* app/actions/file-commands.c
	* app/gui/file-open-dialog.[ch]
	* app/gui/file-save-dialog.[ch]: changed accordingly.

	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c: don't register "xcf.gz" and "xcf.bz2"
	extension. It's redundant and breaks the code that sets the
	extension from the selected file-type.

	* plug-ins/common/dicom.c: register a shorter menu label.

	* plug-ins/common/gbr.c
	* plug-ins/common/gih.c
	* plug-ins/common/pat.c
	* plug-ins/common/url.c: register stock icons.
2004-07-16 21:24:39 +00:00
William Skaggs 07b8bed29a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/Lighting/lighting_main.c
	* plug-ins/Lighting/lighting_main.h
	* plug-ins/Lighting/lighting_preview.c
	* plug-ins/Lighting/lighting_preview.h
	* plug-ins/Lighting/lighting_shade.c
	* plug-ins/Lighting/lighting_ui.c:  Made this plug-in support
	multiple light sources; implemented three, architecture now
	supports any number.  Changed material properties to more intuitve
	names; added "metallic" property.  Cleaned out some unused,
	commented-out code.
2004-07-16 19:41:21 +00:00
Michael Natterer a456ac9bde include "libgimpbase/gimpbase.h" instead of "libgimpbase/gimpparasite.h"
2004-07-16  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb.pl: include "libgimpbase/gimpbase.h" instead of
	"libgimpbase/gimpparasite.h" for getting the GimpParasite type.

	* tools/pdbgen/app.pl
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/guides.pdb
	* tools/pdbgen/pdb/image.pdb: removed redundant #includes.

	* tools/pdbgen/pdb/plug_in.pdb: standardized "success" logic.
	Consistetly fail if there is no currently queried plugin.

	* app/pdb/*.c: regenerated.
2004-07-16 14:43:56 +00:00
Michael Natterer 147775d63d made gtk-doc even happier; clarified meaning of the "use_offsets"
2004-07-16  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-transform.c: made gtk-doc even
	happier; clarified meaning of the "use_offsets" parameter.
2004-07-16 12:41:05 +00:00
Sven Neumann 8c4b7b5aba app/display/gimpdisplayshell.c corrected API documentation, removed
2004-07-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdata.c:
	* app/display/gimpcanvas.c:
	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-transform.c: corrected API
	documentation, removed trailing whitespace.

	Please do always build the documentation if you add or change any
	gtk-doc comments.
2004-07-16 10:07:30 +00:00
William Skaggs 0787e0304f Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/display/gimpcanvas.c:
	* app/display/gimpdisplayshell-transform.c: added gtk-doc
	comments for all public functions that lack them.

	* app/display/gimpdisplayshell.c: added a couple of
	gtk-doc comments.
2004-07-15 23:02:52 +00:00
William Skaggs aced3f7910 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpdata.c: added gtk-doc comments for
	public functions.
2004-07-15 19:01:57 +00:00
Shlomi Fish 596ce390b3 normalized the identifiers of paper.c and paper.h. Made one variable local
* plug-ins/gimpressionist/: normalized the identifiers of
paper.c and paper.h. Made one variable local to the function
instead of module static.
2004-07-15 18:09:48 +00:00
Shlomi Fish 2f5a1d8a7b normalized the ppmtools.c and ppmtool.h identifiers. Also fixed some (but
* plug-ins/gimpressionist/: normalized the ppmtools.c and
ppmtool.h identifiers. Also fixed some (but not all) of the
syntax.
2004-07-15 11:58:47 +00:00
Philip Lafleur f162a82e2a Fixed typo. 2004-07-15 11:14:15 +00:00
Philip Lafleur de5aa52eb8 Applied a patch from Brion Vibber that fixes byte-swapping on big endian
2004-07-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/winicon/icoload.c:
	* plug-ins/winicon/icosave.c: Applied a patch from Brion Vibber
	that fixes byte-swapping on big endian hosts.	Fixes bug #147610.
2004-07-15 11:10:09 +00:00
Sven Neumann 9098878252 plug-ins/helpbrowser/dialog.c don't warn if no help pages are installed
2004-07-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c
	* plug-ins/helpbrowser/uri.c: don't warn if no help pages are
	installed and the Home button is clicked.
2004-07-15 10:39:59 +00:00
Michael Natterer 963b941d39 don't crash if no layer or only one layer is visible. Fixes bug #143804.
2004-07-15  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.c (file_open_layer): don't crash if no
	layer or only one layer is visible. Fixes bug #143804.

	* app/app_procs.c (app_run): fixed log domain registration.
2004-07-15 10:37:03 +00:00
Michael Natterer c9d31f6e97 corrected API docs and fixed function parameter names to silent gtk-doc
2004-07-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpviewable.[ch]: corrected API docs and fixed
	function parameter names to silent gtk-doc warnings.
2004-07-15 09:53:17 +00:00
Michael Natterer 4812d3165a register a log handler for the "Gimp-Menus" domain.
2004-07-15  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c (app_run): register a log handler for the
	"Gimp-Menus" domain.
2004-07-15 09:29:01 +00:00
Philip Lafleur 7327a2ed51 cleanup.
2004-07-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/mng.c: cleanup.
2004-07-15 06:57:46 +00:00
William Skaggs 9c7c6e4221 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpviewable.c: added gtk-doc comments for public
	functions.
2004-07-14 23:41:41 +00:00
Michael Natterer 6fb2502e72 reordered to match the .c file.
2004-07-15  Michael Natterer  <mitch@gimp.org>

	* app/actions/file-commands.h: reordered to match the .c file.

	* app/core/gimpitem.c
	* app/vectors/gimpvectors-import.c: fixed API docs.
2004-07-14 23:14:49 +00:00
Philip Lafleur 6f6c71d01c Fixed erroneously reported warning message when saving indexed layers with
2004-07-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/png.c:
	* plug-ins/common/mng.c: Fixed erroneously reported warning
	message when saving indexed layers with an alpha channel but
	no transparent pixels.
2004-07-14 22:09:51 +00:00
Sven Neumann deb8f7bfc4 register a log handler for the "Gimp-Actions" domain.
2004-07-14  Sven Neumann  <sven@gimp.org>

	* app/app_procs.c (app_run): register a log handler for the
	"Gimp-Actions" domain.
2004-07-14 21:27:11 +00:00
William Skaggs b7e75c5dd7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* devel-docs/objects.txt: . . . and removed because it is
	redundant with devel-docs/app/app.hierarchy.
2004-07-14 20:47:41 +00:00
William Skaggs 8aeb819196 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* devel-docs/objects.txt:  added file containing a map of Gimp's
	GObject hierarchy.
2004-07-14 18:43:13 +00:00
Michael Natterer 178d7d3ff1 massively changed: removed message_ids, the message mem chunk and all
2004-07-14  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.[ch]: massively changed: removed
	message_ids, the message mem chunk and all signals. Added new
	function gimp_statusbar_replace() which updates a message without
	moving it to the top of the stack. Fixes bug #120175.

	* app/display/gimpdisplayshell-title.[ch]: renamed
	gimp_display_shell_update_title() to
	gimp_display_shell_title_update() and switched from pop()/push()
	to replace() so the title message keeps its place in the stack.
	Added new function gimp_display_shell_title_init() which push()es
	the title message to the stack.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): call
	gimp_display_shell_title_init() so the "title" message is at the
	bottom of the stack.

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-handlers.c: changed accordingly.
2004-07-14 16:37:13 +00:00
Sven Neumann 6d4d038f2d plug-ins/script-fu/script-fu-console.[ch] plug-ins/script-fu/script-fu.c
2004-07-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.[ch]
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/siod-wrapper.[ch]
	* plug-ins/script-fu/siod/slib.c: applied a patch from Kevin
	Cozens that removes an unneeded pipe which was causing problems
	on long output from the SIOD interpreter (bug #139200). Also
	shortened the welcome message.
2004-07-14 16:03:58 +00:00
Sven Neumann 7314f2d77f GUI polishing.
2004-07-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/pagecurl/pagecurl.c: GUI polishing.
2004-07-14 13:47:56 +00:00
Shlomi Fish 9c8fd71d3a Added more underscores to identifiers. Fixed some of the style (added
* plug-ins/gimpressionist/: Added more underscores to identifiers.
Fixed some of the style (added whitespace before the '(' in function
calls)
2004-07-14 13:28:01 +00:00
Philip Lafleur df393e0647 Now writes a global palette chunk, and empty palette chunks for the frames
2004-07-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/mng.c: Now writes a global palette chunk, and
	empty palette chunks for the frames that use it. This saves a
	bit of diskspace.
2004-07-14 12:18:58 +00:00
Michael Natterer 87b5322fdb added properties "gimp", "id", "width", "height" and "base-type". Moved
2004-07-14  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c: added properties "gimp", "id", "width",
	"height" and "base-type". Moved all code from gimp_image_new()
	to GObject::constructor().

	* app/core/gimpimage-convert.c
	* app/core/gimpimage-crop.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-rotate.c
	* app/core/gimpimage-scale.c
	* app/core/gimpimage-undo-push.c: set "width", "height" and
	"base-type" with g_object_set() so "notify" is emitted on the
	properties.

	* app/core/gimpimage-undo.c (gimp_image_undo_pop_stack):
	freeze/thaw property notifications around undoing/redoing so they
	are not emitted in the middle of the undo operation.
2004-07-14 12:12:50 +00:00
Michael Natterer 8e2e464f67 converted tabs to spaces, cleanup, reviewed new API docs.
2004-07-14  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpitem.c: converted tabs to spaces, cleanup,
	reviewed new API docs.
2004-07-14 11:52:03 +00:00
Sven Neumann 00fed8dcba applied a patch done by Brion Vibber and Philip Lafleur that fixes loading
2004-07-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c: applied a patch done by Brion Vibber
	and Philip Lafleur that fixes loading of CMYK TIFF images on
	big-endian hardware (bug #147328).
2004-07-14 10:57:13 +00:00
Philip Lafleur cf6ae91996 Properly check the return value of find_unused_ia_color(). The plugin will
2004-07-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/mng.c (respin_cmap): Properly check the return
	value of find_unused_ia_color(). The plugin will now save indexed
	MNGs correctly; fixes bug #139947. Also converted tabs to spaces.
2004-07-14 10:55:31 +00:00
Michael Natterer fe9d9be66b Code review & cleanup:
2004-07-14  Michael Natterer  <mitch@gimp.org>

	Code review & cleanup:

	* app/config/gimpguiconfig.[ch]: removed transparency-size,
	transparency-type and snap-distance properties...

	* app/config/gimpdisplayconfig.[ch]: ...and added them here.

	* app/display/gimpdisplayshell.c
	* app/tools/gimpmovetool.c: changed accordingly.

	* app/core/gimpimage-scale.[ch] (gimp_layer_scale_check): added a
	"max_memsize" parameter instead of looking it up in GimpGuiConfig.

	* app/actions/image-commands.c: changed accordingly.

	* app/core/gimparea.c
	* app/core/gimpdrawable.c: converted tabs to spaces, cleanup.

	* app/core/gimpprojection.[ch]: renamed IdleRenderStruct to
	GimpProjectionIdleRender, reordered functions, cleanup.

	* app/display/gimpdisplay-handlers.c
	* app/display/gimpdisplay.c: removed unused #includes.

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-close.c: renamed
	shell->warning_dialog to shell->close_dialog, some random
	cleanups.

	* app/display/gimpdisplayshell-handlers.c
	* app/widgets/gimpselectioneditor.c: minor coding style cleanup.
2004-07-14 10:31:59 +00:00
William Skaggs 53249872f6 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpitem.c: added documentation comments to some
	of the functions.
2004-07-14 00:32:09 +00:00
Michael Natterer 2226ddf7e4 app/display/Makefile.am new files for gimp_display_shell_close() and its
2004-07-14  Michael Natterer  <mitch@gimp.org>

	* app/display/Makefile.am
	* app/display/gimpdisplayshell-close.[ch]: new files for
	gimp_display_shell_close() and its dialog & callback.

	* app/display/gimpdisplayshell.[ch]: removed from here.

	* app/actions/view-actions.c (view_close_view_cmd_callback):
	changed accordingly.
2004-07-14 00:15:57 +00:00
Sven Neumann 2f16b5f824 code cleanup. Use enums instead of a plethora of booleans. Added some
2004-07-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/pagecurl/pagecurl.c: code cleanup. Use enums instead of
	a plethora of booleans. Added some macros for readability. Allow
	to use a reversed gradient for colorizing the curl.
2004-07-13 23:05:11 +00:00
Michael Natterer 54cc251b08 app/core/Makefile.am app/core/core-types.h new interface which has
2004-07-14  Michael Natterer  <mitch@gimp.org>

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimppickable.[ch]: new interface which has
	get_image_type(), get_tiles() and get_color_at() methods.

	* app/core/gimpdrawable.[ch]
	* app/core/gimpimagemap.[ch]
	* app/core/gimpprojection.[ch]: implement GimpPickableInterface
	and removed public get_colot_at() functions.

	* app/core/gimpimage-pick-color.[ch]: removed typedef
	GimpImagePickColorFunc and gimp_image_pick_color_by_func(). Use
	gimp_pickable_pick_color() instead.

	* app/core/gimpimage-contiguous-region.c
	* app/core/gimpimage-crop.c
	* app/gui/info-window.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpsmudge.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpimagemaptool.c
	* app/widgets/gimpselectioneditor.c: use GimpPickable functions
	instead of the various get_color_at() functions. Simplifies code
	which has a "sample_merged" boolean. Various cleanups.
2004-07-13 23:04:05 +00:00
Shlomi Fish 0c3377bce8 plug-ins/gimpressionist/presets.c: Added underscores between
words in function names according to the GIMP's (and common
sense) convention.
2004-07-13 21:55:35 +00:00
Shlomi Fish 8252d3887d Moved the global declarations of img_has_alpha and create_colorpage to
* plug-ins/gimpressionist/: Moved the global declarations of
img_has_alpha and create_colorpage to more specialized headers.
2004-07-13 20:58:02 +00:00
Shlomi Fish 3aa90e2818 Added the paper.h header for the functions defined in the paper.c module.
* plug-ins/gimpressionist/: Added the paper.h header for the functions
defined in the paper.c module. (thus removing more declarations
from gimpressionist.h)
2004-07-13 19:38:59 +00:00
William Skaggs 784dde6482 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig-preview.[ch}
	* plug-ins/gfig/gfig.h: Made Cancel work properly.  Moved "show grid",
	"snap to grid", and "show image" checkbuttons back onto main
	interface.  Eliminated GtkPreview and removed undef of
	GTK_DISABLE_DEPRECATED from gfig-preview.c.  Removed some
	unused code.
2004-07-13 18:47:53 +00:00
Sven Neumann 93d329db4c use gtk_widget_queue_draw_area() instead of the deprecated
2004-07-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/gflare/gflare.c (preview_handle_idle): use
	gtk_widget_queue_draw_area() instead of the deprecated
	gtk_widget_draw() routine.

	* plug-ins/gimpressionist/orientmap.c
	* plug-ins/gimpressionist/paper.c
	* plug-ins/gimpressionist/sizemap.c: use gtk_widget_queue_draw()
	instead of the deprecated gtk_widget_draw() routine.
2004-07-13 17:29:15 +00:00
Shlomi Fish ce4319caa2 plug-ins/gimpressionist/preview.c Eliminated two compile-time warnings.
* plug-ins/gimpressionist/preview.c
* plug-ins/gimpressionist/sizemap.c:
Eliminated two compile-time warnings.
2004-07-13 17:11:08 +00:00
Michael Natterer c5ec0d4f70 *** empty log message *** 2004-07-13 16:36:29 +00:00
Sven Neumann 28cbe15ed7 declared GimpPixmap as deprecated.
2004-07-13  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppixmap.[ch]: declared GimpPixmap as deprecated.

	* libgimpwidgets/gimpwidgets.[ch]: ditto for gimp_pixmap_button_new().

	* plug-ins/Lighting/ChangeLog: removed outdated and unused ChangeLog.

	* plug-ins/Lighting/Makefile.am
	* plug-ins/Lighting/*.xpm: removed XPM files...

	* configure.in
	* plug-ins/Lighting/images: ... and added them as PNG images here.
	These should be redone with antialiased edges.

	* plug-ins/Lighting/lighting_stock.[ch]
	* plug-ins/Lighting/lighting_ui.c: register stock icons and use
	those instead of GimpPixmaps.

	* plug-ins/MapObject/Makefile.am
	* plug-ins/MapObject/*.xpm: removed duplicated XPM files.

	* plug-ins/MapObject/mapobject_stock.[ch]: register stock icons
	reusing the generated header from the Lighting plug-in.

	* plug-ins/MapObject/mapobject_ui.c: use them.

	* plug-ins/pagecurl/pagecurl.c: undef GIMP_DISABLE_DEPRECATED until
	GimpPixmap has been replaced here as well.
2004-07-13 15:59:52 +00:00
Shlomi Fish 00645d1018 fixed Bug # 147483 (gimpressionist will delete global presets if the user
* plug-ins/gimpressionist/presets.c: fixed Bug # 147483 (gimpressionist
will delete global presets if the user running GIMP has priviliges to
do so ). This was done by creating a function to check if a preset is
global, and by making sure the delete button is in-sensitive when this
is the case.
2004-07-13 15:10:46 +00:00
Sven Neumann 45a7f5e459 libgimpwidgets/gimpcolorbutton.c libgimpwidgets/gimpcolornotebook.c
2004-07-13  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorbutton.c
	* libgimpwidgets/gimpcolornotebook.c
	* libgimpwidgets/gimpcolorscale.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimpcolorselect.c
	* libgimpwidgets/gimpcolorselection.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimppickbutton.c
	* libgimpwidgets/gimpunitmenu.c: some code review and cosmetics.
2004-07-13 14:55:16 +00:00
Shlomi Fish 6d3d212973 normalized some of brush.c's identifiers (= variable names and function
* plug-ins/gimpressionist/*.[ch]: normalized some of brush.c's
identifiers (= variable names and function name)
2004-07-13 13:27:47 +00:00
Sven Neumann 6e77b577dc handle NULL string values.
2004-07-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-utils.c (gimp_g_value_get_memsize): handle NULL
	string values.
2004-07-13 11:54:09 +00:00
Sven Neumann c7f25d0c81 override the output_message error handler in order to propagate warnings
2004-07-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: override the output_message error
	handler in order to propagate warnings to the user interface
	(related to bug #145212).
2004-07-13 11:14:05 +00:00
Sven Neumann f274dce25b added new function gimp_g_value_get_memsize() that attempts to calculate
2004-07-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-utils.[ch]: added new function
	gimp_g_value_get_memsize() that attempts to calculate the memory
	requirements for a GValue.

	* app/text/gimptextundo.c (gimp_text_undo_get_memsize): use the
	new function to obtain a better estimate for the size of the text
	undo.
2004-07-13 10:09:22 +00:00
Sven Neumann 11795e78f4 plugged a tiny memory leak.
2004-07-13  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_create_layer): plugged
	a tiny memory leak.
2004-07-13 08:59:10 +00:00
Sven Neumann 5cff101603 resurrected some bit-rotting debug code. Might become useful one day.
2004-07-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-undo.c: resurrected some bit-rotting debug
	code. Might become useful one day.
2004-07-13 08:30:22 +00:00
Sven Neumann 3aff97c3aa when automake 1.8 is being used, require at least version 1.8.3. Earlier
2004-07-13  Sven Neumann  <sven@gimp.org>

	* autogen.sh: when automake 1.8 is being used, require at least
	version 1.8.3. Earlier versions of the automake-1.8 series don't
	handle gimp-console correctly.
2004-07-12 23:51:38 +00:00
Michael Natterer 1175a64b3f app/config/gimpconfig-dump.c applied patch from Dave Neary which adds %B
2004-07-13  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-dump.c
	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): applied patch from Dave Neary
	which adds %B which expands to (modified) if the image is
	dirty. Also added %A which expands to (clean) because we also have
	a short indicator for the clean image. Fixes bug #130943.
2004-07-12 23:36:45 +00:00
Sven Neumann 1e7a0f341d removed hack for gimp-console compilation. automake seems to handle it
2004-07-13  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am: removed hack for gimp-console compilation.
	automake seems to handle it correctly all by itself.
2004-07-12 22:34:37 +00:00
Michael Schumacher d2b7bdc735 added #ifdef G_OS_WIN32 #include <windows.h> #endif
2004-07-12  Michael Schumacher <schumaml@cvs.gnome.org>

	* app/app_procs.c: added
	#ifdef G_OS_WIN32
	#include <windows.h>
	#endif
2004-07-12 21:32:29 +00:00
Michael Natterer d41e45b1f4 added a preview of the global buffer.
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpbufferview.[ch]: added a preview of the global
	buffer.
2004-07-12 20:25:05 +00:00
Sven Neumann 8deb11ddf2 make sure that gimp-console is enabled for 'make dist'. Use it to dump the
2004-07-12  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am: make sure that gimp-console is enabled for
	'make dist'. Use it to dump the system gimprc and gimprc man-page.
2004-07-12 17:14:02 +00:00
Michael Natterer a81e96450a removed member "guint time"...
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptextundo.[ch]: removed member "guint time"...

	* app/core/gimpundo.[ch]: ...and added it here.

	* app/tools/gimptexttool.c (gimp_text_tool_apply): changed
	accordingly. Reordered undo compression code to look like other
	pieces of code which do undo compression.
2004-07-12 17:10:34 +00:00
Michael Natterer da74f1269e app/core/gimpundo.[ch] app/core/gimpitemundo.[ch] removed all _new()
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpundo.[ch]
	* app/core/gimpitemundo.[ch]
	* app/text/gimptextundo.[ch]: removed all _new() functions and
	added properties and GObject::constructor() implementations
	instead.

	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): added
	"GType undo_gtype" parameter and allow to pass name-value pairs as
	"...". Une the new GParameter utility functions to construct the
	appropriate undo step with g_object_newv().

	(gimp_image_undo_push_item): removed.

	(gimp_image_undo_push_undo): removed. Merged its code back into
	gimp_image_undo_push(), where it originally came from.

	* app/core/gimpimage-undo-push.c
	* app/core/gimpundostack.c
	* app/paint/gimppaintcore-undo.c
	* app/tools/gimptransformtool-undo.c
	* app/widgets/gimpundoeditor.c: changed accordingly.
2004-07-12 16:59:36 +00:00
Sven Neumann 9593e52ef2 plug-ins/gfig/gfig-dialog.c plug-ins/gfig/gfig-preview.c
2004-07-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/gfig/gfig-style.c
	* plug-ins/gfig/gfig.c: some include cleanups. Use
	libgimpbase/gimpwin32-io.h instead of defining W_OK explicitely.
	Don't undef GTK_DISABLE_DEPRECATED except for gfig-preview.c.
2004-07-12 16:57:29 +00:00
Michael Natterer bfed40e9da applied patch from Dave Neary that changes the behavior from undo
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/round-corners.scm: applied patch from
	Dave Neary that changes the behavior from undo disable/enable to
	using an undo group if the script doesn't work on a copy of the
	image. Fixes bug #146344.
2004-07-12 16:14:22 +00:00
Michael Natterer 5e25cdd239 applied patch from Brion Vibber which adds <Toolbox>/Acquire/Paste as new.
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* menus/toolbox-menu.xml.in: applied patch from Brion Vibber
	which adds <Toolbox>/Acquire/Paste as new. Fixes bug #147358.
2004-07-12 16:09:01 +00:00
Sven Neumann cbe7552189 NEWS update, fixed UTF-8 in ChangeLog 2004-07-12 15:30:45 +00:00
Michael Natterer ca5026a51f don't do anything if gimp->no_interface is TRUE.
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-modules.c: don't do anything if gimp->no_interface
	is TRUE.
2004-07-12 14:43:24 +00:00
Michael Natterer 84c29b4861 Made the gimp-console binary compile. Finishes core/GUI separation and
2004-07-12  Michael Natterer  <mitch@gimp.org>

	Made the gimp-console binary compile.
	Finishes core/GUI separation and fixes bug #71514:

	* configure.in: removed the crazy-hacker warning for
	--enable-gimp-console.

	* app/Makefile.am: for gimp-console, copy app_procs.c to
	app_procs_console.c and compile it instead of app_procs.c with
	-DGIMP_CONSOLE_COMPILATION

	* app/app_procs.[ch]: added some #ifndef GIMP_CONSOLE_COMPILATION
	to skip GUI stuff for the gimp-console case.
	Renamed app_gui_libs_init() to app_libs_init(), renamed
	app_gui_abort() to app_abort() and added app_exit() so everything
	that needs #ifdefs lives here now.

	* app/main.c: changed accordingly.

	* app/gui/gui.c (gui_abort): really abort (call exit()).
2004-07-12 14:32:31 +00:00
Sven Neumann 58a91da574 made the suggestion to use binary packages more prominent, mention
2004-07-12  Sven Neumann  <sven@gimp.org>

	* INSTALL: made the suggestion to use binary packages more
	prominent, mention --enable-gimp-console.
2004-07-12 14:09:33 +00:00
Sven Neumann 1abeb90523 removed the gtk+ sanity check here ...
2004-07-12  Sven Neumann  <sven@gimp.org>

	* app/sanity.[ch]: removed the gtk+ sanity check here ...

	* app/gui/gui.c: ... and do it here from gui_libs_init().

	* app/main.c: changed accordingly.
2004-07-12 13:22:28 +00:00
Sven Neumann 3b553547db don't use gtk_main() / gtk_main_quit() but run our own main-loop like we
2004-07-12  Sven Neumann  <sven@gimp.org>

	* app/app_procs.s: don't use gtk_main() / gtk_main_quit() but run
	our own main-loop like we already used to do when being run
	non-interactively.
2004-07-12 12:56:35 +00:00
Michael Natterer 5b83b759d7 set/unset the busy cursor on all windows which have widget->window, not
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdialogfactory.c
	(gimp_dialog_factories_set_busy_foreach)
	(gimp_dialog_factories_unset_busy_foreach): set/unset the busy
	cursor on all windows which have widget->window, not only for
	those which are GTK_WIDGET_VISIBLE. Fixes stale busy cursors when
	dialogs are hidden while the busy cursor is active and later shown
	again.
2004-07-12 11:47:54 +00:00
Michael Natterer 87c1722700 added an "id" CONSTRUCT_ONLY property. Some minor cleanup.
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplay.c: added an "id" CONSTRUCT_ONLY
	property. Some minor cleanup.
2004-07-12 11:43:00 +00:00
Michael Natterer 509a6c57c5 app/core/Makefile.am new files defining a GimpGui vtable struct and
2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/core/Makefile.am
	* app/core/gimp-gui.[ch]: new files defining a GimpGui vtable
	struct and contianing all the vtable wrapper functions. Reordered
	and renamed some functions for consistency.

	* app/core/gimp.[ch]: removed all the vtable code.

	* app/gui/gui-vtable.c: changed accordingly.
2004-07-12 11:41:19 +00:00
Sven Neumann ce09783780 changelog cosmetics 2004-07-12 11:28:16 +00:00
Sven Neumann 95e7d5ee0a removed images from the container when they become clean. Should move to
2004-07-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplay-foreach.c
	(gimp_displays_get_dirty_images): removed images from the
	container when they become clean. Should move to the Gimp object.

	* app/gui/quit-dialog.c: some cosmetic changes.
2004-07-12 11:12:19 +00:00
Sven Neumann a4cdae89b1 applied a patch from Brion Vibber that sets the 'Save color values from
2004-07-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c: applied a patch from Brion Vibber that
	sets the 'Save color values from transparent pixels' insensitive
	when there's no alpha channel.
2004-07-12 07:41:23 +00:00
Hans Breuer b56eb39ead updated app/actions/makefile.msc app/menus/makefile.msc : (new files)
2004-07-11  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated
	  app/actions/makefile.msc app/menus/makefile.msc : (new files)
	  app/actions/Makefile.msc app/menus/Makefile.am : added to EXTRA_DIST

	* libgimpbase/gimputils.c libgimpwidgets/gimpmemsizeentry.c
	  app/widgets/gimppropwidgets.c : bumped compiler version check,
	msvc6 still can't cast from unsigned __int64 to double

	* app/actions/debug-actions.c : only use debug_*_callback
	and thus debug_action if ENABLE_DEBUG_MENU

	* app/core/gimpalette-import.c : added gimpwin32-io.h

	* plug-ins/common/convmatrix.c : s/snprintf/g_snprintf/

	* plug-ins/common/screenshot.c : make it compile with msvc,
	but still no win32 specific implementation ...
2004-07-11 21:53:17 +00:00
William Skaggs 5d0d0c2eb8 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig-dobject.h: fix commit error that
	broke build.
2004-07-11 19:39:05 +00:00
William Skaggs 08319b790e Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig-dobject.[ch]
	* plug-ins/gfig/gfig.c: added buttons to select an object, and
	raise or lower the selected object; also a few minor cleanups.
2004-07-11 18:39:30 +00:00
Philip Lafleur f31859bd3b Fixed typo. 2004-07-11 03:28:09 +00:00
Philip Lafleur 3a5019b270 Applied a patch from Robert Robert Ögren, moved here from
2004-07-11  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/widgets/gimpdevices.c (gimp_devices_check_change): Applied
	a patch from Robert Robert Ögren, moved here from
	toolbox_check_device() - Only change devices if the event came from
	a widget that accepts extension events. Fixes bug #115774.
2004-07-11 03:01:05 +00:00
Michael Natterer 48dfe69959 new utility functions which create and destroy GParameter arrays for
2004-07-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-utils.[ch] (gimp_parameters_append)
	(gimp_parameters_append_valist)
	(gimp_parameters_free): new utility functions which create and
	destroy GParameter arrays for g_object_newv().

	* app/gui/gui-vtable.c (gui_pdb_dialog_new): use them.
2004-07-10 22:25:02 +00:00
Michael Natterer 2176afbbbb Removed any remaining GUI dependency from the PDB wrappers:
2004-07-10  Michael Natterer  <mitch@gimp.org>

	Removed any remaining GUI dependency from the PDB wrappers:

	* app/core/gimp.[ch]: added vtable entries for the display and
	help stuff.

	* app/widgets/gimphelp.[ch]: renamed gimp_help() to
	gimp_help_show().

	* app/gui/gui-vtable.c: implement the new display and help vtable
	entries.

	* tools/pdbgen/pdb.pl
	* tools/pdbgen/pdb/display.pdb
	* tools/pdbgen/pdb/help.pdb: use the new functions of the Gimp
	object instead of using stuff from display/ and widgets/.

	* tools/pdbgen/app.pl: removed bad hacks which enabled including
	stuff from gui/, display/ and widgets/.

	* app/Makefile.am: link widgets-enums.o, display-enums.o and
	gimpdisplayoptions.o into the gimp-console binary because they are
	needed for the config system and don't depend on any GUI stuff.

	* app/pdb/Makefile.am: s/GTK_CFLAGS/GDK_PIXBUF_CFLAGS/

	* app/pdb/display_cmds.c
	* app/pdb/help_cmds.c: regenerated.
2004-07-10 20:29:11 +00:00
Sven Neumann 3a5ed7075c let the labels line-wrap.
2004-07-10  Sven Neumann  <sven@gimp.org>

	* app/gui/quit-dialog.c (quit_dialog_new): let the labels line-wrap.
2004-07-10 10:08:19 +00:00
Sven Neumann e730bbb1f2 added new function gimp_displays_get_dirty_images().
2004-07-10  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplay-foreach.[ch]: added new function
	gimp_displays_get_dirty_images().

	* app/gui/quit-dialog.c: show a container treview of all dirty
	images in the quit dialog. Still work in progress...
2004-07-09 22:28:27 +00:00
William Skaggs 4563aa0498 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* gimp/plug-ins/gfig/gfig-circle.c
	* gimp/plug-ins/gfig/gfig-dialog.c
	* gimp/plug-ins/gfig/gfig-dobject.c
	* gimp/plug-ins/gfig/gfig-ellipse.c
	* gimp/plug-ins/gfig/gfig-poly.c
	* gimp/plug-ins/gfig/gfig-preview.c
	* gimp/plug-ins/gfig/gfig-star.c
	* gimp/plug-ins/gfig/gfig-style.c
	* gimp/plug-ins/gfig/gfig-style.h
	* gimp/plug-ins/gfig/gfig.c
	* gimp/plug-ins/gfig/gfig.h: Made FG, BG, and pattern fill work for
	fillable objects; other miscellaneous cleanups and minor fixes.
2004-07-09 22:09:40 +00:00
Sven Neumann 9000f4a9d8 removed the quit dialog code here.
2004-07-09  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c: removed the quit dialog code here.

	* app/gui/Makefile.am
	* app/gui/quit-dialog.[ch]: added new files that hold the old code
	for now.

2004-07-09  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: updated.
2004-07-09 20:38:35 +00:00