Commit graph

10088 commits

Author SHA1 Message Date
Kevin Cozens 44a8b8c6b1 Need to call gettext in script-fu_menu_compare. Spotted by Sven. Removed
2004-11-20  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: Need to call gettext in
	script-fu_menu_compare. Spotted by Sven. Removed obsolete #define's.
2004-11-20 17:18:37 +00:00
Michael Natterer 38cbe2eaf9 renamed variable "script_list" to "script_tree" because it's a GTree.
2004-11-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: renamed variable
	"script_list" to "script_tree" because it's a GTree.

	(script_fu_remove_script): g_list_free() the right list (don't
	leak all lists of scripts at the tree leaves).
2004-11-20 14:55:51 +00:00
Sven Neumann c102dad9eb Made 2.2-pre2 release.
2004-11-20  Sven Neumann  <sven@gimp.org>

	* Made 2.2-pre2 release.
2004-11-20 00:26:55 +00:00
Sven Neumann 66b998686a added an (optional) parameter that allows to request the output in the
2004-11-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/glob.c: added an (optional) parameter that
	allows to request the output in the filesystem encoding.
2004-11-19 23:35:17 +00:00
Sven Neumann 662f7cfce4 compare the menu paths, not the struct pointers.
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_menu_compare):
	compare the menu paths, not the struct pointers.
2004-11-19 22:13:58 +00:00
Sven Neumann 3d501d24a6 added a naive glob() implementation which handles the most common use case
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/glob.c: added a naive glob() implementation
	which handles the most common use case and is certainly better
	than nothing. Closes bug #143661 again.
2004-11-19 21:19:07 +00:00
Sven Neumann 5570780082 converted a g_warning() to g_printerr().
2004-11-19  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c: converted a g_warning() to g_printerr().
2004-11-19 20:08:14 +00:00
Sven Neumann 21d9257abf just some minor code cleanup.
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/xpm.c: just some minor code cleanup.
2004-11-19 20:00:22 +00:00
Sven Neumann 57245fa6e3 plug-ins/gfig/gfig-dialog.c combined two "Stroke" labels into a single
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig-style.c: combined two "Stroke" labels into a
	single one.
2004-11-19 19:02:06 +00:00
Sven Neumann 9b50c8b2ca applied a (modified) patch that adds the possibility to correlate the
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/noisify.c: applied a (modified) patch that adds
	the possibility to correlate the noise with the signal. Adds the
	new PDB procedure "plug_in_scatter_rgb". Fixes bug #158700.

	* plug-ins/helpbrowser/dialog.c: set a reasonable default size.
2004-11-19 18:11:25 +00:00
Sven Neumann ef31a5f714 fixed use of fread(). Unfortunately this slowed down the plug-in again.
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c (skip_ps) (ps_close): fixed use of
	fread(). Unfortunately this slowed down the plug-in again.
	Disabled the code that reads the pipe to the end. This brings it
	back to speed. Seems to work fine for me, let's see if this causes
	problems for anyone...
2004-11-19 13:34:07 +00:00
Sven Neumann 7ec940630c moved into the <Image>/Select/Modify now that we can safely use
2004-11-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/selection-round.scm: moved into the
	<Image>/Select/Modify now that we can safely use placeholders from
	Script-Fu.
