Commit graph

10000 commits

Author SHA1 Message Date
David Odin cfe5e88fc9 plug-ins/gfig/gfig-dialog.c renamed undo_water_mark to undo_level. Fixed
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dialog.h
  plug-ins/gfig/gfig-dobject.c: renamed undo_water_mark to undo_level.
  Fixed the style handling when clearing the whole thing and undoing in
  some very particular cases. The undo part should certainly be redone
  to some extent.

Btw, this is the revision 1.10000 of the ChangeLog, yeah!
2004-11-28 17:55:05 +00:00
William Skaggs 78884dba56 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig-style.c: make sure PaintType is saved and
	loaded with the style.
2004-11-28 17:31:53 +00:00
David Odin 21e48f61f2 correctly initializes the paint_type field of the default style.
* plug-ins/gfig/gfig-dialog.c: correctly initializes the paint_type
 field of the default style.

* plug-ins/gfig/gfig-style.c: don't print an useless error message
  where no-one can see it when loading an other with no style but use
  the default style instead.
2004-11-28 16:57:45 +00:00
Sven Neumann 8221434de3 plug-ins/gfig/gfig-dialog.[ch] moved Undo and Clear to the Edit menu.
2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.[ch]
	* plug-ins/gfig/gfig-dobject.c: moved Undo and Clear to the Edit
	menu.  Added a utility function to set the sensitivity of an action
	by name. Cleaned up action callback.

	* plug-ins/gfig/gfig-style.c: minor cleanup.
2004-11-28 16:47:41 +00:00
David Odin 35c78e5055 plug-ins/gfig/gfig-arc.c plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c: made the class name uppercase since it is
  used to parse a gfig file.
2004-11-28 15:44:18 +00:00
Sven Neumann 2c4c673d49 make sure that widgets in the Grid and Preferences dialogs are only
2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: make sure that widgets in the Grid
	and Preferences dialogs are only accessed while the dialogs exist.
2004-11-28 15:18:09 +00:00
Sven Neumann 29b57ff07b made the Grid and Preferences dialogs singeltons and declared them as
2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: made the Grid and Preferences
	dialogs singeltons and declared them as transient to the GFig
	window. Don't let them run their own main loop.
2004-11-28 14:56:31 +00:00
Sven Neumann cc2252e7ff commit forgotten ChangeLog entry 2004-11-28 10:45:36 +00:00
Manish Singh 6d5ecd55b5 escape utf8 as hex, to avoid perl trying to be so smart that it's stupid.
2004-11-27  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/drawable_transform.pdb: escape utf8 as hex, to
        avoid perl trying to be so smart that it's stupid.

        * app/pdb/drawable_transform_cmds.c: regenerated.
2004-11-27 23:51:39 +00:00
Manish Singh a769f1c3b0 thumbnail buffer variable declarations should be guarded under HAVE_EXIF.
2004-11-27  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c (save_image): thumbnail buffer variable
        declarations should be guarded under HAVE_EXIF.
2004-11-27 23:31:02 +00:00
Manish Singh 83f280fa0a s/colorhtml/colorxhtml/, so it doesn't clash with the perl version.
2004-11-27  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/colorxhtml.py: s/colorhtml/colorxhtml/,
        so it doesn't clash with the perl version.

        * plug-ins/pygimp/plug-ins/Makefile.am: reflect filename change.
2004-11-27 22:57:57 +00:00
Sven Neumann 7643d5e971 delay the creation of the display for the export image preview until the
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: delay the creation of the display for
	the export image preview until the user requests a preview. Fixes
	bug #159376.
2004-11-27 22:07:23 +00:00
Øyvind Kolås 97fc44bf4e HIGification 2004-11-27 18:35:14 +00:00
Kevin Cozens 56b5d0612c Force number of teeth to be integer values. Changed default for Outer
2004-11-27  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/spyrogimp.scm: Force number of teeth
	to be integer values. Changed default for Outer teeth to give a
	more interesting image. Detabified file. Fixes bug #158448.
2004-11-27 17:57:18 +00:00
Sven Neumann 52ec7ed97e don't look at the menu path to determine if the script is image-based.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	don't look at the menu path to determine if the script is
	image-based. Instead look at the number of parameters we are being
	called with.
2004-11-27 16:23:43 +00:00
Sven Neumann 027cec0d18 made the Size scale logarithmic as suggested in bug #159632.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpinkoptions-gui.c: made the Size scale logarithmic
	as suggested in bug #159632.
