Commit Graph

17745 Commits

Author SHA1 Message Date
Michael Natterer 305ada6354 new function which returns string arrays of all registered locale domains
2006-04-27  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-locale-domain.[ch] (plug_in_locale_domains):
	new function which returns string arrays of all registered locale
	domains and paths.

	(plug_in_standard_locale_domain): removed this function. The
	standard plug-in domain is included in the domains returned by
	plug_in_locale_domains().

	* app/plug-in/plug-ins.c (plug_ins_init): simply bind the text
	domains here instead of calling gimp_menus_init(). Destroy
	gimp->plug_in_defs much earlier.

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: removed gimp_menus_init().

	* app/menus/plug-in-menus.[ch]: removed plug_in_menus_init(),
	binding text domains is completely done in the core now.
2006-04-27 21:53:33 +00:00
Michael Natterer ee66f2f31d Added some signals inspired by Rockwalrus' libpdb:
2006-04-27  Michael Natterer  <mitch@gimp.org>

	Added some signals inspired by Rockwalrus' libpdb:

	* app/pdb/gimppdb.[ch]: added signals "register-procedure" and
	"unregister-procedure".

	* app/pdb/gimppluginprocedure.[ch]: added signal "menu-path-added".

	* app/actions/plug-in-actions.[ch]
	* app/menus/plug-in-menus.[ch]: connect to the new signals and
	create/destroy plug-in actions and menus accordingly. Made all
	needed functions private and merged some of them with the newly
	added signal callbacks.

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: removed gimp_menus_create_item() and
	gimp_menus_delete_item() and all related stuff.

	* app/plug-in/plug-in.c
	* app/plug-in/plug-ins.c: removed calls to the removed functions.

	* app/plug-in/plug-ins.c (plug_ins_init): add the plug-in
	procedures to the PDB *after* calling gimp_menus_init() so their
	locale domains are properly initialized when the menus are
	created.
2006-04-27 19:36:13 +00:00
Sven Neumann 9120cb78c1 fixed argument order for using GIMP_CONFIG_INSTALL_PROP_RGB().
2006-04-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpcontext.c: fixed argument order for using
	GIMP_CONFIG_INSTALL_PROP_RGB().
2006-04-27 19:26:40 +00:00
Sven Neumann 0b9a9e4e88 hide the GimpParamSpecRGB struct again. Added getter for the has_alpha
2006-04-27  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: hide the GimpParamSpecRGB struct
	again.  Added getter for the has_alpha field.

	* libgimpcolor/gimpcolor.def: updated.

	* app/config/gimpconfig-dump.c
	* libgimpconfig/gimpconfig-serialize.c: use
	gimp_param_spec_rgb_has_alpha() instead of accessing the
	GimpParamSpecRGB struct directly.
2006-04-27 16:01:16 +00:00
Sven Neumann e779cf0b0f added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct
2006-04-27  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: added "has_alpha" to GimpParamSpecRGB.
	Made the GimpParamSpecRGB struct public. When validating a color,
	only look at the alpha channel if has_alpha is set.

	* libgimpconfig/gimpconfig-params.h: added "has_alpha" to
	GIMP_CONFIG_INSTALL_PROP_RGB macro definition.

	* libgimpconfig/gimpconfig-serialize.c: serialize color values as
	"(rgb r g b)" if the param-spec indicates that the alpha channel
	is meaningless.

	* app/config/gimpconfig-dump.c: take "has_alpha" into account when
	documenting color properties.

	* app/core/gimpcontext.c
	* app/core/gimpgrid.c
	* app/display/gimpdisplayoptions.c
	* app/text/gimptext.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpcolorbar.c
	* libgimpwidgets/gimpcolorarea.c
	* libgimpwidgets/gimpcolorbutton.c: specify whether color properties
	have an alpha channel.

	* tools/pdbgen/app.pl: handle "has_alpha" for color paramaters.

	* tools/pdbgen/pdb/channel.pdb
	* tools/pdbgen/pdb/context.pdb
	* tools/pdbgen/pdb/grid.pdb
	* tools/pdbgen/pdb/image.pdb: set the "has_alpha" flag where
	appropriate.

	* app/pdb/gimp-pdb-compat.c (gimp_pdb_compat_param_spec): set
	"has_alpha" to TRUE for GIMP_PDB_COLOR.

	* app/pdb/channel_cmds.c
	* app/pdb/context_cmds.c
	* app/pdb/gradient_cmds.c
	* app/pdb/grid_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/palette_cmds.c
	* app/pdb/palettes_cmds.c
	* app/pdb/selection_tools_cmds.c: regenerated.

	* app/config/gimpdisplayconfig.c (gimp_display_config_class_init):
	removed unused code.