2004-11-19 13:01:33 +00:00
Michael Natterer ebf18dce39 tools/pdbgen/lib.pl added support for deprecated procedures without any
2004-11-19  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/lib.pl
	* tools/pdbgen/stddefs.pdb: added support for deprecated procedures
	without any replacement.

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): added
	a special warning for procedures without replacement.

	* tools/pdbgen/pdb/drawable.pdb: deprecated drawable_set_image()
	without any replacement and made it a nop (which fails if the
	passed image is different from the drawable's image). It's not
	needed any longer since 2.0 and moreover dangerous to use.

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.

	* app/core/gimpitem.c (gimp_item_set_image): replaced assertion
	for gimp_item_is_floating() by !gimp_item_is_attached(). The
	former warned when adding a layer with already added mask to the
	image (which is a perfectly valid operation).
2004-11-19 12:38:34 +00:00
Sven Neumann b606e95236 added a thumbnail load procedure (bug #158193).
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c: added a thumbnail load procedure
	(bug #158193).
2004-11-18 22:49:45 +00:00
Michael Natterer 8a46203e5a Script-Fu string cleanup/simplification: apply the same fix for menu path
2004-11-18  Michael Natterer  <mitch@gimp.org>

	Script-Fu string cleanup/simplification: apply the same fix for
	menu path translation that was done for plug-ins a while ago.

	* plug-ins/script-fu/script-fu.c (script_fu_auxillary_init): use
	gimp_plugin_menu_register() on the "Refresh" temp_proc.

	* plug-ins/script-fu/scripts/*.scm: ported all scripts to use
	script-fu-menu-register and pass just the menu label in
	script-fu-register. Cleaned up all register calls to share a
	somewhat similar formatting.
2004-11-18 22:44:28 +00:00
Sven Neumann 2d4aad8683 changed the default to load only the first page of the document and added
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c: changed the default to load only
	the first page of the document and added a tooltip describing how
	to specify what pages to get.
2004-11-18 21:36:10 +00:00
Sven Neumann 5c002d9b33 fixed check for number of return values.
2004-11-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_thumbnail): fixed check for
	number of return values.
2004-11-18 21:31:20 +00:00
Sven Neumann 86a8c17025 speed up loading of multi-page documents significantly by skipping in
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c: speed up loading of multi-page
	documents significantly by skipping in large chunks instead of using
	fgetc() to crawl through the stream.
2004-11-18 21:10:12 +00:00
Sven Neumann 181c089a51 check the number of return values. Only retrieve width and height if the
2004-11-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_thumbnail): check the number of
	return values. Only retrieve width and height if the thumbnail
	load procedure does actually provide such this information.

	* plug-ins/common/postscript.c: added a procedure to loads
	thumbnails.  For now it only renders the first page of the
	document at low resolution. It should be extended to load an
	embedded thumbnail if available.

	* plug-ins/common/jpeg.c
	* plug-ins/common/svg.c: no need to register a menu label for the
	thumbnail loaders. Allocate the return_vals array large enough to
	hold all return values.
2004-11-18 19:00:02 +00:00
Michael Natterer 567bb7b2db added boolean property "value-variable" which specifies if the
2004-11-18  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpenumaction.[ch]: added boolean property
	"value-variable" which specifies if the GimpEnumAction::selected()
	signal may be emitted with arbirtary values (value-variable = TRUE)
	or *only* with enum_action->value (value-variable = FALSE).

	* app/widgets/gimpactiongroup.[ch]: added "gboolean
	value_variable" to GimpEnumActionEntry and set it in
	gimp_action_group_add_enum_actions().

	* app/actions/channels-actions.c
	* app/actions/colormap-editor-actions.c
	* app/actions/context-actions.c
	* app/actions/drawable-actions.c
	* app/actions/edit-actions.c
	* app/actions/error-console-actions.c
	* app/actions/gradient-editor-actions.c
	* app/actions/image-actions.c
	* app/actions/layers-actions.c
	* app/actions/palette-editor-actions.c
	* app/actions/plug-in-actions.c
	* app/actions/vectors-actions.c
	* app/actions/view-actions.c: set "variable" to FALSE for all enum
	actions except those which are used with the GIMP_ACTION_SELECT_SET
	voodoo.

	* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
	fall back to gtk_action_activate() if the action specified in a
	GIMP_CONTROLLER_EVENT_VALUE mapping is not variable. Enables
	triggering of enum actions from GIMP_CONTROLLER_EVENT_VALUE events
	(like midi note-on and note-off).
2004-11-18 16:04:41 +00:00
Michael Natterer bf08b8fd0a pasted the complete alsa.m4 so compiling from CVS doesn't require alsa.m4
2004-11-18  Michael Natterer  <mitch@gimp.org>

	* acinclude.m4: pasted the complete alsa.m4 so compiling from
	CVS doesn't require alsa.m4 to be installed.

	* configure.in: check for alsa >= 1.0.0 and define HAVE_ALSA
	if found.

	* modules/Makefile.am: build controller_midi with ALSA_CFLAGS
	and ALSA_LIBS.

	* modules/controller_midi.c: s/HAVE_ALSALIB_H/HAVE_ALSA/.
2004-11-18 14:51:19 +00:00
Michael Natterer 30164f1be2 added back the .xcf.gz and .xcf.bz2 extensions because they are the only
2004-11-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/compressor.c (compressors): added back the
	.xcf.gz and .xcf.bz2 extensions because they are the only way
	to figure the special nature of this plug-in's extensions.

	* app/widgets/gimpfileprocview.[ch]: keep a list of "meta
	extensions" (extensions which have a '.' themselves).

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	try to replace the whole extension if the last extension is one of
	the meta extensions kept by GimpFileProcView. Fixes bug #158377.
2004-11-18 11:50:25 +00:00
Sven Neumann a1f5eabb6c plug-ins/maze/maze.[ch] removed the extra help button from the Maze
2004-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze.[ch]
	* plug-ins/maze/maze_face.c: removed the extra help button from
	the Maze plug-in. Fixes bug #158605.
2004-11-18 08:59:56 +00:00
Michael Natterer b8344d519c The following fixes have no visible effect because nobody uses
2004-11-18  Michael Natterer  <mitch@gimp.org>

	The following fixes have no visible effect because nobody
	uses gimp_plugin_menu_register() on temp_procs yet:

	* app/actions/plug-in-actions.[ch]: added
	plug_in_actions_add_path() which just adds the actions needed for
	a given menu math, but not the procedure action itself.

	* app/gui/gui-vtable.c (gui_menus_create_entry): create the
	menu_path's actions using above function so adding of submenus to
	existing ui managers works.

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker):
	don't add a menu if "no_interface" is TRUE.

	* app/pdb/plug_in_cmds.c: regenerated.

	* plug-ins/script-fu/script-fu-scripts.c: pass untranslated
	menu_paths to the core, not translated ones. Don't store the
	scripts directly in the "script_list" tree but use a list of
	scripts per key because there can be identical keys for different
	scripts now. Fixed sorting of menu entries and menus.
2004-11-18 01:57:13 +00:00
Simon Budig a77109ba3d implemented support for ALSA-midi, currently disabled. Needs a
2004-11-18  Simon Budig  <simon@gimp.org>

	* modules/controller_midi.c: implemented support for ALSA-midi,
	currently disabled. Needs a configure-check and proper linking
	against libasound.
2004-11-17 23:51:42 +00:00
Dave Neary dded69dcc8 Fixed initialisation issue that was crashing the plug-in on repeat runs.
2004-11-17  Dave Neary  <bolsh@gimp.org>

	* plug-ins/common/bumpmap.c: Fixed initialisation issue
	that was crashing the plug-in on repeat runs. Fixes bug
	#158494.
2004-11-17 21:49:08 +00:00
Sven Neumann 9b01de6c28 added missing callbacks for the size entries. Needs some more work
2004-11-17  Sven Neumann  <sven@gimp.org>

	* app/dialogs/print-size-dialog.c: added missing callbacks for the
	size entries. Needs some more work though...
2004-11-17 21:07:10 +00:00
Manish Singh b91a3dd27e make libgimpprocbrowser a libtooled library.
2004-11-17  Manish Singh  <yosh@gimp.org>

        * plug-ins/dbbrowser/Makefile.am: make libgimpprocbrowser a libtooled
        library.

        * plug-ins/dbbrowser/gimpprocbrowser.[ch]: add a user_data pointer
        for GimpProcBrowserApplyCallback.

        * plug-ins/dbbrowser/gimpprocbrowser.c: only convert the name to
        scheme style if scheme_names in the proc info pane too.

        * plug-ins/dbbrowser/procedure-browser.c
        * plug-ins/script-fu/script-fu-console.c: pass NULL as user_data.

        * plug-ins/script-fu/Makefile.am: reference libgimpprocbrowser.la.

        * plug-ins/pygimp/Makefile.am
        * plug-ins/pygimp/procbrowser.c: new module, which wraps
        libgimprocbrowser.

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp.h
        * plug-ins/pygimp/pygimp-pdb.c: export GimpPDBFunction so other
        modules can use it.

        * plug-ins/pygimp/plug-ins/pdbbrowse.py
        * plug-ins/pygimp/plug-ins/gimpcons.py: use gimpprocbrowser.
2004-11-17 20:02:23 +00:00
Sven Neumann 235bb4082a added a utility function to reduce code duplication.
2004-11-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c: added a utility
	function to reduce code duplication.
2004-11-17 17:06:22 +00:00
Michael Natterer 6580cc4c4a plug-ins/script-fu/script-fu-scripts.[ch] appled patch from Kevin Cozens
2004-11-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.[ch]
	* plug-ins/script-fu/siod-wrapper.c: appled patch from Kevin
	Cozens which adds (script-fu-menu-register) and allows scripts to
	register their menu_paths the same undeprecated way as plug-ins.
	Fixes bug #158117.

	* plug-ins/script-fu/scripts/test-sphere.scm: example how to use
	the new API. Doesn't change strings because test-shpere.scm is an
	untranslated example script.
2004-11-17 15:24:07 +00:00
Michael Natterer d871be74bf Made plug-in menu registration work the same way for ordinary and
2004-11-17  Michael Natterer  <mitch@gimp.org>

	Made plug-in menu registration work the same way for ordinary and
	temporary procedures. Addresses bug #158117.

	* app/core/gimp-gui.[ch]: added "const gchar *menu_path" to
	gimp_menus_create_entry().

	* app/gui/gui-vtable.c (gui_menus_create_entry): if menu_path is
	NULL, behave as before and create an action and its menu entries
	for all the procedure's menu_paths. If it is non-NULL, skip action
	creation and create a menu entry just for that path.

	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add): call
	gimp_menus_create_entry() with a NULL menu path and call it if
	proc_def->menu_paths *or* proc_def->menu_label is non-NULL, so
	it creates at least the procedure's action, even if it has
	no menu_path (yet).

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): check both
	the list of procs and temp_procs when trying to register the
	entry.  Allow ordinary procedures and extensions to install stuff
	at query() and init() time and allow temp_procs to install stuff
	at any time.

	* app/pdb/plug_in_cmds.c: regenerated.
2004-11-17 14:51:50 +00:00
Michael Natterer 9daad804e3 plug-ins/dbbrowser/gimpprocbox.c plug-ins/dbbrowser/gimpprocbrowser.[ch]
2004-11-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/dbbrowser/gimpprocbox.c
	* plug-ins/dbbrowser/gimpprocbrowser.[ch]
	* plug-ins/dbbrowser/gimpprocview.c: some cleanup in preparation
	of moving it to a more public place.

	* plug-ins/dbbrowser/procedure-browser.c
	* plug-ins/script-fu/script-fu-console.c: changed accordingly.
2004-11-17 14:30:35 +00:00
Sven Neumann 9c92651c8c removed --enable-gtk-doc here since it only causes 'make distcheck' to
2004-11-17  Sven Neumann  <sven@gimp.org>

	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): removed --enable-gtk-doc
	here since it only causes 'make distcheck' to break earlier as usual.
2004-11-17 10:53:07 +00:00
Sven Neumann 4b55725846 plug-ins/rcm/Makefile.am plug-ins/rcm/rcm_callback.c
2004-11-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/rcm/Makefile.am
	* plug-ins/rcm/rcm_callback.c
	* plug-ins/rcm/rcm_dialog.c
	* plug-ins/rcm/rcm_stock.[ch]: applied a patch from Karine Proot
	that replaces the XPM icons with stock icons (bug #140202).

	* plug-ins/rcm/pixmaps/*.xpm: removed.

	* plug-ins/Lighting/lighting_stock.c
	* plug-ins/MapObject/mapobject_stock.c
	* plug-ins/gfig/gfig-stock.c: fixed a common but harmless mistake
	in the icon factory code.
2004-11-17 10:44:02 +00:00
Manish Singh f12184a72e Hide SVG drop g_print under be_verbose.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * app/widgets/gimpvectorstreeview.c: Hide SVG drop g_print under
        be_verbose.
2004-11-17 03:42:47 +00:00
Manish Singh ed0ff9f519 Handle placeholder defaults for gimp objects (bug #158392). Patch by Joao
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpui.py: Handle placeholder defaults for gimp
        objects (bug #158392). Patch by Joao S. O. Bueno.
2004-11-17 03:14:13 +00:00
Manish Singh 027a85b17b Use img.name if filename is not available (bug #158392). Patch by Joao S.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpui.py: Use img.name if filename is not
        available (bug #158392). Patch by Joao S. O. Bueno.
2004-11-17 03:11:46 +00:00
Manish Singh 5020e691a8 Fix cut'n'paste lameness 2004-11-17 03:09:23 +00:00
Manish Singh 007d7549b4 plug-ins/common/gimpfu.py Add a palette selector (bug #155325). Patch by
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gimpfu.py
        * plug-ins/common/gimpui.py: Add a palette selector (bug #155325).
        Patch by Joao S. O. Bueno.
2004-11-17 03:02:54 +00:00
Manish Singh f499a2aacd Fix -fu slider behavior (bug #155103). Patch by Joao S. O. Bueno.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/gimpfu.py: Fix -fu slider behavior (bug #155103).
        Patch by Joao S. O. Bueno.
2004-11-17 02:58:50 +00:00
Manish Singh 5ab6167570 Remove unnecessary G_OBJECT() casts.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/glasstile.c: Remove unnecessary G_OBJECT() casts.
2004-11-17 02:55:29 +00:00
Manish Singh 54f7464829 Compile pygimp with -fno-strict-aliasing if the compiler supports it.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * configure.in:
        * plug-ins/pygimp/Makefile.am: Compile pygimp with
        -fno-strict-aliasing if the compiler supports it.

        * plug-ins/pygimp/gimpui.py: Make "..." into "Browse..." for
        everything but the filesel, for slightly more consistency with
        script-fu. Addresses #124791.

        * plug-ins/pygimp/gimpmodule.c: Wrapped
        gimp_context_{get,set}_gradient and
        gimp_gradient_get_{uniform,custom}_samples. Deprecated the deprecated
        versions of these, and rewrote them in terms of the new functions.
2004-11-17 02:50:53 +00:00
Michael Natterer cd1960ad7d replaced the while(plug_in->temp_procs) "loop" which called
2004-11-17  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in.c (plug_in_close): replaced the
	while(plug_in->temp_procs) "loop" which called
	plug_in_proc_frame_quit() by a real for()-loop iterating over the
	list of PlugInProcFrames, calling g_main_loop_quit() on each main
	loop. The old version did not unroll the stack but looped
	infinitely. Spotted by Yosh.
2004-11-17 01:38:07 +00:00
Sven Neumann bc69560b7e plug-ins/imagemap/imap_selection.c silent the compiler.
2004-11-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_selection.c
	* plug-ins/imagemap/imap_preferences.c: silent the compiler.
2004-11-17 01:26:58 +00:00
Michael Natterer 9560d154e4 applied (modified) patch from S. Mukund which adds EXIF thumbnail loading
2004-11-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/jpeg.c: applied (modified) patch from S. Mukund
	which adds EXIF thumbnail loading and saving.
	Fixes bugs #155761 and #158190.
2004-11-17 01:05:05 +00:00
David Odin a3f6b3e630 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
* plug-ins/gfig/gfig-style.c
* plug-ins/gfig/gfig-style.h
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.h: added a toggle so we can now choose to stroke
	the painting or not.
2004-11-16 22:45:35 +00:00
David Odin 8124795437 implemented the gradient fill, using a shapeburst blend. This is very
* plug-ins/gfig/gfig-dialog.c: implemented the gradient fill, using a
  shapeburst blend.  This is very slow, but I dont see how it could be
  done otherwise.
2004-11-16 19:36:30 +00:00
Michael Natterer fb87f44701 get rid of the gimp_fg_bg_editor_context_changed() callback and
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfgbgeditor.c: get rid of the
	gimp_fg_bg_editor_context_changed() callback and
	g_signal_connect_swapped() gtk_widget_queue_draw() directly.
2004-11-16 18:53:54 +00:00
Michael Natterer 1e4dc95ec2 implement GimpDockedInterface::set_context() and set the context of the
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpchanneltreeview.c: implement
	GimpDockedInterface::set_context() and set the context of the
	embedded GimpComponentEditor. Fixes NULL-context crashes in
	action callbacks when invoked from the component editor.
	Spotted by Jimmac.

	Unrelated:

	* app/widgets/gimpitemtreeview.c: get rid of the
	gimp_item_tree_view_context_changed() callback and
	g_signal_connect_swapped() gimp_item_tree_view_set_image()
	directly.
2004-11-16 18:36:48 +00:00
Sven Neumann ab3d24f1be added missing braces around initializer.
2004-11-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jigsaw.c: added missing braces around initializer.
2004-11-16 15:38:35 +00:00
Michael Natterer e856d58768 renamed the new drawable_foo_defaults() functions to
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: renamed the new
	drawable_foo_defaults() functions to drawable_foo_default() to be
	consistent with paintbrush_default() and friends.

	* tools/pdbgen/pdb/transform_tools.pdb
	* libgimp/gimp.def: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]
	* libgimp/gimptransformtools_pdb.c: regenerated.

	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/image-structure.scm
	* plug-ins/script-fu/scripts/text-circle.scm: follow the API change.
2004-11-16 15:25:13 +00:00
Sven Neumann 01792f005f increased default tile-cache-size to 128MB.
2004-11-16  Sven Neumann  <sven@gimp.org>

	* app/config/gimpbaseconfig.c: increased default tile-cache-size
	to 128MB.

	* app/config/gimpcoreconfig.c: increased default undo size to 16MB.
2004-11-16 15:09:56 +00:00
Michael Natterer 4caf20c229 tools/pdbgen/pdb/image.pdb entirely removed the deprecated functions
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/selection.pdb: entirely removed the deprecated
	functions "selection_clear", "image_set_cmap" and "image_get_cmap".

	* app/pdb/procedural_db.c: and added them to the compat hash table
	because they have undeprecated replacements with identical
	signature.

	* libgimp/gimpselection.[ch]: added gimp_selection_clear() here
	instead because we need the symbol in libgimp.

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/selection_cmds.c
	* libgimp/gimpselection_pdb.[ch]: regenerated.
2004-11-16 14:34:34 +00:00
David Odin 8f0f5f11f5 renamed the DObject type to GfigObject, according to our common type
* plug-ins/gfig/gfig-dobject.h: renamed the DObject type to
  GfigObject, according to our common type naming.  This type will
  certainly become an abstract class in a near future.

* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-bezier.h
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-line.h
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-poly.h
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.c
* plug-ins/gfig/gfig.h: changed accordingly.
2004-11-16 14:10:20 +00:00
Michael Natterer c0d9179492 removed redundant "gimage" parameter.
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpitem-linked.[ch] (gimp_item_linked_get_list):
	removed redundant "gimage" parameter.

	* app/tools/gimpeditselectiontool.c: changed accordingly.
2004-11-16 13:52:04 +00:00
Michael Natterer 0d5df41904 app/core/gimpchannel-select.c app/core/gimpchannel.c
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel-select.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-histogram.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-levels.c
	* app/core/gimpdrawable-offset.c
	* app/core/gimpdrawable-stroke.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpdrawable.c
	* app/core/gimpitem-linked.c
	* app/core/gimpitem.c
	* app/core/gimplayer.c
	* app/core/gimpselection.c
	* app/paint/gimppaintcore-stroke.c
	* app/text/gimptextlayer.c: in all functions which somehow
	(explicitely or implicitely) touch undo, either g_return_if_fail()
	on gimp_item_is_attached() or simply don't push an undo step if
	feasible (e.g. for simple stuff like layer opacity).

	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/paint_tools.pdb: let PDB wrappers fail
	accordingly so they don't run into the assertions added above.

	* app/pdb/color_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/paint_tools_cmds.c: regenerated.
2004-11-16 13:41:55 +00:00
Sven Neumann d4bf381c20 app/actions/file-commands.c app/dialogs/file-save-dialog.c
2004-11-16  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c
	* app/dialogs/file-save-dialog.c
	* app/file/file-save.[ch]
	* app/widgets/gimpfiledialog.[ch]: combined "set_uri_and_proc" and
	"set_image_clean" parameters into a single "save_a_copy"
	parameter.  When saving a copy, attach the used URI to the image and
	let the "Save a Copy" file chooser default to the last used value.
2004-11-16 13:37:36 +00:00
Sven Neumann 8d4803c72c fixed typo (bug #158425).
2004-11-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glossy.scm: fixed typo (bug #158425).
2004-11-16 10:59:53 +00:00
David Odin 4f10f3900b added a blurb proposed by Alan Horkan.
* plug-ins/gfig/gfig.c: added a blurb proposed by Alan Horkan.

* plug-ins/gfig/gfig-line.[ch]: smallish style fix.
2004-11-15 21:17:03 +00:00
David Odin 3f2da3a1fb better icon for the ellipse tool (a lot more elliptical) by Jimmac and
* plug-ins/gfig/images/stock-ellipse.png: better icon for the ellipse
  tool (a lot more elliptical) by Jimmac and Zigomar.
2004-11-15 20:52:40 +00:00
Sven Neumann c286aece5d limit the number of file extensions that are added to the file filter menu
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	limit the number of file extensions that are added to the file
	filter menu to keep the file dialog from growing too wide.
2004-11-15 19:33:24 +00:00
Philip Lafleur 04f7c55432 Further optimization of perspective tool preview - never calculate the
2004-11-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Further optimization of
	perspective tool preview - never calculate the same vertex more
	than once.
2004-11-15 15:22:45 +00:00
Sven Neumann fb0985a1c3 app/widgets/gimpfileprocview.c (gimp_file_proc_view_get_proc) better fix
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfileprocview.c (gimp_file_proc_view_get_proc)
	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	better fix for bug #158369.
2004-11-15 13:50:02 +00:00
Sven Neumann 562b1595f2 better fix for bug #158369.
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	better fix for bug #158369.
2004-11-15 13:42:22 +00:00
Sven Neumann e196a77246 return early if gimp_file_proc_view_get_proc() didn't return a file
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	return early if gimp_file_proc_view_get_proc() didn't return a file
	procedure. Should fix bug #158369.
2004-11-15 13:38:00 +00:00
Øyvind Kolås bd2cc46762 removed unused files 2004-11-15 01:00:56 +00:00
Sven Neumann dcc9457667 moved Scizzo's ChangeLog entry to the right place 2004-11-15 00:02:51 +00:00
Niklas Mattisson 29ce6c3c08 Fixed a problem with the translation. 2004-11-14 23:58:04 +00:00
Sven Neumann 869a1b680d started to redo this dialog without using a GimpSizeBox. The widgets
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/dialogs/print-size-dialog.c: started to redo this dialog
	without using a GimpSizeBox. The widgets aren't connected, so it
	isn't usable yet.

	* app/widgets/gimpprogressbox.c
	* app/widgets/gimpprogressdialog.c
	* app/widgets/gimpsizebox.c: trivial cleanups.

	* data/images/gimp-splash.png: splash for 2.2-pre2, done by Jimmac.
2004-11-14 23:51:46 +00:00
Sven Neumann 376b23f9d3 converted error messages that should never appear to warnings.
2004-11-14  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c: converted error messages that should
	never appear to warnings.
2004-11-14 22:01:13 +00:00
David Odin ff7f8b5f6b plug-ins/gfig/gfig-dialog.c plug-ins/gfig/gfig-dobject.c fixed a crash
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-dobject.h: fixed a crash (the one triggered by
  this sequence: draw a line, delete it, redraw something), and
  corrected some ui spacing.
2004-11-14 21:16:06 +00:00
Sven Neumann c10b2c10b1 applied a (slightly modified) patch from Nickolay V. Shmyrev that changes
2004-11-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette-import.c: applied a (slightly modified)
	patch from Nickolay V. Shmyrev that changes the palette import
	function to not only read palettes in the RIFF format but also
	GIMP and Photoshop ACT palette files (bug #158297).
2004-11-14 20:15:05 +00:00
Sven Neumann ab2017c620 Makefile.am (EXTRA_DIST) MAINTAINERS PLUGIN_MAINTAINERS removed these
2004-11-14  Sven Neumann  <sven@gimp.org>

	* Makefile.am (EXTRA_DIST)
	* MAINTAINERS
	* PLUGIN_MAINTAINERS
	* TODO.xml: removed these files from the tarball and from CVS.
	Doesn't make sense to keep unmaintained files around that provide
	outdated and in large parts wrong information.
2004-11-14 18:11:04 +00:00
Sven Neumann 58adcf76e6 use the proper parent widget.
2004-11-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c (load_button_callback): use the
	proper parent widget.
2004-11-14 16:51:01 +00:00
David Odin 534bd0f0e0 plug-ins/gfig/gfig-dialog.c small UI tweaks, suggested by Sven.
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-types.h: small UI tweaks, suggested by
  Sven.
2004-11-14 16:37:12 +00:00
Sven Neumann ebe65f6569 configure.in plug-ins/rcm/Makefile.am plug-ins/rcm/images/Makefile.am
2004-11-14  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/rcm/Makefile.am
	* plug-ins/rcm/images/Makefile.am
	* plug-ins/rcm/images/rcm-360.png
	* plug-ins/rcm/images/rcm-a-b.png
	* plug-ins/rcm/images/rcm-ccw.png
	* plug-ins/rcm/images/rcm-cw.png: added PNG versions of the XPM
	icons used by the RCM plug-in. Added rules to build a header file
	that can be used to get rid of the XPM files (bug #140202).
2004-11-14 16:20:18 +00:00
David Odin ef1db26bf1 plug-ins/gfig/gfig-dialog.c plug-ins/gfig/gfig-dialog.h
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dialog.h
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-dobject.h
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.c
* plug-ins/gfig/gfig.h: replace the crappy DAllObjs struct by a GList.
  Makes the code cleaner and less error prone.
2004-11-14 15:55:10 +00:00
Sven Neumann bd1f784fae applied a patch from Karine Proot that replaces the XPM icons with pixbufs
2004-11-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/pagecurl/pagecurl.c: applied a patch from Karine Proot
	that replaces the XPM icons with pixbufs (bug #140202).

	* plug-ins/pagecurl/curl[0-7].xpm: removed.
2004-11-14 14:29:38 +00:00
Sven Neumann 47061dbf78 fixed typo.
2004-11-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/Makefile.am: fixed typo.

	* plug-ins/pagecurl/Makefile.am
	* plug-ins/pagecurl/curl[0-7].png: added PNG versions of the XPM
	icons used by the PageCurl plug-in. Added rules to build a header
	file that can be used to get rid of the XPM files (bug #140202).
2004-11-14 12:20:50 +00:00
Philip Lafleur 50833de419 Eliminated about 96 floating-point divides per frame in the persective
2004-11-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Eliminated about 96
	floating-point divides per frame in the persective preview.
2004-11-14 09:27:34 +00:00
Manish Singh 5d01581069 Fix a bunch of warnings from Sparse:
2004-11-13  Manish Singh  <yosh@gimp.org>

        Fix a bunch of warnings from Sparse:

        * app/actions/dockable-commands.c
        * app/actions/layers-actions.c
        * app/actions/view-commands.c
        * app/base/pixel-surround.c
        * app/config/gimpconfig-utils.c
        * app/config/gimpscanner.c
        * app/core/gimpbrushgenerated.c
        * app/core/gimpcontainer.c
        * app/core/gimpimage.c
        * app/dialogs/palette-import-dialog.c
        * app/file/gimprecentlist.c
        * app/plug-in/plug-in-params.c
        * app/text/gimptext-compat.c
        * app/text/gimptext-parasite.c
        * app/vectors/gimpbezierstroke.c
        * app/vectors/gimpstroke.c
        * app/widgets/gimpcellrendereraccel.c
        * app/widgets/gimpselectiondata.c
        * app/xcf/xcf.c
        * libgimp/gimp.c
        * libgimpthumb/gimpthumb-utils.c
        * libgimpthumb/gimpthumbnail.c
        * modules/cdisplay_proof.c
        * plug-ins/Lighting/lighting_ui.c
        * plug-ins/common/csource.c
        * plug-ins/common/glasstile.c
        * plug-ins/common/nova.c
        * plug-ins/common/pcx.c
        * plug-ins/common/pnm.c
        * plug-ins/common/randomize.c
        * plug-ins/common/screenshot.c
        * plug-ins/common/sel_gauss.c
        * plug-ins/common/spheredesigner.c
        * plug-ins/common/wind.c
        * plug-ins/gfig/gfig-dialog.c
        * plug-ins/gfig/gfig-dobject.c
        * plug-ins/gimpressionist/gimpressionist.c
        * plug-ins/ifscompose/ifscompose.c
        * plug-ins/print/gimp_main_window.c
        * plug-ins/print/print.c: Cleanup integer vs. pointer confusion.

        * app/base/temp-buf.c
        * app/dialogs/about-dialog.c
        * plug-ins/common/bumpmap.c
        * plug-ins/common/jigsaw.c
        * plug-ins/gfig/gfig-dobject.c: Cosmetic cleanups.

        * app/config/gimpconfig-deserialize.c
        * app/config/gimpconfig-path.c
        * app/config/gimpconfigwriter.c
        * app/core/gimpgradient.c
        * app/tools/gimpdrawtool.c
        * plug-ins/common/nlfilt.c
        * plug-ins/common/unsharp.c
        * plug-ins/common/zealouscrop.c: Define inline functions before they
        are used.

        * app/core/gimpdrawable-blend.c: PixelRegion definition was changed
        some time ago, but the initialization here didn't change. Fix it.

        * app/plug-in/plug-in-rc.c (plug_in_extra_deserialize): No need to
        assign token twice in a row.

        * libgimpbase/gimpdatafiles.c (gimp_datafiles_read_directories): No
        need to initialize file_data, since the code fills out all the fields.

        * plug-ins/common/CML_explorer.c
        * plug-ins/common/vpropagate.c: Declare function pointers fully.

        * plug-ins/common/grid.c (pix_composite): G_INLINE_FUNC isn't needed,
        we assume we can use the "inline" keyword always.

        * plug-ins/common/psd_save.c
        * plug-ins/common/vinvert.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-dobject.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
        * plug-ins/gfig/gfig.c
        * plug-ins/gimpressionist/orientmap.c
        * plug-ins/gimpressionist/placement.c
        * plug-ins/gimpressionist/sizemap.c
        * plug-ins/imagemap/imap_grid.c
        * plug-ins/imagemap/imap_main.c
        * plug-ins/imagemap/imap_preferences.c
        * plug-ins/imagemap/imap_settings.c
        * plug-ins/maze/maze.c
        * plug-ins/sel2path/curve.c
        * plug-ins/sel2path/fit.c
        * plug-ins/sel2path/pxl-outline.c
        * plug-ins/sel2path/spline.c
        * plug-ins/xjt/xjt.c: Functions with no args should be declared
        with (void).

        * plug-ins/common/retinex.c (MSRCR): Initialize max_preview to quiet
        the compiler.
2004-11-14 02:50:33 +00:00
Sven Neumann ec9ee41fe7 themes/Default/images/Makefile.am
2004-11-14  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-center-16.png
	* themes/Default/images/stock-center-24.png
	* themes/Default/images/stock-print-resolution-16.png
	* themes/Default/images/stock-print-resolution-24.png: new icons
	drawn by Jimmac.

	* libgimpwidgets/gimpstock.[ch]: registered the new icons.

	* app/actions/image-actions.c
	* app/dialogs/print-size-dialog.c
	* app/dialogs/resize-dialog.c
	* plug-ins/ifscompose/ifscompose.c: use them.
2004-11-14 01:51:21 +00:00
Sven Neumann 232e5ea221 bumped version to 2.2-pre2.
2004-11-14  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version to 2.2-pre2.
2004-11-14 01:16:18 +00:00
Manish Singh c563a249b9 Adapted Sven's code into pdbgen so that gimp_image_set_filename()
2004-11-13  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/image.pdb: Adapted Sven's code into pdbgen so
        that gimp_image_set_filename() validates that it is called with
        a filename in the filesystem encoding which can safely be converted
        to UTF-8 and back. Fixes #153751.

        * app/pdb/image_cmds.c
        * libgimp/gimpimage_pdb.c: Regenerated.
2004-11-14 00:35:24 +00:00
Sven Neumann 9ac6ecef0a app/dialogs/Makefile.am new files for the Print Size dialog that is still
2004-11-13  Sven Neumann  <sven@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/print-size-dialog.[ch]: new files for the Print Size
	dialog that is still missing. Still work in progress...

	* app/actions/image-actions.c
	* app/actions/image-commands.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in: integrate the new dialog.
2004-11-13 22:27:39 +00:00
Sven Neumann ff654be7d6 deprecate gimp_selection_clear() in favor of gimp_selection_none(). Fixes
2004-11-13  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/selection.pdb: deprecate gimp_selection_clear()
	in favor of gimp_selection_none(). Fixes bug #156765.

	* app/pdb/selection_cmds.c
	* libgimp/gimpselection_pdb.[ch]: regenerated.
2004-11-13 21:01:12 +00:00
Kevin Cozens 61c39023d6 plug-ins/gfig/gfig.c Changed gimp-selection-none to gimp-selection-clear
2004-11-13  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/gfig/gfig.c
	* plug-ins/gfig/gfig-dialog.c: Changed gimp-selection-none to
	gimp-selection-clear (bug #156765)
2004-11-13 20:56:47 +00:00
Kevin Cozens 11e64d03cd plug-ins/script-fu/scripts/gimp-headers.scm
2004-11-13  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/gimp-headers.scm
	* plug-ins/script-fu/scripts/gimp-labels.scm
	* plug-ins/script-fu/scripts/news-text.scm
	* plug-ins/script-fu/scripts/speed-text.scm: Changed calls to
	gimp-selection-clear to use gimp-selection-none in preparation
	for the deprecation of -clear. (bug #156765)
2004-11-13 20:37:52 +00:00
Sven Neumann 9a9a3ba3de document the fact that gimp_image_get_filename() returns the filename in
2004-11-13  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: document the fact that
	gimp_image_get_filename() returns the filename in the filesystem
	encoding. Fixed gimp_image_get_name() to actually return the name
	in UTF-8 encoding.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.c

	* app/vectors/gimpbezierstroke.h: formatting.
2004-11-13 20:34:43 +00:00
Sven Neumann 5a3b3fff70 app/core/gimpimagefile.[ch] app/file/file-open.c pass the MIME type from
2004-11-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.[ch]
	* app/file/file-open.c
	* app/file/file-save.c: pass the MIME type from the save procedure
	to gimp_imagefile_save_thumbnail() so that it can be stored with
	the thumbnail.

	* tools/pdbgen/pdb/fileops.pdb
	* app/pdb/fileops_cmds.c: changed accordingly.
2004-11-13 17:13:21 +00:00
Sven Neumann b62ca985aa app/plug-in/plug-in-proc-def.[ch] app/plug-in/plug-in-rc.c allow to
2004-11-13  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-proc-def.[ch]
	* app/plug-in/plug-in-rc.c
	* app/plug-in/plug-ins.[ch]: allow to associate a procedure for
	thumbnail loading with any file load procedure.

	* tools/pdbgen/pdb/fileops.pdb: export this functionality to the
	PDB as gimp_register_thumbnail_loader().

	* app/pdb/fileops_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpfileops_pdb.[ch]: regenerated.

	* app/core/gimpimagefile.c
	* app/file/file-open.[ch]: when creating a thumbnail for an image
	file, use a thumbnail load procedure if available.

	* plug-ins/common/svg.c: added "file_svg_load_thumb", a procedure
	that allows to load a small preview of the SVG image.
2004-11-13 17:06:06 +00:00
David Odin 4a0f6aa775 added back <control>H as a shortcut for "Anchor Layer". Spotted by Bruno
* app/actions/layers-actions.c: added back <control>H as a shortcut
  for "Anchor Layer".  Spotted by Bruno Ronzani.
2004-11-13 15:46:45 +00:00
David Odin e65ec12396 use a GimpAspectPreview instead of a GimpDrawablePreview. Fixes bug
* plug-ins/common/retinex.c: use a GimpAspectPreview instead of a
  GimpDrawablePreview. Fixes bug #157915. Also fixed the funny behaviour
  of the progress bar.
2004-11-13 14:52:23 +00:00
Sven Neumann 4cc6564a0e changed based on a patch by Joao S. O. Bueno to remove mnemonics as used
2004-11-13  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimputils.c (gimp_strip_uline): changed based on a
	patch by Joao S. O. Bueno to remove mnemonics as used in languages
	like Chinese. Fixes bug #157561.
2004-11-13 12:32:01 +00:00
Sven Neumann 4cbef9ff1b changed plug-in name from "IfsCompose" to "IFS Fractal". Sorry for the
2004-11-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: changed plug-in name from
	"IfsCompose" to "IFS Fractal". Sorry for the late string changes
	but the old name definitely was akward and probably hard to
	translate anyway. Fixes bug #157135.
2004-11-13 12:00:11 +00:00
Sven Neumann 9d64e06b46 updated link to the tutorial (pointed out by Alan Horkan) and added
2004-11-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/README.ifscompose: updated link to the
	tutorial (pointed out by Alan Horkan) and added another link.

	* plug-ins/ifscompose/ifscompose_storage.c: removed trailing
	whitespace.
2004-11-13 11:47:20 +00:00
Sven Neumann 2cb5f99887 fixed table size.
2004-11-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/retinex.c (retinex_dialog): fixed table size.
2004-11-13 03:28:33 +00:00
Simon Budig 7945dc7a4b Return the active layer instead of the bottom layer when just merging down
2004-11-13  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-merge.c: Return the active layer instead of
	the bottom layer when just merging down a floating selection.
	Untabbified.

	Fixes bug #158130.
2004-11-13 01:59:16 +00:00
Sven Neumann a830d56f30 app/config/gimpconfig-dump.c better fix for bug #157971.
2004-11-12  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c better fix for bug #157971.

	* docs/gimprc.5.in: regenerated.
2004-11-12 22:49:23 +00:00
David Odin 1ded50aaba plug-ins/gfig/images/stock-show-all.png new icons made by Jimmac.
* plug-ins/gfig/images/stock-show-all.png
* plug-ins/gfig/images/stock-select-object.png: new icons made by
	Jimmac.
2004-11-12 11:43:24 +00:00
Michael Natterer b7e8659ac3 disallow non-attached items to be pushed to the undo stack.
2004-11-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-undo-push.c: disallow non-attached items
	to be pushed to the undo stack.
2004-11-12 10:56:23 +00:00
David Odin 8ad5aefa69 plug-ins/gfig/images/stock-show-all.png added these two stock icons.
* plug-ins/gfig/images/stock-show-all.png
* plug-ins/gfig/images/stock-select-object.png: added these two stock
  icons. Jimmac, these two are screaming to be redone, please.

* plug-ins/gfig/images/Makefile.am: added these icons.

* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-bezier.h
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-poly.h
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-spiral.h
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig-star.h
* plug-ins/gfig/gfig-stock.c
* plug-ins/gfig/gfig-stock.h
* plug-ins/gfig/gfig.h: moved all the buttons to a GtkUIManager
  toolbar, which makes the code simpler and easier to read.
2004-11-12 01:54:02 +00:00
Sven Neumann 1aa12291a2 added icons to the Previous/Next buttons (bug #158004).
2004-11-12  Sven Neumann  <sven@gimp.org>

	* app/dialogs/tips-dialog.c: added icons to the Previous/Next
	buttons (bug #158004).
2004-11-12 01:36:33 +00:00
Sven Neumann 4b292e6d33 lowered labels a few pixels.
2004-11-11  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: lowered labels a few pixels.
2004-11-11 20:05:20 +00:00
Sven Neumann 13678afe0b minor code cleanup.
2004-11-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: minor code cleanup.
2004-11-11 19:21:01 +00:00
David Odin 92c1c4ac7a use a GtkUIManager for the menu and automagically have it translated! The
* plug-ins/gfig/gfig-dialog.c: use a GtkUIManager for the menu and
  automagically have it translated!  The button bar will follow the same
  path.  Remove the now useless "Paint" button.
2004-11-11 17:28:56 +00:00
Sven Neumann c8abfaf18b groff doesn't like lines to start with a single quote, we better escape
2004-11-11  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c: groff doesn't like lines to start
	with a single quote, we better escape it. Fixes bug #157971.

	* docs/gimprc.5.in: regenerated.
2004-11-11 17:07:58 +00:00
Michael Natterer f6e5ecb2e0 app/core/gimp-edit.c app/core/gimpdrawable-blend.c
2004-11-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-edit.c
	* app/core/gimpdrawable-blend.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpitem.c (gimp_item_stroke): added precondition
	checks for gimp_item_is_attached() and removed checks for
	gimp_item_get_image() to actually return an image (because it
	always returns an image).

	* tools/pdbgen/pdb/edit.pdb: let all wrappers fail if the drawable
	is not attached.

	* app/pdb/edit_cmds.c: regenerated.
2004-11-11 14:05:34 +00:00
Michael Natterer 5f2ca28c69 plug-ins/script-fu/scripts/add-bevel.scm
2004-11-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/add-bevel.scm
	* plug-ins/script-fu/scripts/addborder.scm
	* plug-ins/script-fu/scripts/carve-it.scm
	* plug-ins/script-fu/scripts/carved-logo.scm
	* plug-ins/script-fu/scripts/chip-away.scm
	* plug-ins/script-fu/scripts/clothify.scm
	* plug-ins/script-fu/scripts/font-map.scm
	* plug-ins/script-fu/scripts/slide.scm
	* plug-ins/script-fu/scripts/swirltile.scm: don't call gimp-edit-*
	functions on drawables which are not added to an image because
	this will be forbidden soon (because it can trash the image's undo
	stack).
2004-11-11 13:59:18 +00:00
Michael Natterer b08cf17353 replaced undo-disable/enable by undo-group-start/end.
2004-11-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/lava.scm: replaced
	undo-disable/enable by undo-group-start/end.
2004-11-11 13:09:15 +00:00
Michael Natterer cd7972a8c2 call gimp_image_flush() after committing the image_map so the menus are
2004-11-11  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_response):
	call gimp_image_flush() after committing the image_map so the
	menus are up-to-date. Fixes bug #157914.
2004-11-11 10:16:57 +00:00
Philip Lafleur c111576df2 Use the transform tool coordinates when creating subdivisions, not the
2004-11-11  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Use the transform
	tool coordinates when creating subdivisions, not the
	texture coordinates. Fixes breakage with layers that are not
	the image size.
2004-11-11 09:36:45 +00:00
Jay Cox e1a47b5232 Keep computed brush values from overflowing with large reduction factors.
2004-11-11  Jay Cox  <jaycox@gimp.org>

	* app/base/brush-scale.c: Keep computed brush values from
	overflowing with large reduction factors.  Fixes bug #76228.
2004-11-11 09:10:48 +00:00
Sven Neumann 7961719353 libgimpwidgets/gimpintstore.c please the overly pedantic IRIX MIPSpro
2004-11-11  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintstore.c
	* app/vectors/gimpvectors-import.c: please the overly pedantic
	IRIX MIPSpro compiler and don't initialize structs with
	non-constant values.
2004-11-10 23:50:10 +00:00
Sven Neumann 0dc715748f add the image to the list of recently used documents. Fixes bug #157879.
2004-11-10  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_layer): add the image to the
	list of recently used documents. Fixes bug #157879.
2004-11-10 21:48:17 +00:00
David Odin f64a405f76 moved the tool options closer to the tools and made the dialog a bit
* plug-ins/gfig/gfig-dialog.c: moved the tool options closer to the
  tools and made the dialog a bit smaller.
2004-11-10 20:51:35 +00:00
Sven Neumann 7cdebb23a1 added a menu icon (compiled-in).
2004-11-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mail.c: added a menu icon (compiled-in).
2004-11-10 15:52:49 +00:00
Michael Natterer a7037f9d26 if dot_for_dot is off, resolution change has the same effect as size
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_resolution_changed_handler): if dot_for_dot is
	off, resolution change has the same effect as size change, so call
	gimp_display_shell_size_changed_handler(). Fixes display garbage.
2004-11-10 15:44:16 +00:00
Michael Natterer 1309a075cf plug-ins/winicon/icodialog.[ch] plug-ins/winicon/icoload.[ch]
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/winicon/icodialog.[ch]
	* plug-ins/winicon/icoload.[ch]
	* plug-ins/winicon/icosave.[ch]
	* plug-ins/winicon/main.[ch]: call progress functions
	unconditionally; removed global "interactive" variable; use
	standard strings for open/save progress messages; gui, indentation
	& coding style cleanup; untabified.
2004-11-10 14:44:58 +00:00
Michael Schumacher 41c1e003d4 applied a patch from Sven Neumann with some minor modifications. Fixes bug
2004-11-10  Michael Schumacher <schumaml@cvs.gnome.org>

	* plug-ins/winsnap/winsnap.c: applied a patch from Sven Neumann
	with some minor modifications. Fixes bug #157612
	Removed some unused variables.
2004-11-10 14:00:32 +00:00
Michael Natterer 646d91245e "Since: GIMP 2.2".
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimputils.c (gimp_escape_uline): "Since: GIMP 2.2".
2004-11-10 13:55:12 +00:00
Sven Neumann 4c70bd1254 set the padding-mode to custom color if a custom color is choosen. Fixes
2004-11-10  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: set the padding-mode to custom
	color if a custom color is choosen. Fixes bug #157844.
2004-11-10 13:44:14 +00:00
Michael Natterer 3b2505fe26 fixed capitalization of notebook tab label.
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/dbbrowser/plugin-browser.c (browser_dialog_new): fixed
	capitalization of notebook tab label.
2004-11-10 13:01:06 +00:00
Michael Natterer 280856e128 renamed gimp_flags_get_value() to gimp_flags_get_first_value(). Reordered
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimputils.[ch]: renamed gimp_flags_get_value() to
	gimp_flags_get_first_value(). Reordered functions so enum and
	flags functions are grouped together. Added missing docs.

	* libgimpbase/gimpbase.def: changed accordingly.
2004-11-10 12:44:13 +00:00
jaycox 5b5823ba4b Skip resources with unknown signatures instead of quiting. Fixes bug
* plug-ins/common/psd.c: Skip resources with unknown signatures
	instead of quiting.  Fixes bug #142468, and bug #152728

	* app/core/gimpdrawable.c: in functions gimp_drawable_mask_bounds,
	and gimp_drawable_mask_intersect: reinitialize the return values
	after calling gimp_channel_bounds because gimp_channel_bounds
	overwrites the values even when it returns false.  This fixes the
	bug where the gimp crashes when running color tools on layers
	smaller than the image, and processes only part of the image when
	the layer is larger than the image size.
2004-11-10 08:23:05 +00:00
Sven Neumann 29e9f01ada some updates.
2004-11-10  Sven Neumann  <sven@gimp.org>

	* HACKING: some updates.
2004-11-10 02:18:35 +00:00
Michael Natterer cd017f1c7b use a UI manager created toolbar instead of two rows of buttons. Added a
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: use a UI manager created
	toolbar instead of two rows of buttons. Added a "dummy-menubar" so
	the popup menu shows shortcuts again. Removed "Preview" and "Auto"
	buttons since the preview doesn't block the GUI and can always be
	updated.
2004-11-10 01:32:14 +00:00
Michael Natterer 04a7e8585b added new function gimp_statusbar_push_length(), which works exactly like
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.[ch]: added new function
	gimp_statusbar_push_length(), which works exactly like
	push_coords() but takes only one value plus a GimpOrientationType
	for specifying the value's axis.

	* app/tools/gimptool.[ch]: added the corresponding
	gimp_tool_push_status_length().

	* app/tools/gimpmovetool.c: use gimp_tool_push_status_length()
	so the guide position is shown in the selected display unit.
	Cleaned up the status message code a bit.
2004-11-10 01:17:40 +00:00
Sven Neumann 390d49dfdf use an idle handler to jump to the anchor.
2004-11-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: use an idle handler to jump to the
	anchor.
2004-11-10 00:27:43 +00:00
Manish Singh 78f635acd5 if the file has space in the colormap for more than 256 entries, ignore
2004-11-09  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/bmpread.c: if the file has space in the colormap for
        more than 256 entries, ignore them instead of failing. Fixes bug
        #157775.
2004-11-09 20:34:31 +00:00
Manish Singh 7a747f3a91 Fix cut'n'paste err so grayscale images load again. Fixes bug #157764.
2004-11-09  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/bmpread.c: Fix cut'n'paste err so grayscale images
        load again. Fixes bug #157764.
2004-11-09 18:42:29 +00:00
Michael Natterer 6d9a69c0a6 pass (gint)-truncated coordinates instead of RINT()-rounded ones to
2004-11-09  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): pass (gint)-truncated
	coordinates instead of RINT()-rounded ones to
	gimp_display_shell_update_cursor(). Restores correct coordinates
	display for zoomed-in display and fixes bug #153534.

	* app/tools/gimpmovetool.c: added statusbar messages including the
	(rounded) guide coordinate. Keeps bug #141719 closed.
2004-11-09 13:03:07 +00:00
Michael Natterer 9ce333eb75 don't connect to "event" and don't connect any canvas event to
2004-11-09  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): don't
	connect to "event" and don't connect any canvas event to
	gimp_display_shell_events(). Connect all tool events separately
	(doesn't include "configure-event" and thus fixes bug #141543).

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): call
	gimp_display_shell_events() manually before doing tool event
	processing.

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-callbacks.[ch]: connect to
	"size_allocate" of the canvas, not to "configure_event"
	(suggested by Owen in bug #141543).

	* app/display/gimpdisplayshell-callbacks.[ch]: removed
	gimp_display_shell_popup_menu().

	(gimp_display_shell_origin_button_press): emit "popup-menu" on the
	shell manually instead of calling above function.

	* app/display/gimpdisplayshell.c: added the whole menu popup code
	here.
2004-11-09 11:38:29 +00:00
Sven Neumann 76369f7911 queue a resize. Fixes remaining issues with bug #157495.
2004-11-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpoffsetarea.c (gimp_offset_area_resize): queue
	a resize. Fixes remaining issues with bug #157495.
2004-11-09 00:40:25 +00:00
Sven Neumann 37ea9d9895 removed debug output.
2004-11-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/url.c: removed debug output.
2004-11-09 00:06:46 +00:00
Sven Neumann f717b25658 don't copy menurc, the format changed anyway.
2004-11-08  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c (user_install_migrate_files):
	don't copy menurc, the format changed anyway.
2004-11-08 21:01:52 +00:00
Sven Neumann 92de18c6f4 actually retrieve the value from the GtkEntry for SF-VALUE.
2004-11-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_ok):
	actually retrieve the value from the GtkEntry for SF-VALUE.
2004-11-08 20:13:06 +00:00
Michael Natterer b68813254f applied modified patch from Geert Jordaens which adds the missing
2004-11-08  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/layer.pdb: applied modified patch from Geert
	Jordaens which adds the missing gimp_layer_from_mask() API.
	Addresses bug #138662.

	* app/pdb/internal_procs.c
	* app/pdb/layer_cmds.c
	* libgimp/gimplayer_pdb.[ch]. regenerated.

	* libgimp/gimp.def: changed accordingly.
2004-11-08 16:58:43 +00:00
Michael Natterer 00d3eed7c9 removed garbage from beginning of file. Removed DOS line breaks.
2004-11-08  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/selection-round.scm: removed garbage
	from beginning of file. Removed DOS line breaks.
2004-11-08 15:30:21 +00:00
Michael Natterer d90d7c5cb1 added docs derived from a patch from Cai Qian (bug #156271).
2004-11-08  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimppixelfetcher.c: added docs derived from a patch from
	Cai Qian (bug #156271).
2004-11-08 14:36:15 +00:00
Sven Neumann d9075fb76d changed label of default action button to "Grab".
2004-11-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: changed label of default action
	button to "Grab".
2004-11-08 12:29:57 +00:00
Sven Neumann 8b74f33c86 plug-ins/common/CEL.c plug-ins/common/CML_explorer.c
2004-11-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CEL.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/channel_mixer.c
	* plug-ins/common/gqbist.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/flame/flame.c
	* plug-ins/ifscompose/ifscompose.c: don't set help-ids on plug-in
	file chooser dialogs. Set the default response for file dialogs.
2004-11-08 11:24:43 +00:00
Michael Natterer 2c1fc59906 app/dialogs/resize-dialog.c (resize_dialog_response) replaced "case
2004-11-08  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_response)
	* app/dialogs/scale-dialog.c (scale_dialog_response): replaced
	"case GTK_RESPONSE_CANCEL:" by "default:" so it also catches
	hitting the escape key or clicking the WM close button.
2004-11-08 11:22:24 +00:00
Øyvind Kolås 4e78437cd6 fixing wording in last entry 2004-11-08 09:25:01 +00:00
Øyvind Kolås 93b6fd90fc fixed migration issue to file chooser, code clarification 2004-11-08 09:22:54 +00:00
Sven Neumann 66de1a73dc initialize the return values before checking if the drawable is attached.
2004-11-08  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_mask_bounds)
	(gimp_drawable_mask_intersect): initialize the return values before
	checking if the drawable is attached. Keeps GIMP from going mad if
	this assertion is ever triggered.
2004-11-07 23:17:39 +00:00
Sven Neumann bc0688c1fa don't connect the help browser to the help system.
2004-11-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: don't connect the help browser to
	the help system.
2004-11-07 22:48:33 +00:00
Sven Neumann 70d666bafe register the compatibility procedure with the correct name.
2004-11-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/selection-round.scm: register the
	compatibility procedure with the correct name.
2004-11-07 22:33:30 +00:00
Sven Neumann 265fd5c53b fixed unused code (tooltip was taken from label field).
2004-11-07  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorbutton.c: fixed unused code (tooltip was
	taken from label field).
2004-11-07 18:24:12 +00:00
Sven Neumann 7bfd9bf6a2 ported to GtkUIManager.
2004-11-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: ported to GtkUIManager.
2004-11-07 17:20:25 +00:00
Sigurd Gartmann 2332559a0e Added support for the new bokmål locale «nb» to ALL_LINGUAS.
2004-11-07  Sigurd Gartmann  <sigurd-translate@brogar.org>

	* configure.in: Added support for the new bokmål locale «nb» to
	ALL_LINGUAS.

	* po/no.po
	* po/nb.po
	* po-libgimp/no.po
	* po-libgimp/nb.po
	* po-plug-ins/no.po
	* po-plug-ins/nb.po
	* po-script-fu/no.po
	* po-script-fu/nb.po: Added the new nb bokmål translation.
	Updated norwegian bokmål translation.
2004-11-07 16:50:34 +00:00
Sven Neumann 0a9e23d854 the menu label should have three dots (bug #157580).
2004-11-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/channel_mixer.c (query): the menu label should
	have three dots (bug #157580).
2004-11-07 16:11:29 +00:00
David Odin a64eaf47a5 removed #undef GTK_DISABLE_DEPRECATED and use a GtkListStore instead of
* plug-ins/gflare/gflare.c: removed #undef GTK_DISABLE_DEPRECATED and
  use a GtkListStore instead of the long-time deprecated GtkList. Done
  some small cleanups, too.
2004-11-06 23:55:08 +00:00
Sven Neumann 639dc4502f changed minimum brush radius from 1.0 to 0.1.
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c: changed minimum brush radius from
	1.0 to 0.1.
2004-11-06 19:12:52 +00:00
Sven Neumann 1fdcd8bee8 allow a smaller brush radius to be set in the brush editor. Fixes bug
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpbrusheditor.c: allow a smaller brush radius to
	be set in the brush editor. Fixes bug #157508.
2004-11-06 18:55:06 +00:00
Sven Neumann babeb9afed same fix here.
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/scale-dialog.c (scale_dialog_reset): same fix here.
2004-11-06 16:04:44 +00:00
Sven Neumann 1a409fed97 fixed typo (bug #157513).
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: fixed typo (bug #157513).
2004-11-06 14:25:03 +00:00
Sven Neumann 01305d57bb removed trailing period from check button label. Fixes bug #157511.
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/convert-dialog.c (convert_dialog_new): removed
	trailing period from check button label. Fixes bug #157511.
2004-11-06 12:48:38 +00:00
Sven Neumann ce7f034638 fixed most of the Reset functionality (bug #157495). The offset box is
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_reset): fixed most of
	the Reset functionality (bug #157495). The offset box is still not
	working correctly.

	* app/widgets/gimpsizebox.c (gimp_size_box_update_resolution):
	check for availability of the size entry before accessing it.
2004-11-06 12:30:38 +00:00
Sven Neumann cfec9f597f New Win32 icons contributed by Jernej Simoncic:
2004-11-06  Sven Neumann  <sven@gimp.org>

	New Win32 icons contributed by Jernej Simoncic:

	* app/Makefile.am
	* app/makefile.msc
	* app/gimp.rc
	* app/fileicon.ico: added new file icon for the Win32 build.

	* app/wilber.ico: nicer application icon for the Win32 build.
2004-11-06 11:39:42 +00:00
Michael Natterer 33e22a0d13 plug-ins/maze/maze.c some irrelevant cleanups while doing code review.
2004-11-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/maze/maze.c
	* plug-ins/maze/maze_face.c: some irrelevant cleanups while doing
	code review.
2004-11-05 14:54:04 +00:00
Michael Natterer 03563c4213 removed #undef GTK_DISABLE_DEPRECATED because it's no longer needed.
2004-11-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/flame/flame.c: removed #undef GTK_DISABLE_DEPRECATED
	because it's no longer needed. Cleaned up #defines and
	declarations. Removed tabs and trailing whitespace.
2004-11-05 11:35:38 +00:00
Sven Neumann a24047788c be more tolerant and silently skip entries that the dialog factory doesn't
2004-11-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsessioninfo.c: be more tolerant and silently
	skip entries that the dialog factory doesn't recognize.

	* app/widgets/gimpdialogfactory.c: minor cleanup.
2004-11-04 21:02:34 +00:00
Sven Neumann 17905c1b1e don't save the (empty) gimprc after migrating the user settings.
2004-11-04  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c (user_install_response): don't
	save the (empty) gimprc after migrating the user settings.
2004-11-04 20:10:57 +00:00
Michael Natterer f9793499b0 undeprecated by using a GtkUIManager for creating the toolbar. Some
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/uniteditor.c: undeprecated by using a
	GtkUIManager for creating the toolbar. Some cleanup and code
	reordering.
2004-11-04 15:58:49 +00:00
Michael Natterer 314d74ec8c disable the whole bunch of FOO_DISABLE_DEPRECATED only for future versions
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* configure.in: disable the whole bunch of FOO_DISABLE_DEPRECATED
	only for future versions of GLib, GTK+ and Pango because the
	upcoming new stable versions add no new deprecations that are
	relevant for the GIMP source.
2004-11-04 15:27:10 +00:00
Michael Natterer 0c68b40fa5 some undeprecation and cleanup. Still uses GtkItemFactory.
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: some undeprecation and
	cleanup. Still uses GtkItemFactory.
2004-11-04 15:24:55 +00:00
Michael Natterer 5d7b121fd7 Don't use deprecated GtkToolbar API in GimpTextEditor:
2004-11-04  Michael Natterer  <mitch@gimp.org>

	Don't use deprecated GtkToolbar API in GimpTextEditor:

	* app/actions/Makefile.am
	* app/actions/actions.c
	* app/actions/text-editor-actions.[ch]
	* app/actions/text-editor-commands.[ch]: added acions and
	callbacks for the new "text-editor" action group.

	* app/menus/menus.c: register a "<TextEditor>" UI manager.

	* menus/Makefile.am
	* menus/text-editor-toolbar.xml: new file for the toolbar.

	* app/widgets/gimptexteditor.[ch]: use the toolbar created by the
	UI manager instead of constructing it using deprecated API.

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

	* app/widgets/gimpwidgets-utils.[ch]: added gimp_text_buffer_load()
	(used by text-editor-commands.c).
2004-11-04 14:24:32 +00:00
Michael Natterer 04f914f1a6 #undef GTK_DISABLE_DEPRECATED.
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: #undef GTK_DISABLE_DEPRECATED.
2004-11-04 12:35:38 +00:00
Michael Natterer 40928bb578 use a GtkUIManager instead of a GtkItemFactory. Added virtual function
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorbutton.[ch]: use a GtkUIManager instead
	of a GtkItemFactory. Added virtual function ::get_action_type()
	and create the manager's actions manually using that action type
	instead of using gtk_action_group_add_actions().

	* app/widgets/gimpcolorpanel.c: override ::get_action_type() so it
	creates GimpActions (which can have a color attached) instead of
	GtkActions. Changed the menu item visibility and color preview
	code accordingly.

	* app/widgets/Makefile.am
	* app/widgets/gimpitemfactory.[ch]: finally removed.

	* configure.in: added -DGTK_DISABLE_DEPRECATED to CPPFLAGS again.
2004-11-04 12:15:49 +00:00
Michael Natterer 01bc7c92b9 #undef GTK_DISABLE_DEPRECATED
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpoldwidgets.c: #undef GTK_DISABLE_DEPRECATED

	* libgimpwidgets/gimpunitmenu.h: #include <gtk/gtkoptionmenu.h>
	explicitely and #undef GTK_DISABLE_DEPRECATED only around the
	inclusion if it was defined before.
2004-11-04 11:58:16 +00:00
Michael Natterer 5c0c2a4189 libgimp/gimpunitcache.h libgimpbase/gimpchecks.h
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpunitcache.h
	* libgimpbase/gimpchecks.h
	* libgimpbase/gimpdatafiles.h
	* libgimpbase/gimplimits.h
	* libgimpbase/gimpmemsize.h
	* libgimpbase/gimputils.h
	* libgimpbase/gimpwin32-io.h
	* libgimpthumb/gimpthumb-enums.h
	* libgimpthumb/gimpthumb-error.h
	* libgimpwidgets/gimppreviewarea.h: added G_BEGIN_DECLS / G_END_DECLS.
2004-11-04 10:51:55 +00:00
Michael Natterer de592c4e00 plug-ins/common/ccanalyze.c plug-ins/common/uniteditor.c
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/ccanalyze.c
	* plug-ins/common/uniteditor.c
	* plug-ins/gfig/gfig-dialog.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/imagemap/imap_misc.c
	* plug-ins/imagemap/imap_selection.c
	* plug-ins/imagemap/imap_toolbar.c
	* plug-ins/imagemap/imap_tools.c
	* plug-ins/print/gimp_color_window.c: stop using deprecated
	functions, added some #undef GTK_DISABLE_DEPRECATED where needed.
2004-11-04 10:06:22 +00:00
Michael Natterer ba92c24d79 app/dialogs/module-dialog.c plug-ins/dbbrowser/gimpprocbrowser.c use
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/module-dialog.c
	* plug-ins/dbbrowser/gimpprocbrowser.c
	* plug-ins/dbbrowser/plugin-browser.c: use
	gtk_tree_model_get_iter_first() instead of the deprecated
	_get_iter_root().

	* app/display/gimpdisplayshell-callbacks.c: don't include
	"widgets/gimpitemfactory.h".
2004-11-03 17:13:43 +00:00
Michael Natterer 2ae8d2135d use gtk_tree_model_get_iter_first() instead of the deprecated
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/module-dialog.c: use gtk_tree_model_get_iter_first()
	instead of the deprecated _get_iter_root().
2004-11-03 17:09:15 +00:00
Øyvind Kolås 88ed5c4b03 fixed misspelled parametername 2004-11-03 16:47:28 +00:00
Michael Natterer 29de307128 don't forget to g_free(editor->segments).
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdasheditor.c (gimp_dash_editor_finalize): don't
	forget to g_free(editor->segments).
2004-11-03 14:31:51 +00:00
Michael Natterer c568322c43 app/display/gimpscalecombobox.c (gimp_scale_combo_box_mru_remove_last)
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpscalecombobox.c
	(gimp_scale_combo_box_mru_remove_last)
	* app/widgets/gimpeditor.c (gimp_editor_add_action_button)
	* app/xcf/xcf-load.c (xcf_load_old_path): plugged some small leaks.
2004-11-03 11:50:37 +00:00
Sven Neumann c70b12137b plugged a mem-leak.
2004-11-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	plugged a mem-leak.

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_render): don't leak the pixbuf.

	* app/widgets/gimpviewrenderer-frame.c: added a comment.
2004-11-03 00:48:06 +00:00
Michael Natterer e2120e2c62 applied patch from Joao S. O. Bueno which moves assignments into an "else"
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/paint-funcs/paint-funcs.c (combine_sub_region): applied
	patch from Joao S. O. Bueno which moves assignments into an "else"
	branch and thus optimizes the (common) "if" branch. Did some
	cosmetic cleanups.
2004-11-03 00:38:04 +00:00
Michael Natterer 4ae376f386 don't silently return when there is already a script running but show a
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	don't silently return when there is already a script running but
	show a message instead. Unfortunately introduces two new strings,
	but bugs are bugs. Fixes bug #123882.
2004-11-02 21:40:10 +00:00
Sven Neumann ab2e936b79 minor cleanup.
2004-11-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_save_thumb): minor
	cleanup.

	* libgimpthumb/gimpthumb-utils.c (_gimp_thumbs_delete_others): do
	the right thing. Used to do the wrong thing when called with a
	thumbnail size which is not from the GimpThumbSize enum.
2004-11-02 19:36:23 +00:00
Sven Neumann 3f7e196412 call image_new_dialog_set() unconditionally. Fixes bug #157096.
2004-11-02  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c (image_new_from_image_cmd_callback):
	call image_new_dialog_set() unconditionally. Fixes bug #157096.
2004-11-02 18:58:43 +00:00
Michael Natterer 9db5cd7ca1 factored out the "invoke" bodies to two utility functions, getting rid of
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: factored out the
	"invoke" bodies to two utility functions, getting rid of *tons* of
	duplicated code.

	* app/pdb/drawable_transform_cmds.c: regenerated (only whitespace
	and comments changed).
2004-11-02 17:02:42 +00:00
Michael Natterer 9b3d956881 renamed parameter "interpolation" to "interpolate" as suggested by pippin.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb (drawable_*_defaults):
	renamed parameter "interpolation" to "interpolate" as suggested by
	pippin.

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 15:56:47 +00:00
Michael Natterer 92f0bbde30 don't copy pluginrc* and themerc*.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/user-install-dialog.c (user_install_migrate_files):
	don't copy pluginrc* and themerc*.
2004-11-02 15:08:44 +00:00
Michael Natterer e85b1480dd one more s/cmap/colormap/.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpimage.h: one more s/cmap/colormap/.
2004-11-02 13:54:56 +00:00
Michael Natterer 8ba89c7746 deprecated all functions.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/transform_tools.pdb: deprecated all functions.

	* app/pdb/transform_tools_cmds.c
	* libgimp/gimptransformtools_pdb.[ch]: regenerated.

	* plug-ins/common/tiff.c
	* plug-ins/script-fu/scripts/3dTruchet.scm
	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/image-structure.scm
	* plug-ins/script-fu/scripts/perspective-shadow.scm
	* plug-ins/script-fu/scripts/text-circle.scm
	* plug-ins/script-fu/scripts/truchet.scm: use the new transform API.
2004-11-02 13:44:13 +00:00
Michael Natterer 2fef83bafb added _defaults() variants (flip_defaults, rotate_defaults, ...) for all
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: added _defaults()
	variants (flip_defaults, rotate_defaults, ...) for all transform
	functions which finally call gimp_drawable_transform_affine().
	The _defaults() functions don't take the whole interpolation_type,
	supersample etc. parameter overkill, but only a "interpolation"
	boolean like the old PDB wrappers.

	* libgimp/gimp.def: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 13:29:48 +00:00
Michael Natterer bde607ff99 renamed flip() and rotate() to flip_simple() and rotate_simple(). Renamed
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: renamed flip() and
	rotate() to flip_simple() and rotate_simple(). Renamed flip_free()
	and rotate_free() to flip() and rotate() (the special cases should
	have a special suffix, not the general ones).

	* libgimp/gimp.def: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 12:43:11 +00:00
Michael Natterer 0bbba79f0c added missing bzip2 command lines for Win32.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/compressor.c (compressors): added missing bzip2
	command lines for Win32.
2004-11-02 12:37:25 +00:00
Michael Natterer 3d8e4d1224 plug-ins/bmp/bmpread.c plug-ins/bmp/bmpwrite.c plug-ins/common/CEL.c
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/bmp/bmpread.c
	* plug-ins/bmp/bmpwrite.c
	* plug-ins/common/CEL.c
	* plug-ins/common/animationplay.c
	* plug-ins/common/animoptimize.c
	* plug-ins/common/autostretch_hsv.c
	* plug-ins/common/c_astretch.c
	* plug-ins/common/ccanalyze.c
	* plug-ins/common/color_enhance.c
	* plug-ins/common/film.c
	* plug-ins/common/gee.c
	* plug-ins/common/gee_zoom.c
	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/grid.c
	* plug-ins/common/header.c
	* plug-ins/common/mng.c
	* plug-ins/common/normalize.c
	* plug-ins/common/pcx.c
	* plug-ins/common/png.c
	* plug-ins/common/pnm.c
	* plug-ins/common/postscript.c
	* plug-ins/common/psd.c
	* plug-ins/common/psd_save.c
	* plug-ins/common/raw.c
	* plug-ins/common/sunras.c
	* plug-ins/common/tga.c
	* plug-ins/common/tiff.c
	* plug-ins/common/tile.c
	* plug-ins/common/vinvert.c
	* plug-ins/common/winclipboard.c
	* plug-ins/common/winprint.c
	* plug-ins/common/xbm.c
	* plug-ins/common/xpm.c
	* plug-ins/common/xwd.c
	* plug-ins/fits/fits.c
	* plug-ins/gfli/gfli.c
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/pygimp-image.c
	* plug-ins/winicon/main.c: use the new "colormap" functions
	instead of the deprecated "cmap" ones.
2004-11-02 12:00:25 +00:00
Michael Natterer 998c895a67 More final API cleanup:
2004-11-02  Michael Natterer  <mitch@gimp.org>

	More final API cleanup:

	* tools/pdbgen/pdb/image.pdb: added gimp_image_set,get_colormap()
	and deprecated set,get_cmap().

	* libgimpwidgets/gimppreviewarea.[ch]: renamed
	gimp_preview_area_set_cmap() to set_colormap().

	* libgimp/gimp.def
	* libgimp/gimpdrawablepreview.c
	* libgimp/gimpexport.c
	* libgimp/gimpimage.[ch]
	* libgimpwidgets/gimpwidgets.def: changed accordingly.

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.

	(undeprecation of plug-ins will follow...)
2004-11-02 11:30:49 +00:00
Michael Natterer ecc9fecfc9 added "gboolean recalc_highlight" and call
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcroptool.c (crop_recalc): added "gboolean
	recalc_highlight" and call gimp_display_shell_set_highlight() only
	when it's TRUE. Pass TRUE from all places where the crop outline
	actually changed.

	(gimp_crop_tool_control): added back the call to crop_recalc() for
	the RESUME case so the outline gets updated on zoom/scroll, but pass
	recalc_highlight = FALSE because it has not changed.
	Fixes bug #157001.
2004-11-02 11:26:05 +00:00
Michael Natterer d0486a2eb9 renamed parameter "center" to "auto_center" and removed
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb (flip): renamed
	parameter "center" to "auto_center" and removed
	"transform_direction". Renamed rotate() to rotate_free() and
	added a "gboolean auto_center" parameter. Added new function
	rotate() which takes enum GimpRotationType instead of an
	arbiatrary angle so the flip and rotate APIs are symmetric.

	* libgimp/gimp.def: added the gimp_drawable_transform_* stuff.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 10:39:41 +00:00
Sven Neumann fabdf25d9b actually use the choosen interpolation type. Fixes bug #157102.
2004-11-02  Sven Neumann  <sven@gimp.org>

	* app/dialogs/image-scale-dialog.c (image_scale_callback): actually
	use the choosen interpolation type. Fixes bug #157102.
2004-11-02 08:39:42 +00:00
David Odin 015c640322 plug-ins/gfig/gfig-dobject.c plug-ins/gfig/gfig-dobject.h
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-dobject.h
* plug-ins/gfig/gfig-preview.c
* plug-ins/gfig/gfig-style.h
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.h: some more cleanups. The current_style bug is
  still there :(
2004-11-01 23:58:43 +00:00
Øyvind Kolås 9c444166f2 discard loaded colormap for non indexed images 2004-11-01 18:33:09 +00:00
Michael Natterer 41e48fd8b5 renamed "center" to "auto_center".
2004-11-01  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-transform.[ch]
	(gimp_drawable_transform_flip): renamed "center" to "auto_center".

	(gimp_drawable_transform_rotate): added missing parameters so it
	can be used for a to-be-added PDB wrapper offering a
	GimpRotationType based rotate API.

	Both functions: always clip when transforming a whole channel,
	since they must keep their size.

	(gimp_drawable_transform_affine): actually forward the passed
	"clip_result" to transform_tiles_affine() instead of always FALSE.
2004-11-01 17:21:55 +00:00
Øyvind Kolås 364c8e9a98 doing things that should have been done in previous commit 2004-11-01 16:20:47 +00:00