2004-11-27 13:06:39 +00:00
Sven Neumann 29eb62c231 tell the user that we can't handle indexed images with alpha channel (bug
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c (save_image): tell the user that we can't
	handle indexed images with alpha channel (bug #159600).
2004-11-27 12:39:08 +00:00
Sven Neumann eb7b317d36 app/main.c app/widgets/gimpenumstore.h app/widgets/gimpunitstore.c applied
2004-11-27  Sven Neumann  <sven@gimp.org>

	* app/main.c
	* app/widgets/gimpenumstore.h
	* app/widgets/gimpunitstore.c
	* plug-ins/common/retinex.c: applied patch by Tim Mooney that
	removes extraneous ;
2004-11-27 12:09:13 +00:00
Sven Neumann 365af1b31b applied patch by Tim Mooney that increase the size of values[] + to
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c (run): applied patch by Tim Mooney that
	increase the size of values[] + to accomodate the use of
	file_wmf_load_thumb (bug #159601).
2004-11-27 12:04:12 +00:00
Sven Neumann 4db3b93ffc minor change to the PDB docs.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/drawable.pdb: minor change to the PDB docs.

	* libgimp/gimpdrawable_pdb.c
	* tools/pdbgen/pdb/drawable.pdb: regenerated.
2004-11-27 11:25:36 +00:00
Sven Neumann 1afd9b1733 plug-ins/winicon/icosave.c moved code around.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c
	* plug-ins/winicon/main.[ch]: moved code around.
2004-11-27 11:19:38 +00:00
Manish Singh 448dd63f9d make sure the preview image type matches the source image type.
2004-11-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/dog.c: make sure the preview image type matches
        the source image type.
2004-11-26 18:55:41 +00:00
Sven Neumann 1b81778c9a don't fiddle with the source image, a save plug-in should save, nothing
2004-11-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c: don't fiddle with the source image,
	a save plug-in should save, nothing else.

	* plug-ins/winicon/main.[ch]: handle all sorts of image types.
	Fixes bug #157803.
2004-11-26 18:44:29 +00:00
Sven Neumann ec5a467857 fixed docs for gimp_drawable_type_with_alpha().
2004-11-26  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/drawable.pdb: fixed docs for
	gimp_drawable_type_with_alpha().

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.c: regenerated.
2004-11-26 18:16:48 +00:00
Sven Neumann 006882a0bc plug-ins/winicon/main.[ch] (ico_image_get_reduced_buf)
2004-11-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/main.[ch] (ico_image_get_reduced_buf)
	* plug-ins/winicon/icodialog.c
	* plug-ins/winicon/icoload.c
	* plug-ins/winicon/icosave.c: fixed drawable handling. This
	plug-in is still a complete mess and needs a lot more work.
2004-11-26 17:37:26 +00:00
Sven Neumann 2dcbec8418 only show the Incremental toggle for tools that use it (bug #159306).
2004-11-26  Sven Neumann  <sven@gimp.org>

	* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): only
	show the Incremental toggle for tools that use it (bug #159306).
2004-11-26 15:14:21 +00:00
Sven Neumann 3e56a07190 don't add documents w/o a name to the list. Fixes bug #159510.
2004-11-26  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdocumentlist.c (gimp_document_list_deserialize):
	don't add documents w/o a name to the list. Fixes bug #159510.

	* app/core/gimpdrawable.c (gimp_drawable_resize): extended the
	check to take the offsets into account as well.
2004-11-26 14:45:10 +00:00
Manish Singh 787afc60bd Add the temporary layers to the image, so things work. Fixes bug #158895.
2004-11-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/dog.c: Add the temporary layers to the image, so
        things work. Fixes bug #158895.

        * plug-ins/common/iwarp.c: Fix same naughtiness as above. There's
        other naughtiness still though.

        * plug-ins/common/sunras.c: use gboolean for byte2bit invert argument.
2004-11-26 03:52:01 +00:00
Manish Singh 7a1647b1bf Use a jpeg_error_mgr that lives within PreviewPersistent, instead of an
2004-11-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c: Use a jpeg_error_mgr that lives within
        PreviewPersistent, instead of an automatic variable in save_image.
        Fixes bug #159076.
2004-11-26 03:16:03 +00:00
Simon Budig 26be95eb17 Add some sample code to retrieve the name of the connected MIDI device
2004-11-25  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: Add some sample code to retrieve
	the name of the connected MIDI device (ALSA).
	Do not set the "name" when connected to Alsa, since snd_seq_name()
	returns an uninteresting name.
2004-11-25 12:57:17 +00:00
Michael Natterer 99b12ef850 typo. 2004-11-24 16:43:05 +00:00
Michael Natterer cdb165874f if the active display becomes NULL (e.g. by closing a view), don't leave
2004-11-24  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_display_changed): if the active display
	becomes NULL (e.g. by closing a view), don't leave the user
	context with an image but no display. Instead, try to find another
	display of the same image instead and if that fails set the image
	to NULL.

	Prevents the various foo_actions_update() functions from being
	called with a NULL display while there is still an active image in
	the context.

	Fixes bug #159304.

	(Removed #warning about being misplaced from that function because
	it's a typical piece of ugly glue code that belongs exactly here).
2004-11-24 16:41:52 +00:00
Simon Budig b349746fc2 Accept >= 0 return values of the ioctl() to figure out the device name.
2004-11-24  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: Accept >= 0 return values of the
	ioctl() to figure out the device name. Apparently it is the number of
	bytes written to the string, so we might omit the strlen() following,
	but I don't like to rely on that...
2004-11-24 14:25:58 +00:00
Michael Natterer 6d63d50040 guarded the whole header with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
2004-11-24  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: guarded the whole header
	with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION because it's no
	fixed API yet. Added a "state" property bacause "name" was abused
	as the controller's state. Added "help_domain" to the controller
	class.

	* libgimpwidgets/gimpwidgets.h: don't include gimpcontroller.h

	* modules/controller_linux_input.c
	* modules/controller_midi.c: set the "name" property to the name
	retrieved from the device, or to a default string if no name is
	available. Store the status in the "state" property. Added and
	changed some strings, but it's better to have the controller
	strings untranslated than to have no tooltips at all or misleading
	labels.

	* app/widgets/gimpcontrollerkeyboard.c
	* app/widgets/gimpcontrollerwheel.c: set default strings for both.

	* app/widgets/gimpcontrollereditor.c: added a GUI for the "state"
	property.

	* app/widgets/gimpcontrollerkeyboard.h
	* app/widgets/gimpcontrollerwheel.h
	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollers.c: #define
	GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION (just as in all files
	above).

	* app/widgets/gimphelp-ids.h: added the IDs of all controller
	modules and also of all other modules. The defines are not
	actually used, but this file is the canonical place to collect all
	the core's help IDs.
2004-11-24 02:17:12 +00:00
Sven Neumann 7eed9323db app/core/gimp-templates.[ch] merge the migrated user templaterc with the
2004-11-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-templates.[ch]
	* app/dialogs/user-install-dialog.c: merge the migrated user
	templaterc with the system templaterc so the users who have used
	gimp-2.0 before get our changes to the default templates.
2004-11-23 21:00:15 +00:00
Michael Natterer d8a5ca6c1b added new function gimp_toggle_button_set_visible() which can be used as
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: added new function
	gimp_toggle_button_set_visible() which can be used as "toggled"
	callback on a GtkToggleButton and sets a widget (in)visible
	according to the toggle's "active" state.

	* app/tools/gimpblendoptions.c
	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimpselectionoptions.c: use it to hide (rather than
	just insensitize) the seldomly used "Feather edges", "Autoshrink
	selection", "Adaptive supersampling", "Fade out" and "Use color
	from gradient" widgets when their enabling toggle is unchecked.
	Makes the affected tool options much less crowded and noisy in
	their default appearance. Fixes bug #159008.
2004-11-23 17:01:51 +00:00
Michael Natterer 518ab86b64 create dynamic sub-menus using a separate, ui-manager-global merge_id
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): create
	dynamic sub-menus using a separate, ui-manager-global merge_id
	instead of the procedure's merge_id. Has the effect that the ui
	manager keeps around these sub-menus forever, even if the
	procedure that initially registered them is unregistered.
	Fixes menu ordering after Script-Fu->Refresh.
2004-11-23 14:35:45 +00:00
Michael Natterer bd57700685 cosmetics, untabified.
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparasitelist.c: cosmetics, untabified.

	* libgimpbase/gimpparasiteio.[ch]: added g_return_if_fail()'s
	to all functions.

	(gimp_pixpipe_params_parse): changed "gchar*" param to "const
	gchar*" (sortof API change, but these files are most probably only
	used by GIMP itself). Still uses strtok() on the internal copy,
	but at least not on the passed string.

	* plug-ins/common/csource.c
	* plug-ins/common/gif.c
	* plug-ins/common/gih.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/png.c
	* plug-ins/common/tiff.c: use parasite getters instead of
	accessing the scruct members directly. Always use g_strndup()
	instead of just g_strdup() to get strings stored in parasites
	because there is no guarantee that they are nul-terminated.
2004-11-23 14:28:43 +00:00
Sven Neumann f6288226c3 do actually use a save dialog here. Fixes bug #159194.
2004-11-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_file.c (do_file_save_as_dialog): do
	actually use a save dialog here. Fixes bug #159194.
2004-11-23 14:09:40 +00:00
Sven Neumann f653295e5d do nothing if the size doesn't change. This keeps text layers from being
2004-11-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_resize): do nothing if
	the size doesn't change. This keeps text layers from being
	modified when an image is cropped and the layer is entirely inside
	the cropped area.

	* menus/image-menu.xml.in: put the Quit item back for now. We
	should think about this again in the next development cycle.