2006-04-27 15:19:59 +00:00
Sven Neumann 5c1d95ce21 indentation.
2006-04-27  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.h: indentation.
2006-04-27 13:07:15 +00:00
Michael Natterer 53eb43fe91 use a GParamSpecObject instead of GParamSpecPointer for the "procedure"
2006-04-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppluginaction.[ch]: use a GParamSpecObject instead
	of GParamSpecPointer for the "procedure" property. Keep a reference
	on the action's procedure. Did a global s/proc/procedure/.
2006-04-27 12:48:12 +00:00
Sven Neumann afe5311a3e some cleanup, still a mess.
2006-04-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/warp.c: some cleanup, still a mess.
2006-04-27 11:33:51 +00:00
Michael Natterer 500c2b6b11 truncate the value array to the number of actually set parameters.
2006-04-27  Michael Natterer  <mitch@gimp.org>

	* app/actions/plug-in-commands.c (plug_in_repeat_cmd_callback):
	truncate the value array to the number of actually set parameters.
2006-04-27 11:10:05 +00:00
Michael Natterer da74540fad changed order of subdirs to match the bottom-up module dependency order
2006-04-27  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am (SUBDIRS): changed order of subdirs to match the
	bottom-up module dependency order more closely.
2006-04-27 09:30:55 +00:00
Michael Natterer 827ca3a4cd use G_DISABLE_DEPRECATED also when building against glib 2.10
2006-04-27  Michael Natterer  <mitch@gimp.org>

	* configure.in: use G_DISABLE_DEPRECATED also when building
	against glib 2.10
2006-04-27 09:27:14 +00:00
Michael Natterer a34dd51bba namespace cleanup: renamed menu_can_change_accels() to
2006-04-27  Michael Natterer  <mitch@gimp.org>

	* app/menus/menus.c: namespace cleanup: renamed
	menu_can_change_accels() to menus_can_change_accels().
2006-04-27 09:23:14 +00:00
Sven Neumann 27161194aa cosmetics (should have gone into the last commit) 2006-04-26 14:19:08 +00:00
Sven Neumann a779b9b302 added newlines.
2006-04-26  Sven Neumann  <sven@gimp.org>

	* app/base/siox.c (depth_first_search): added newlines.

	* app/core/gimpimage-contiguous-region.c: added const qualifiers.
2006-04-26 14:18:10 +00:00
Sven Neumann dd15c31d73 minor cleanup for my last commit 2006-04-26 13:19:56 +00:00
Sven Neumann 97e6e61f58 use gimp_progress_set_text() instead of gimp_progress_init() to change the
2006-04-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: use gimp_progress_set_text() instead
	of gimp_progress_init() to change the progress text.
2006-04-26 13:13:38 +00:00
Sven Neumann 0884dfeacc do not pass an invalid drawable to the plug-in, just omit the argument.
2006-04-26  Sven Neumann  <sven@gimp.org>

	* app/actions/vectors-commands.c
	(vectors_selection_to_vectors_cmd_callback): do not pass an
	invalid drawable to the plug-in, just omit the argument.
	Fixes bug #339759.
