Commit Graph

8855 Commits

Author SHA1 Message Date
David Odin e491608fb0 plug-ins/common/shift.c plug-ins/common/sinus.c plug-ins/common/snoise.c
* plug-ins/common/shift.c
	* plug-ins/common/sinus.c
	* plug-ins/common/snoise.c
	* plug-ins/common/spheredesigner.c: added missing calls to
	g_rand_free (), remove tabs while I was at it.

	* plug-ins/common/smooth_palette.c: minor cleanup

	* plug-ins/common/spread.c: removed tabs.
2004-07-28 12:10:20 +00:00
Michael Natterer ee42d8f506 added still unused flags type GimpDirtyMask.
2004-07-28  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.h: added still unused flags type
	GimpDirtyMask.

	* 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
	* libgimpthumb/Makefile.am: changed calls to gimp-mkenums to
	support GTypeFlags and to make the value arrays private to the
	get_type() functions.

	* 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: regenerated.
2004-07-28 11:50:20 +00:00
Michael Natterer 932b45679d converted tabs to spaces.
2004-07-28  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpclone.c: converted tabs to spaces.
2004-07-28 11:17:49 +00:00
David Odin 971b131956 fix a smallish memory leak. 2004-07-28 09:45:53 +00:00
Sven Neumann 613d89dbae synced with glib-mkenums (execept for the newly added template feature).
2004-07-28  Sven Neumann  <sven@gimp.org>

	* tools/gimp-mkenums: synced with glib-mkenums (execept for the
	newly added template feature).
2004-07-28 02:28:12 +00:00
Michael Natterer 80a40f0b96 libgimp/gimpbrushselect.c libgimp/gimpfontselect.c
2004-07-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpbrushselect.c
	* libgimp/gimpfontselect.c
	* libgimp/gimpgradientselect.c
	* libgimp/gimppalettemenu.c
	* libgimp/gimppaletteselect.c
	* libgimp/gimppatternselect.c (gimp_*_select_destroy): don't
	leak the selected object's name and its data (brush mask etc).

	* libgimp/gimpfontmenu.c: moved the icon to the left side of the
	button.

	* libgimp/gimppalettemenu.c: ditto. Added "Since: GIMP 2.2" to
	API docs.
2004-07-28 00:04:13 +00:00
Michael Natterer 9a153f6e58 forgot to strip mnemonics here.
2004-07-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpactiongroup.c
	(gimp_action_group_set_action_label): forgot to strip mnemonics
	here.
2004-07-27 22:38:40 +00:00
Michael Natterer 210ef45abb Enabled disabling all menu mnemonics. Addresses bug #120034:
2004-07-28  Michael Natterer  <mitch@gimp.org>

	Enabled disabling all menu mnemonics. Addresses bug #120034:

	* app/config/gimpguiconfig.[ch]
	* app/config/gimprc-blurbs.h: added boolean RESTART property
	"menu-menonics".

	* app/gui/preferences-dialog.c: added a GUI for it.

	* app/widgets/gimpactiongroup.[ch]: added boolean CONSTRUCT_ONLY
	property "mnemonics".

	(gimp_action_group_add_*_actions): call gimp_strip_uline() on
	the actions' labels if mnemonics is FALSE.

	* app/widgets/gimpactionfactory.[ch]
	* app/actions/actions.c: pass gui_config->menu_menmonics to
	all action groups.
2004-07-27 22:17:30 +00:00
Sven Neumann 1bf6319d1b commented out "Context" menu now that we have a shortcut editor.
2004-07-27  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: commented out "Context" menu now that
	we have a shortcut editor.
2004-07-27 21:17:16 +00:00
Sven Neumann b580628e4f don't leak empty SVG gradients.
2004-07-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpgradient-load.c: don't leak empty SVG gradients.
2004-07-27 19:34:27 +00:00
Sven Neumann 9b19c74dc6 include "libgimpbase/gimpbase.h", not an individual header out of
2004-07-27  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c: include "libgimpbase/gimpbase.h",
	not an individual header out of libgimpbase.