2004-11-23 09:32:54 +00:00
Kevin Cozens 6f7d0f515b Fixed incorrect comparison in if statement. Partial(?) fix for bug
2004-11-21  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/copy-visible.scm: Fixed incorrect
	comparison in if statement. Partial(?) fix for bug #138662.
2004-11-23 04:14:39 +00:00
Manish Singh e995d8d6e7 plug-ins/pygimp/Makefile.am New pygimp logo, by Carol Spears.
2004-11-22  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/Makefile.am
        * plug-ins/pygimp/pygimp-logo.png: New pygimp logo, by Carol Spears.

        * plug-ins/pygimp/gimpfu.py: Use new external logo file, some layout
        tweaks.
2004-11-23 02:35:54 +00:00
Michael Natterer 69ead3955c always create the event mapping table. Fixes tons of warnings and
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_init):
	always create the event mapping table. Fixes tons of warnings and
	non-functional controller mapping dialog when an empty controller
	was deserialized from controllerrc. Spotted by drc.
2004-11-22 21:46:23 +00:00
Sven Neumann 6f4d9df019 call base_exit() before quitting the application using exit(). Fixes bug
2004-11-22  Sven Neumann  <sven@gimp.org>

	* app/app_procs.c (app_exit_after_callback): call base_exit()
	before quitting the application using exit(). Fixes bug #159019.

	* app/base/tile-swap.c: moved the warning about a non-empty swap
	file into #ifdef GIMP_UNSTABLE ... #endif.