2006-04-26 12:26:32 +00:00
Sven Neumann 0937112af2 code cleanup, moved variables into local scopes, added const qualifiers.
2006-04-26  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-funcs.c: code cleanup, moved variables into
	local scopes, added const qualifiers.
2006-04-26 09:22:34 +00:00
Michael Natterer f65bd53e58 app/pdb/Makefile.am app/pdb/pdb-types.h new object GimpPDB which keeps all
2006-04-26  Michael Natterer  <mitch@gimp.org>

	* app/pdb/Makefile.am
	* app/pdb/pdb-types.h
	* app/pdb/gimppdb.[ch]: new object GimpPDB which keeps all
	procedures and functions to register and run them. Renamed all
	functions and did some cleanups.

	* app/pdb/gimp-pdb.[ch]
	* app/core/gimp.[ch]: removed the same stuff here.

	* app/pdb/gimp-pdb-query.[ch]: removed these files...

	* app/pdb/gimppdb-query.[ch]: ...added here as members of GimpPDB.

	* app/pdb/gimp-pdb-compat.h: fix include guard.

	* app/batch.c
	* app/actions/vectors-commands.c
	* app/dialogs/about-dialog.c
	* app/file/file-open.c
	* app/file/file-save.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-ins.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimphelp.c
	* app/xcf/xcf.c
	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/procedural_db.pdb: changed includes and function
	calls accordingly.

	* tools/pdbgen/app.pl: pass around GimpPDB instead of Gimp
	pointers to register the internal procedures with. Changed some
	newlines in the generated code.

	* app/pdb/*_cmds.c
	* app/pdb/internal_procs.[ch]: regenerated.

	* app/core/gimppdbprogress.[ch]
	* app/widgets/gimppdbdialog.[ch]: added "pdb" CONSTRUCT_ONLY
	properties.

	* app/plug-in/plug-in-progress.c
	* app/gui/gui-vtable.c: pass gimp->pdb when creating them.

	* app/widgets/gimpbrushselect.c
	* app/widgets/gimpfontselect.c
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimppaletteselect.c
	* app/widgets/gimppatternselect.c: use the new local pdb pointers
	instead of some foo->bar->gimp->pdb overkill.
2006-04-26 09:13:47 +00:00
Michael Natterer 35f0511f0c added an "Auto" button and initialize the tool with a default threshold of
2006-04-25  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpthresholdtool.c: added an "Auto" button and
	initialize the tool with a default threshold of 127 again.
	Removed some cruft and did some cleanup.
2006-04-25 18:02:30 +00:00
Marco Ciampa 3516724652 Updated italian translation 2006-04-25 13:34:52 +00:00
Sven Neumann b254ab726e app/paint-funcs/paint-funcs-generic.h code cleanup, moved variables into
2006-04-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h
	* app/paint-funcs/paint-funcs.c: code cleanup, moved variables into
	local scopes, added const qualifiers.
2006-04-25 12:19:24 +00:00
Sven Neumann f6eebeed6f app/core/gimpchannel.c (gimp_channel_real_border) added some empty lines
2006-04-25  Sven Neumann  <sven@gimp.org>

	* app/core/gimpchannel.c (gimp_channel_real_border)
	* app/paint-funcs/paint-funcs.c (border_region): added some empty
	lines to improve readability.
2006-04-25 11:05:17 +00:00
Sven Neumann 63329e0a28 moved the installtion log into a GtkExpander.
2006-04-24  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: moved the installtion log
	into a GtkExpander.
2006-04-24 15:26:08 +00:00
Sven Neumann 3c1bbd02ef undef GIMP_DISABLE_DEPRECATED to fix the build on IRIX MIPSpro (bug
2006-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/xjt/xjt.c: undef GIMP_DISABLE_DEPRECATED to fix the
	build on IRIX MIPSpro (bug #339336).
2006-04-24 11:16:16 +00:00
Sven Neumann 84affae066 started adding news for 2.3.9 2006-04-24 11:06:35 +00:00
Sven Neumann bf5750d99f implement a thumbnail load procedure that loads only the first frame of a
2006-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gifload.c: implement a thumbnail load procedure
	that loads only the first frame of a GIF animation.
2006-04-24 10:47:10 +00:00
David Odin 7c79798b86 plug-ins/common/redeye.c: use a zoom preview instead of a drawable one. 2006-04-24 09:56:39 +00:00
Sven Neumann 9027a192c0 plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl added Redeye
2006-04-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/redeye.c: added Redeye Removal plug-in, written
	by Robert Merkel and Andreas Røsdal. Fixes bug #91795.
2006-04-23 12:14:13 +00:00
Manish Singh e0d487251b use PNG_CFLAGS for the png plugin.
2006-04-23  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/plugin-defs.pl: use PNG_CFLAGS for the png plugin.

        * plug-ins/common/Makefile.am: regenerated.
2006-04-23 07:22:27 +00:00
Manish Singh f7d7c238f6 don't use long deprecated libpng API, and drop support for ancient libpng
2006-04-23  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/png.c: don't use long deprecated libpng API, and
        drop support for ancient libpng versions. Fixes bug #339402.

        * configure.in: use pkg-config to detect libpng. This means we now
        require at least libpng 1.2.2, but that's over four years old, so
        that shouldn't be that big a deal.
2006-04-23 07:19:41 +00:00
Sven Neumann 9508618a50 added "viewable" as a property.
2006-04-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewabledialog.c: added "viewable" as a property.
2006-04-23 02:28:15 +00:00
Sven Neumann 7755ec12dd app/dialogs/module-dialog.c use GimpDialog instead of a GimpViewableDialog
2006-04-23  Sven Neumann  <sven@gimp.org>

	* app/dialogs/module-dialog.c
	* app/dialogs/palette-import-dialog.c: use GimpDialog instead of a
	GimpViewableDialog with a NULL viewable.

	* app/widgets/gimpviewabledialog.c: deprecate use of
	GimpViewableDialog with a NULL viewable.

	* app/dialogs/resolution-calibrate-dialog.c: whitespace.
2006-04-23 02:15:16 +00:00
Sven Neumann 2f2dca7e6e libgimp/tmpl/gimpproceduraldb.sgml libgimp/tmpl/gimpprogress.sgml
2006-04-22  Sven Neumann  <sven@gimp.org>

	* libgimp/tmpl/gimpproceduraldb.sgml
	* libgimp/tmpl/gimpprogress.sgml
	* libgimpbase/tmpl/gimpenv.sgml
	* libgimpwidgets/tmpl/gimppropwidgets.sgml
	* libgimpwidgets/tmpl/gimpzoommodel.sgml: regenerated (removed
	unused parameters).
2006-04-22 16:54:11 +00:00
Sven Neumann 54b4773e86 renamed parameters to please gtk-doc.
2006-04-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppropwidgets.[ch] (gimp_prop_scale_entry_new):
	renamed parameters to please gtk-doc.
2006-04-22 02:58:02 +00:00
Sven Neumann d132a6a508 minor string changes.
2006-04-21  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h: minor string changes.

	* app/config/gimprc.c: declared an array as const.

	* app/dialogs/user-install-dialog.c: further streamlining of the
	user installation.
2006-04-21 13:32:29 +00:00
Hendrik Richter 3793395157 Fixed German translation (#304298). 2006-04-21 12:52:10 +00:00
Sven Neumann 74e4232271 in an effort to basically get rid of the user installation dialog, removed
2006-04-21  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: in an effort to basically
	get rid of the user installation dialog, removed the license and
	tuning pages as well as the code that was responsible for the
	nifty orange style. More to come ...
2006-04-21 11:07:25 +00:00
Sven Neumann 6a4981c82a Applied a slightly modified version of a patch from Lode Leroy (bug
2006-04-21  Sven Neumann  <sven@gimp.org>

	Applied a slightly modified version of a patch from Lode Leroy
	(bug #336183):

	* app/base/gimphistogram.[ch]: added new function
	gimp_histogram_get_threshold() that returns an optimal
	binarization threshold.

	* app/tools/gimpthresholdtool.c: use the new function to
	initialize the Threshold tool.
2006-04-21 09:40:27 +00:00
Sven Neumann bbe63b4703 strlen != sizeof
2006-04-21  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimputils.c (gimp_utf8_strtrim): strlen != sizeof
2006-04-21 09:14:55 +00:00
Sven Neumann 48fda15424 changed if/else construct to have a final else statement so that the
compiler won't complain about possible uninitialized variables
2006-04-21 07:22:23 +00:00
Sven Neumann 090974f235 app/base/curves.c minor code cleanup, removed trailing whitespace.
2006-04-21  Sven Neumann  <sven@gimp.org>

	* app/base/curves.c
	* app/widgets/gimpsessioninfo.c: minor code cleanup, removed
	trailing whitespace.
2006-04-21 07:02:42 +00:00
Marco Ciampa e9e9abbc78 Updated italian translation 2006-04-21 01:11:05 +00:00
Simon Budig 94431b4087 implemented a new interpolation for the "smooth" curve type. This fixes
2006-04-20  Simon Budig  <simon@gimp.org>

	* app/base/curves.c: implemented a new interpolation for the
	"smooth" curve type. This fixes the artefacts as described in
	bug #169078 although there definitely is room for improvement.

	This has an impact on the API as now the curves used by the
	gimp-curves-spline PDB call change. I do however believe, that
	the change is for good and the old behaviour was simply buggy.
2006-04-20 21:47:16 +00:00
Tor Lillqvist 94d8a4131b New helper function. Same functionality as
2006-04-20  Tor Lillqvist  <tml@novell.com>

	* app/widgets/gimpsessioninfo.c (get_appropriate_monitor): New
	helper function. Same functionality as
	gdk_screen_get_monitor_at_window(), except that it takes a window
	geometry as parameter and not the window itself.
	(gimp_session_info_set_geometry): Make sure the window is
	completely inside a monitor. (#339099, #324254)
2006-04-20 18:41:38 +00:00
Sven Neumann 1436eb92a0 moved ChangeLog entry where it belongs 2006-04-20 12:21:48 +00:00
Simon Budig e7d2f8f220 only access existing toggle buttons. Fixes bug #339124
2006-04-20  Simon Budig  <simon@gimp.org>

	* plug-ins/common/convmatrix.c: only access existing toggle buttons.
	Fixes bug #339124

	* devel-docs/debug-plug-ins.txt: Added hint how to run a plugin
	in the gdb when GIMP_PLUGIN_DEBUG is active.
2006-04-20 12:15:16 +00:00
Sven Neumann 60e3301802 M ChangeLog M app/paint/gimpconvolve.c M app/paint-funcs/paint-funcs.c M
M ChangeLog
M app/paint/gimpconvolve.c
M app/paint-funcs/paint-funcs.c
M app/paint-funcs/paint-funcs.h
M app/tools/gimpiscissorstool.c
M libgimpbase/gimputils.c
M modules/colorsel_cmyk.c
M regexrepl/regex.c
2006-04-20 07:15:15 +00:00
Simon Budig 21061d2451 Addded bug # that got fixed. 2006-04-19 21:13:09 +00:00
Simon Budig 1c63bf565e removed unused code removed deprecated docs regenerated
2006-04-19  Simon Budig  <simon@gimp.org>

	* plug-ins/imagemap/imap_main.c: removed unused code
	* tools/pdbgen/pdb/paths.pdb: removed deprecated docs
	* app/pdb/paths_cmds.c: regenerated
2006-04-19 21:07:11 +00:00