2004-07-27 16:46:43 +00:00
Sven Neumann bd427b2e4d libgimpbase/Makefile.am libgimpbase/gimpbase.h libgimpbase/gimpbase.def
2004-07-27  Sven Neumann  <sven@gimp.org>

	* libgimpbase/Makefile.am
	* libgimpbase/gimpbase.h
	* libgimpbase/gimpbase.def
	* libgimpbase/gimpmemsize.[ch]: added new files with memsize
	related functions (moved here from gimputil.c) and
	GIMP_TYPE_MEMSIZE (moved here from app/config/gimpconfig-types.[ch]).

	* libgimpbase/gimputils.[ch]: removed gimp_memsize_to_string() here.

	* libgimpbase/gimpunit.[ch]: added GIMP_TYPE_UNIT (moved here from
	app/config/gimpconfig-types.[ch]).

	* libgimpbase/gimpbase-private.c
	* libgimp/gimptile.c
	* libgimp/gimpunitcache.c
	* plug-ins/help/domain.c
	* app/xcf/xcf-read.c: need to include glib-object.h.

	* plug-ins/common/uniteditor.c: use GIMP_TYPE_UNIT.

	* app/config/gimpconfig-types.[ch]: removed code that lives in
	libgimpbase now.

	* app/config/gimpconfig-deserialize.c: changed accordingly.

	* app/config/gimpbaseconfig.c
	* app/config/gimpdisplayconfig.c
	* app/core/gimpcontext.c
	* app/gui/grid-dialog.c
	* app/tools/gimpcolortool.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpunitstore.c: no need to include gimpconfig-types.h
	any longer.
2004-07-27 16:39:00 +00:00
Michael Natterer 820b4d247b libgimp/Makefile.am libgimp/gimp.h libgimp/gimpui.h
2004-07-27  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimpui.h
	* libgimp/gimppalettemenu.[ch]
	* libgimp/gimppaletteselect.[ch]: added palette select wrapper and
	widget (straight copy & string replace of the font select stuff).
	Fixes bug #136130.

	* plug-ins/script-fu/script-fu-enums.h
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/siod-wrapper.c: added SF_PALETTE so it can
	be used in scripts.

	* plug-ins/script-fu/scripts/test-sphere.scm: added a palette
	parameter to the test script.
2004-07-27 15:15:58 +00:00
Michael Natterer 9b5862e79b remove the image from the image hash table and set its "gimp" pointer to
2004-07-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c (gimp_image_finalize): remove the image
	from the image hash table and set its "gimp" pointer to NULL
	*after* all layers, channels, vectors and the selection are
	finalized; otherwise these items have no chance of removing
	themselves from the item hash table (because image->gimp is
	already NULL). Spotted by pgimeno and nomis.
	(should be backported after it got some testing)
2004-07-27 15:10:41 +00:00
Sven Neumann 7e3e851c63 string change.
2004-07-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_new): string change.
2004-07-27 12:41:44 +00:00
Michael Natterer a66a3b47c9 make sure we always set a non-null URI.
2004-07-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_uri): make
	sure we always set a non-null URI.
2004-07-27 12:39:56 +00:00
Sven Neumann 67ff4473a2 app/widgets/gimphelp-ids.h removed unused help IDs GIMP_HELP_FILE_OPEN_XCF
2004-07-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp-ids.h removed unused help IDs
	GIMP_HELP_FILE_OPEN_XCF and GIMP_HELP_FILE_SAVE_XCF. The help IDs
	for these entries are generated from the procedure names.
2004-07-27 12:28:30 +00:00
Sven Neumann 228aadc25c print the help-id and help-domain to stdout if gimp was started with the
2004-07-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp.c (gimp_help): print the help-id and
	help-domain to stdout if gimp was started with the --verbose
	command-line option.
