Commit graph

9979 commits

Author SHA1 Message Date
Manish Singh 448dd63f9d make sure the preview image type matches the source image type.
2004-11-26  Manish Singh  <yosh@gimp.org>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	Fixes bug #159304.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	* plug-ins/common/tileit.c: ditto. Fixes bug #159029.
2004-11-22 11:09:29 +00:00
David Odin 02b0c67397 fixed a stupid bug which made all lines half-selected.
* plug-ins/gfig/gfig-line.c: fixed a stupid bug which made all lines
  half-selected.
2004-11-22 07:49:31 +00:00
Sven Neumann 52eea3d4ee changed border-size of GimpContainerEntry to 0.
2004-11-22  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-open-location-dialog.c: changed border-size of
	GimpContainerEntry to 0.
2004-11-21 23:36:59 +00:00
Sven Neumann 8bfc8b4aa0 added --no-splash command-line option that is passed to gimp. Addresses
2004-11-21  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: added --no-splash command-line option that
	is passed to gimp. Addresses Debian bug report #277989.

	* docs/gimp-remote.1.in: document the new option.
2004-11-21 22:47:43 +00:00
Manish Singh df6e4cce64 reverted previous change, as not all the lv.pos are in CVS yet.
2004-11-21  Manish Singh  <yosh@gimp.org>

        * configure.in: reverted previous change, as not all the lv.pos are
        in CVS yet.
2004-11-21 21:52:52 +00:00
Peteris Krisjanis 4ea35608a0 2004-11-21 Peteris Krisjanis <pecisk@gmail.com> * configure.in: Added Latvian (lv) language support to ALL_LINGUAS 2004-11-21 20:55:06 +00:00
Kevin Cozens 168e96997e Applied patch from BM which makes the script work layers that have their
2004-11-21  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/script-fu/scripts/erase-rows.scm: Applied patch from BM
	which makes the script work layers that have their top-left corner
	at a position other than the top-left corner of the image.
	Fixes bug #158863.
2004-11-21 19:53:42 +00:00
David Odin bac40a781f 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-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.h: makes which object is selected more obvious by
  using filled handles for the selected object.  Not perfect, but
  certainly a good hint.
2004-11-21 19:50:18 +00:00
David Odin 0622500439 call gfig_grid_colours() in the realize callback of the preview, so the
* plug-ins/gfig/gfig-preview.c: call gfig_grid_colours() in the
  realize callback of the preview, so the gray gc of the grid works
  again. Reported by Zigomar.

* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-preview.h
* plug-ins/gfig/gfig-spiral.h
* plug-ins/gfig/gfig-star.h
* plug-ins/gfig/notes.txt: small cosmetics fixes.
2004-11-21 18:54:16 +00:00
Sven Neumann 3349c37a6a plug-ins/common/compose.c transfer the image resolution to newly created
2004-11-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/compose.c
	* plug-ins/common/decompose.c: transfer the image resolution to
	newly created images.
2004-11-21 17:45:15 +00:00
Sven Neumann 5f03fc9dec reverted a change that Hans Breuer committed here, probably accidentally.
2004-11-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/Brushes/snow1.pgm: reverted a change
	that Hans Breuer committed here, probably accidentally.

	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/siod-wrapper.c: reverted Hans's changes. There
	is indeed a Script-Fu server on Win32.
2004-11-21 16:37:39 +00:00
Sven Neumann 879ceaa3c9 removed "Quit" from the image menu.
2004-11-21  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: removed "Quit" from the image menu.
2004-11-21 14:38:39 +00:00
Hans Breuer 696663a611 [new file] app/dialogs/Makefile.am : added to EXTRA_DIST
2004-09-21  Hans Breuer  <hans@breuer.org>

	* app/dialogs/makefile.msc : [new file]
	  app/dialogs/Makefile.am : added to EXTRA_DIST

	* **/makefile.msc app/gimpcore.def : updated

	* app/gimp.rc : let wilber be first

	* app/widgets/gimppropwidgets.c : msvc6 can't cast uint64 either

	* libgimpbase/gimpwin32-io.h : make up recent loss of ftruncate in GLib

	* libgimpthumbnail/gimpthumbnail.c : <process.h> for getpid() on win32

	* plug-ins/helpbrowser/dialog.c : include gimpwin32-io.h

	* plug-ins/script-fu/siodwrapper.c plug-ins/script-fu/scrip-fu.c : there
	is no script-fu-server on win32
2004-11-21 14:22:45 +00:00
Michael Schumacher a31104356e first resize the image, then add the border layer and then fill it
2004-11-21  Michael Schumacher <schumaml@cvs.gnome.org>

	* plug-ins/script-fu/scripts/addborder.scm: first resize the
	image, then add the border layer and then fill it
2004-11-21 10:12:36 +00:00
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