2004-11-22 21:29:41 +00:00
David Odin eaec0edf0d correctly initialize the Antialising check box. Reported by Zigomar.
* plug-ins/gfig/gfig-dialog.c: correctly initialize the Antialising
  check box.  Reported by Zigomar.
2004-11-22 21:13:25 +00:00
Michael Natterer b0bd80136f sort the SFMenu structs by their menu_paths *and* the procedure's
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: sort the SFMenu structs
	by their menu_paths *and* the procedure's menu_labels. Fixes menu
	item sorting after "Refresh".
2004-11-22 21:01:28 +00:00
Michael Natterer 512b1120c4 added a "menu_factory" parameter instead of trying to get it from the
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptextoptions.[ch] (gimp_text_options_editor_new):
	added a "menu_factory" parameter instead of trying to get it from
	the toplevel GimpDock (which does not exists if the tool options
	dialog does not exist). Fixes bug #159071.

	* app/tools/gimptexttool.c (gimp_text_tool_editor): pass the
	menu_factory.

	* app/dialogs/dialogs.c (dialogs_init): pass the global menu
	factory also when constructing the "toplevel" dialog factory so
	the above works.
2004-11-22 16:03:54 +00:00
Michael Natterer 20ac70e76f use g_strndup() instead of g_strdup() if a length was passed.
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimputils.c (gimp_any_to_utf8): use g_strndup()
	instead of g_strdup() if a length was passed.

	* app/dialogs/info-window.c: g_strndup() the comment parasite's
	data and pass -1 as length to gimp_any_to_utf8() so we don't
	encounter the questionable (buggy?) behavior of g_utf8_validate()
	to fail upon finding '\0' within the "length" passed.
	Fixes bug #159051.
2004-11-22 15:25:50 +00:00
Michael Natterer 88b3cb7df2 applied patch from Wolfgang Hofer which makes the plug-in use its
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/struc.c: applied patch from Wolfgang Hofer
	which makes the plug-in use its procedure name for
	storing the "last_vals" struct. Fixes bug #159028.

	* plug-ins/common/tileit.c: ditto. Fixes bug #159029.
2004-11-22 11:09:29 +00:00
David Odin 02b0c67397 fixed a stupid bug which made all lines half-selected.
* plug-ins/gfig/gfig-line.c: fixed a stupid bug which made all lines
  half-selected.
2004-11-22 07:49:31 +00:00