2004-07-27 11:19:33 +00:00
Sven Neumann a1ac37ed19 show extensions in the filters menu.
2004-07-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	show extensions in the filters menu.
2004-07-27 00:26:14 +00:00
Sven Neumann ca1d3bc2df libgimp/gimpbrushmenu.c attempt to make the brush and pattern selectors
2004-07-27  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpbrushmenu.c
	* libgimp/gimppatternmenu.c: attempt to make the brush and pattern
	selectors look less like buttons (supposed to fix bug #147777).
2004-07-26 23:11:20 +00:00
Sven Neumann 095a0d0e8f also accept the short hexadecimal notation (3 hex digits).
2004-07-27  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorhexentry.c (gimp_color_hex_entry_events):
	also accept the short hexadecimal notation (3 hex digits).
2004-07-26 22:30:35 +00:00
Sven Neumann e33a7697c4 added new files.
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am (libgimpwidgetsinclude_HEADERS):
	added new files.
2004-07-26 21:21:34 +00:00
Sven Neumann 744bebc83c app/widgets/Makefile.am moved to libgimpwidgets.
2004-07-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpcellrenderertoggle.[ch]: moved to libgimpwidgets.

	* app/widgets/gimpcomponenteditor.c
	* app/widgets/gimpcontainertreeview.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimptoolview.c
	* app/widgets/widgets-types.h

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.def
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetsmarshal.list
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpcellrenderertoggle.[ch]: custom toggle cell
	renderer moved here from app/widgets.

	* libgimpwidgets/gimpcellrenderercolor.[ch]: unified code with the
	new toggle cell renderer.
2004-07-26 21:09:16 +00:00
Michael Natterer a2b85a62b0 new function which clears the whole list of data set by plug-ins.
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/pdb/procedural_db.[ch] (procedural_db_free_data): new
	function which clears the whole list of data set by plug-ins.

	(procedural_db_free): use it.

	* app/actions/plug-in-actions.c
	* app/actions/plug-in-commands.[ch]: added action, callback and
	confirmation dialog for "Reset all filters to default values".
	Somehow addresses bug #81015.

	* app/widgets/gimphelp-ids.h: added a help ID for the new action.

	* menus/image-menu.xml.in: added it to the "Filters" submenu.
2004-07-26 21:07:15 +00:00
Sven Neumann 408634a1ed fine-tuning.
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcellrenderercolor.c
	(gimp_cell_renderer_color_get_size): fine-tuning.
2004-07-26 20:26:07 +00:00
Michael Natterer caabe7f334 removed GIMP_TYPE_COLOR.
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-types.h: removed GIMP_TYPE_COLOR.

	* app/config/gimpconfig-params.[ch]: renamed GimpParamSpecColor
	to GimpParamSpecRGB.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-dump.c
	* app/config/gimpconfig-serialize.c
	* app/config/gimpscanner.c
	* app/core/gimp-utils.c
	* app/core/gimpcontext.c
	* app/core/gimpgrid.c
	* app/display/gimpdisplayoptions.c
	* app/text/gimptext.c
	* app/tools/gimpcolortool.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpcolorbar.c
	* app/widgets/gimppropwidgets.c: changed accordingly.
2004-07-26 19:56:47 +00:00
Shlomi Fish bfa52ab740 added a de-allocation to the PPM's allocated by the size map dialog.
* plug-ins/gimpressionist/: added a de-allocation to the PPM's
allocated by the size map dialog.
2004-07-26 19:22:22 +00:00
Sven Neumann 8eec57e372 load all linear gradients from an SVG file, not only the first one.
2004-07-26  Sven Neumann  <sven@gimp.org>

	* app/core/gimpgradient-load.c: load all linear gradients from an
	SVG file, not only the first one.
2004-07-26 19:19:04 +00:00
Michael Natterer 638f2b3a9c added "gboolean writable" to the GimpDataFactoryLoaderEntry struct. Return
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdatafactory.h: added "gboolean writable" to the
	GimpDataFactoryLoaderEntry struct. Return a GList* instead of
	GimpData* from GimpDataLoadFunc so it's possible to load more than
	one data object from one file.

	* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
	changed accordingly: add all items of the returned lists to the
	data factory. Make the data object writable only if it's in the
	writable path *and* its loader entry says it's a writable format
	*and* the returned list contains exactly one element.

	* app/core/gimp.c (gimp_real_initialize): declare all loader
	entries as writable where we have code to read and write exactly
	one object per file; all others are not writable.

	* app/core/gimpbrush.[ch]
	* app/core/gimpbrushgenerated.[ch]
	* app/core/gimpbrushpipe.[ch]
	* app/core/gimpgradient-load.[ch]
	* app/core/gimppalette.[ch]
	* app/core/gimppattern.[ch] (all load functions): return a list
	containing the loaded object instead of the object itself.
2004-07-26 19:00:22 +00:00
Sven Neumann 763bbcd496 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.def
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.def
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpcellrenderercolor.[ch]: added a GimpRGB cell
	renderer.

	* libgimpwidgets/gimpcolorarea.[ch]: exported the function that
	renders the color to a buffer for internal use in libgimpwidgets.

	* libgimpwidgets/gimpcolorhexentry.c: use the new cell renderer
	for the completion popup.
2004-07-26 18:52:35 +00:00
Sven Neumann 89995843ab libgimpcolor/gimpcolor.def added new symbols.
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpcolor.def
	* libgimpwidgets/gimpwidgets.def: added new symbols.
2004-07-26 18:17:42 +00:00
Sven Neumann c03a5b837e register GimpRGB as a boxed type.
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: register GimpRGB as a boxed type.

	* libgimpcolor/gimpadaptivesupersample.c
	* libgimpcolor/gimpcolorspace.c
	* libgimpcolor/gimprgb-parse.c
	* libgimp/gimp.h: include <glib-object.h> instead of <glib.h>.
2004-07-26 18:14:48 +00:00
Shlomi Fish 9774728dec Fixed a date bug in the changelog from the last check-in. 2004-07-26 18:13:35 +00:00
Shlomi Fish 482d4034a6 placed all the orientation map-related public functions in orientmap.h.
* plug-ins/gimpressionist/: placed all the orientation map-related
public functions in orientmap.h. Now we're freeing the PPM's that it
is allocating by a call to orientation_map_free_resources().
2004-07-26 18:08:29 +00:00
Michael Natterer 3632f62b90 removed unused typedef GimpDataObjectLoaderFunc.
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/core/core-types.h: removed unused typedef
	GimpDataObjectLoaderFunc.
2004-07-26 16:27:43 +00:00
Sven Neumann e0b4899157 libgimpcolor/gimprgb-parse.c added new function gimp_rgb_list_names() that
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb-parse.c
	* libgimpcolor/gimprgb.h: added new function gimp_rgb_list_names()
	that gives access to the list of SVG color keywords.

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpcolorhexentry.[ch]: added new widget that
	allows to enter colors in hex notation or by using color names.

	* libgimpwidgets/gimpcolorscales.c: use a GimpColorHexEntry.
2004-07-26 15:20:18 +00:00
Shlomi Fish 7e4db68e80 placed all the orientation map-related public functions in orientmap.h.
* plug-ins/gimpressionist/: placed all the orientation map-related
public functions in orientmap.h. Now we're freeing the PPM's that it
is allocating by a call to orientation_map_free_resources().
2004-07-26 14:56:44 +00:00
Michael Natterer d50a2db779 renamed init_edit_selection() to gimp_edit_selection_tool_start(). Removed
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.[ch]: renamed init_edit_selection()
	to gimp_edit_selection_tool_start(). Removed enum EditType.

	* app/tools/tools-enums.h: added enum GimpTranslateMode instead.

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

	* app/tools/gimpselectiontool.[ch]: added protected utility
	function gimp_selection_tool_start_edit().

	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimprectselecttool.c: use the new function instead of
	duplicating the same code three times, don't include
	"gimpeditselectiontool.h".

	* app/tools/gimpiscissorstool.c: don't include
	"gimpeditselectiontool.h".
2004-07-26 14:50:51 +00:00
Michael Natterer 674f80e155 don't freeze()/thaw() the image's undo to prevent live-movement from
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.c: don't freeze()/thaw() the
	image's undo to prevent live-movement from ending up on the undo
	stack. Instead, just stop pushing undo steps after the initial
	movement. Simplifies edit_select's undo code quite a bit and fixes
	bug #148458.
2004-07-26 13:15:22 +00:00
Sven Neumann 0cb50e20f2 accept SVG color names in the hex entry. Not very intuitive but probably a
2004-07-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorscales.c (gimp_color_scales_hex_events):
	accept SVG color names in the hex entry. Not very intuitive but
	probably a nice experts feature and it can be improved later.
2004-07-26 12:07:01 +00:00
Michael Natterer 3d05015a24 use #ifdef GIMP_UNSTABLE instead of looking at GIMP_MINOR_VERSION.
2004-07-26  Michael Natterer  <mitch@gimp.org>

	* app/main.c (main): use #ifdef GIMP_UNSTABLE instead of looking
	at GIMP_MINOR_VERSION.

	* app/app_procs.c: don't #include "tools/gimp-tools.h".
2004-07-26 10:44:25 +00:00
Sven Neumann 23935b2bb9 plug-ins/bmp/bmp.h applied a patch by Brion Vibber that fixes extra data
2004-07-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmp.h
	* plug-ins/bmp/bmpread.c: applied a patch by Brion Vibber that
	fixes extra data overflow, nonstandard 16bpp field arrangement
	and unrecognized compression (bug #143682).
2004-07-26 00:44:01 +00:00
William Skaggs 2a803755fd Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/decompose.c: clamp results of LAB decomposition
	so that out-of-gamut conversions do not overflow and get
	badly distorted.  Fixes bug #147603.  Note that it would probably
	be a good idea to do similar things for other conversion types.
2004-07-25 21:02:31 +00:00
Shlomi Fish 95cf883274 converted checks for initialization of ppm's done by checking the "col"
* plug-ins/gimpressionist/: converted checks for initialization of
ppm's done by checking the "col" buffer, to macro calls.
2004-07-25 18:12:49 +00:00
Shlomi Fish 5559b6223e fixed bug #148088: ("Gimpressioinst crashes if given malicious presets
* plug-ins/gimpressionist/: fixed bug #148088: ("Gimpressioinst crashes if
given malicious presets with out of range values, in the radio buttons
group numeric values: "placetype", "orienttype", etc. ").

This was done by adding clamps to the relevant values in the preset.
2004-07-25 14:29:27 +00:00
Raphael Quinet 3c6ed9764b Minor fixes and improvements. Suggest using a different prefix and setting
2004-07-25  Raphael Quinet  <quinet@gamers.org>

	* INSTALL: Minor fixes and improvements.  Suggest using a
	different prefix and setting PKG_CONFIG_LIBDIR if old versions of
	GTK+ libs are found and cannot be removed without breaking other
	packages.
2004-07-25 07:53:27 +00:00
Shlomi Fish 60f4e7680b created a header "orientation.h" for the Orientation tab specific
* plug-ins/gimpressionist/: created a header "orientation.h" for the
Orientation tab specific declarations.
2004-07-23 19:34:47 +00:00
Sven Neumann c84e84339a added missing code for grayscale previews.
2004-07-23  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixbuf.c (gimp_pixbuf_from_data): added missing code
	for grayscale previews.
2004-07-23 18:01:12 +00:00
Sven Neumann 333489a6e2 fixed handling of the last gradient segment and did some code cleanup.
2004-07-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpgradient-load.c (svg_parser_end_element): fixed
	handling of the last gradient segment and did some code cleanup.
2004-07-23 14:00:38 +00:00
Sven Neumann f0da0e438c (svg_parser_end_element): don't crash on empty gradient definitions. 2004-07-23 12:55:58 +00:00