Commit graph

9682 commits

Author SHA1 Message Date
Sven Neumann 6b2243f12d use gimp_int_combo_box_connect() so that the initial selection causes the
2004-10-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	use gimp_int_combo_box_connect() so that the initial selection
	causes the "changed" callback to be run. Should fix bug #156659.
2004-10-28 09:31:44 +00:00
Øyvind Kolås d204dea31d reword changelog entry, add bug # 2004-10-28 06:14:47 +00:00
Øyvind Kolås e4b3616a00 improve approximation of perspective tool\'s preview 2004-10-28 06:06:58 +00:00
Philip Lafleur 0b45edb7f3 Really fixed all cases of the perspective tool preview breaking with
2004-10-27  Philip Lafleur <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Really fixed all cases
	of the perspective tool preview breaking with certain orientations by
	using triangles instead of quads.
2004-10-28 02:32:58 +00:00
Philip Lafleur 2f3073910c Hopefully fixed all cases of the perspective tool preview breaking with
2004-10-27  Philip Lafleur <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Hopefully fixed all cases
	of the perspective tool preview breaking with certain orientations.
2004-10-28 00:38:23 +00:00
Manish Singh 7179ac43a3 Don't declare $first twice.
2004-10-27  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/enumcode.pl: Don't declare $first twice.

        * libgimp/Makefile.am: Be sure to distribute gimpenums.c.tail.

        * libgimp/gimpenums.c.tail: Added into CVS.
2004-10-27 22:46:40 +00:00
David Odin a542ceed87 added a notebook page for the bezier tool options instead of yet another
* plug-ins/gfig/gfig-bezier.[ch]: added a notebook page for the
  bezier tool options instead of yet another popup window.

* plug-ins/gfig/gfig-dialog.c: modified accordingly and HIGed a bit.
2004-10-27 21:13:46 +00:00
Sven Neumann 6ccc7bdd8b removed trailing commmas from output.
2004-10-27  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/enumcode.pl: removed trailing commmas from output.
2004-10-27 19:32:04 +00:00
Øyvind Kolås 1ce390fe29 ahem, removing extra newline 2004-10-27 19:27:06 +00:00
Øyvind Kolås aba2a57c4e improve fixed point coordinate handling 2004-10-27 19:25:50 +00:00
Michael Schumacher e718a6817c fixed a typo in #include "libgimpbase/gimpwin32-io.h"
2004-10-27  Michael Schumacher <schumaml@gmx.de>

	* app/widgets/gimpwidgets-utils.c: fixed a typo in
	#include "libgimpbase/gimpwin32-io.h"
2004-10-27 19:02:04 +00:00
David Odin ae73a6d440 plug-ins/gfig/gfig-dialog.[ch] plug-ins/gfig/gfig-poly.[ch]
* plug-ins/gfig/gfig-dialog.[ch]
* plug-ins/gfig/gfig-poly.[ch]
* plug-ins/gfig/gfig-spiral.[ch]
* plug-ins/gfig/gfig-star.[ch]
* plug-ins/gfig/gfig.h: first step of moving all the hidden popup
  dialogs for the tool options in a GtkNotebook showing the options
  within one page for each tool.
2004-10-27 18:47:08 +00:00
Sven Neumann df38e3d11d fixed loop control in _gimp_enums_init(). This caused all plug-ins to
2004-10-27  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/enumcode.pl: fixed loop control in
	_gimp_enums_init(). This caused all plug-ins to crash immidiately.
	You will need to make sure that libgimp/gimpenums.c.tail is
	recreated and appended to libgimp/gimpenums.c
2004-10-27 18:40:45 +00:00
Michael Natterer d0ab9a7470 app/core/gimp-transform-utils.[ch]. switch from x1,y1,x2,y2 bounding boxes
2004-10-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-transform-utils.[ch]. switch from x1,y1,x2,y2
	bounding boxes to x,y,width,height ones. Added
	gimp_transform_matrix_flip_free(). Renamed some parameters to be
	consistent with others. Some internal cleanup.

	* app/tools/gimpperspectivetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c
	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.

	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: guard all transform
	wrappers with if(gimp_drawable_mask_intersect(...)), also the
	ones which don't need the returned bounding box.

	* tools/pdbgen/pdb/drawable_transform.pdb: renamed some parameters
	and added gimp_drawable_transform_matrix() which takes the 9
	coefficients of a 3x3 matrix for ultimate flexibility ;)

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-10-27 17:56:02 +00:00
Sven Neumann 4349469e3c changed menu label from "Show Image Menu" to "Show Image Selection".
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/actions/dockable-actions.c (dockable_toggle_actions): changed
	menu label from "Show Image Menu" to "Show Image Selection".

	* app/widgets/gimpsizebox.c: unmarked a string for translation.

	* app/dialogs/scale-dialog.c: added back the message when scaling
	an indexed image.
2004-10-27 15:59:52 +00:00
David Odin 48470a093f really use the second parameter of gimp_aspect_preview_new (), so plug-ins
* libgimp/gimpaspectpreview.c: really use the second parameter of
  gimp_aspect_preview_new (), so plug-ins can now really remember the
  state of the preview between invocations.

* libgimpwidgets/gimpscrolledpreview.c: fix a little typo

* plug-ins/common/channel_mixer.c: fix a warning by using TRUE for a
  boolean value (initial state of the preview) instead of a weird NULL.
2004-10-27 11:38:15 +00:00
Michael Natterer 0aef32eb90 ARGH, s/g_free_error/g_clear_error/ 2004-10-27 11:08:48 +00:00
Michael Natterer 4b7d7338bc modules/controller_linux_input.c don't g_free(error) but
2004-10-27  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c
	* modules/controller_midi.c: don't g_free(error) but
	g_free_error(&error) the GError.
2004-10-27 11:01:39 +00:00
Sven Neumann 52252cf0d6 started to redo the Resize dialog in the style of the new Scale dialog.
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.[ch]: started to redo the Resize
	dialog in the style of the new Scale dialog. Only halfway done but
	at least the new API is there.

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

	* app/dialogs/image-scale-dialog.c: cosmetics.
2004-10-27 10:33:08 +00:00
Sven Neumann 47ce269d47 fixed ChangeLog entries 2004-10-27 08:42:44 +00:00
David Odin 60a9853c16 preliminary cleanups: removed all trailing spaces.
* plug-ins/gfig/*[ch]: preliminary cleanups: removed all trailing spaces.
2004-10-27 06:43:52 +00:00
Manish Singh 7c6a0026e4 removed abuse of init, called pdb_misc in all procedures.
2004-10-26  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/drawable_transform.pdb: removed abuse of init,
        called pdb_misc in all procedures.

        * app/pdb/transform_tools_cmds.c
        * libgimp/gimpdrawabletransform_pdb.c: regenerated.
2004-10-27 02:27:45 +00:00
Sven Neumann e421f840b4 added new files gimpdrawabletranform_pdb.[ch].
2004-10-27  Sven Neumann  <sven@gimp.org>

	* libgimp/Makefile.am (PDB_WRAPPERS_H, PDB_WRAPPERS_C): added new
	files gimpdrawabletranform_pdb.[ch].
2004-10-27 01:23:35 +00:00
Sven Neumann fffebe8ec2 app/dialogs/Makefile.am a wrapper around the scale dialog that takes care
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/image-scale-dialog.[ch]: a wrapper around the scale
	dialog that takes care verifying the user input and optionally
	asking for confirmation. Most of this moved out of image-commands.c.

	* app/actions/image-commands.c: use the new image scale dialog
	even though it doesn't allow to edit the resolution yet. That's a
	temporary regression that will get fixed soon.

	* app/actions/layers-commands.c: cosmetics.

	* app/dialogs/scale-dialog.c (scale_dialog_reset): also reset the
	resolution.

	* app/widgets/gimpsizebox.c: fixed cut'n'paste error.
2004-10-27 01:20:07 +00:00
Sven Neumann b0330f95d4 added a resolution label similar to one in the template editor. Prepared
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.[ch]: added a resolution label similar
	to one in the template editor. Prepared for editable resolution,
	work in progress...

	* app/dialogs/scale-dialog.[ch]: added resolution and resolution
	unit parameters to ScaleDialogCallback.

	* app/actions/layers-commands.c: changed accordingly.
2004-10-26 23:31:34 +00:00
Sven Neumann 664b5a0a09 commented out the memory size label. The visual clutter of it's bold
2004-10-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptemplateeditor.c: commented out the memory size
	label. The visual clutter of it's bold appearance was IMO not
	appropriate. I think the dialog is better without it.

	* app/widgets/gimpsizebox.c: added a pixel size label as in the
	Image New dialog.
2004-10-26 21:18:20 +00:00
Sven Neumann c588e8e58e added gtk-doc comment for gimp_enums_get_type_names().
2004-10-26  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/enumcode.pl: added gtk-doc comment for
	gimp_enums_get_type_names().


Updated API docs.
2004-10-26 18:58:50 +00:00
Sven Neumann 2524ba60da applied patch by Geert Jordaens that lets Retinex deal with RGBA
2004-10-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/retinex.c: applied patch by Geert Jordaens that
	lets Retinex deal with RGBA drawables. Closes bug #135594 again.
2004-10-26 18:06:43 +00:00
Sven Neumann 57eec590ae Added new drawable transform API to the PDB. Largely based on patches from
2004-10-26  Sven Neumann  <sven@gimp.org>

	Added new drawable transform API to the PDB. Largely based on
	patches from Joao S. O. Bueno. Fixes bug #137053.

	* app/core/gimpdrawable-transform.[ch]: added missing parameters
	to gimp_drawable_transform_flip().

	* tools/pdbgen/pdb/transform_tools.pdb: changed accordinly.

	* app/base/base-enums.h
	* app/core/core-enums.h: removed pdp-skip for GimpInterpolationType
	and GimpTransformDirection enums.

	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* tools/pdbgen/enums.pl
	* tools/pdbgen/groups.pl: regenerated.

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/pdb/drawable_transform.pdb: added new file defining
	the new PDB calls.

	* app/pdb/Makefile.am
	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimp_pdb.h
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-10-26 17:50:52 +00:00
Michael Natterer 078cf7a8e2 modules/controller_linux_input.c don't enter an infinite blocking loop
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c
	* modules/controller_midi.c: don't enter an infinite blocking loop
	when the user selects an input file that can be opened, but not
	read (like a directory).
2004-10-26 15:56:32 +00:00
Michael Natterer 2075f1e742 added parameter "const gchar *select_action" and preselect the passed
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpactionview.[ch] (gimp_action_view_new): added
	parameter "const gchar *select_action" and preselect the passed
	action if non-NULL. Made the column enum public to users of this
	widget can get data from its tree store.

	* app/dialogs/preferences-dialog.c (prefs_keyboard_shortcuts_dialog):
	pass NULL because we don't want a preselected action here.

	* app/widgets/gimpcontrollereditor.[ch]: added "Edit" and "Delete"
	buttons to change the event -> action mapping. Implement a action
	chooser dialog using GimpActionView. Fixes bug #106920.
2004-10-26 15:10:00 +00:00
Sven Neumann 1ee62f771e app/actions/channels-commands.c app/core/gimpchannel-select.c
2004-10-26  Sven Neumann  <sven@gimp.org>

	* app/actions/channels-commands.c
	* app/core/gimpchannel-select.c
	* app/core/gimpimagefile.c
	* app/core/gimpundo.c
	* app/widgets/gimpcomponenteditor.c: use the new enum utility
	functions from libgimpbase instead of accessing enum_value->value_name.
2004-10-26 14:45:25 +00:00
Michael Natterer 9f0ae8d340 when changing the button's label to "Quit", also make it the default
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/quit-dialog.c (quit_dialog_container_changed): when
	changing the button's label to "Quit", also make it the default
	action.
2004-10-26 12:59:58 +00:00
Michael Natterer ea1b88f580 app/widgets/Makefile.am app/widgets/widgets-types.h new widget built from
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcontrollereditor.[ch]: new widget built from
	preliminary code from the prefs dialog. Prerequisite for finally
	fixing bug #106920.

	* app/dialogs/preferences-dialog.c: use the new widget.
2004-10-26 12:26:47 +00:00
Michael Natterer 6044378d98 cleaned up the GUI and GIMP-specific code a bit. Use
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/retinex.c: cleaned up the GUI and GIMP-specific
	code a bit. Use gimp_drawable_mask_intersect().
2004-10-26 11:03:23 +00:00
Manish Singh cc541593f4 Use $1 instead of deprecated \1 for regexp group.
2004-10-25  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/enumcode.pl: Use $1 instead of deprecated \1 for
        regexp group.
2004-10-26 00:59:41 +00:00
Michael Natterer dfcdaedb61 my last change removed the sanity check for array_length >= 0. Put it
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	my last change removed the sanity check for array_length >= 0.
	Put it back.
2004-10-25 23:30:50 +00:00
Michael Natterer 0e82491021 updated.
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpbase.def: updated.
2004-10-25 22:50:27 +00:00
David Odin 5e1581d804 added this new plug-in. Addresses bug #135594
* plug-ins/common/retinex.c: added this new plug-in.
  Addresses bug #135594

* plug-ins/common/plugin-defs.pl: modified accordingly.

* plug-ins/common/.cvsignore
* plug-ins/common/Makefile.am: regenerated.

* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-arc.h
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-circle.h
* plug-ins/gfig/gfig-dialog.c: smallish style cleanups
2004-10-25 22:02:32 +00:00
Michael Natterer 3260bf1375 fix paste accident. 2004-10-25 21:56:13 +00:00
Michael Natterer 0bff77801a silently accept arrays which are longer than specified. Nothing bad can
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	silently accept arrays which are longer than specified. Nothing
	bad can happen and it's common practice to resize arrays in fixed
	size chunks so avoid frequent resizing. Fixes bug #155359.
2004-10-25 20:42:06 +00:00
Michael Natterer 286eb01535 removed debugging output i forgot.
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c (init_constants): removed
	debugging output i forgot.
2004-10-25 20:22:33 +00:00
Sven Neumann 46bdfd8b9a change the action button's label to "Quit" if there are no images with
2004-10-25  Sven Neumann  <sven@gimp.org>

	* app/dialogs/quit-dialog.c: change the action button's label to
	"Quit" if there are no images with unsaved changes.
2004-10-25 20:11:50 +00:00
Michael Natterer b030530936 register some missing enums.
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpbaseenums.[ch]: register some missing enums.

	* tools/pdbgen/enumcode.pl: removed code to generate
	plug-ins/script-fu/script-fu-constants.c, generate code to
	explicitely initialize and query all of libgimp*'s enums
	and write it to libgimp/gimpenums.c.tail

	* libgimp/gimpenums.h: regenerated.

	* libgimp/Makefile.am: append gimpenums.c.tail to gimpenums.c

	* libgimp/gimp.c (gimp_main): call g_type_init() and
	_gimp_enums_init().

	* libgimp/gimp.def: added gimp_enums_get_type_names().

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-constants.[ch]: removed these files.

	* plug-ins/script-fu/siod-wrapper.c: dynamically register all
	constants using gimp_enums_get_type_names() and introspection.
	Also register the built-in unit types.

	* plug-ins/script-fu/script-fu.c: changed accordingly.
2004-10-25 19:29:00 +00:00
Michael Natterer 6711646648 Don't store human readable and translatable enum/flag strings in
2004-10-25  Michael Natterer  <mitch@gimp.org>

	Don't store human readable and translatable enum/flag strings in
	GEnumValue's and GTypeValue's fields but attach them to their
	GType using separate structs and utility functions:

	* tools/gimp-mkenums: added params and perl voodoo to support
	generating a second array of values, which is used by the
	Makefiles below to create and register arrays of value
	descriptions.

	* libgimpbase/gimpbasetypes.[ch]: added API to attach/retreive
	arrays of translatable strings to/from enum and flags types. Added
	structs GimpEnumDesc and GimpFlagsDesc for that purpose.

	* libgimpbase/gimputils.[ch]: changed existing enum utility
	functions, added new ones and added a symmetric API for flags.

	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am: changed *-enums.c generation rules
	accordingly.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c: regenerated.

	* app/widgets/gimpenumstore.c
	* app/widgets/gimpenumwidgets.c
	* app/widgets/gimptemplateeditor.c
	* libgimpwidgets/gimppreviewarea.c: follow the enum utility
	function API changes.
2004-10-25 17:55:25 +00:00
Sven Neumann 4762ab0a05 plug-ins/imagemap/imap_cmd_gimp_guides.c
2004-10-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_cmd_gimp_guides.c
	* plug-ins/imagemap/imap_edit_area_info.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_menu.[ch]
	* plug-ins/imagemap/imap_menu_funcs.[ch]
	* plug-ins/imagemap/imap_misc.c
	* plug-ins/imagemap/imap_settings.c
	* plug-ins/imagemap/imap_source.c: added a menu entry for Help.
	Did more minor layout adjustments for HIG compliance.
2004-10-25 16:11:40 +00:00
Michael Natterer a61ed834be #include "libgimpbase/gimpbase.h", not just gimputils.h
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpobject.c: #include "libgimpbase/gimpbase.h", not
	just gimputils.h
2004-10-25 15:36:55 +00:00
Michael Natterer 7989cbb770 commented out the "Debug" submenu. Should do this via an xsltproc --param
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* menus/toolbox-menu.xml.in: commented out the "Debug" submenu.
	Should do this via an xsltproc --param actually...
2004-10-25 14:36:21 +00:00
David Odin af42b25372 removed debugging g_print and remove my memory fix, since it was buggy and
* plug-ins/common/newsprint.c: removed debugging g_print and
  remove my memory fix, since it was buggy and shouldn't be done.
  My fix just broke this plug-in (reported by Joao S. O. Bueno
  Calligaris)
2004-10-25 13:45:58 +00:00
Simon Budig fdd150e310 Switch to design mode when Escape gets pressed. Untabbified.
2004-10-25  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: Switch to design mode when
	Escape gets pressed. Untabbified.
2004-10-25 13:29:32 +00:00