Commit Graph

8923 Commits

Author SHA1 Message Date
Sven Neumann d1cdae22f4 raise the brush selection dialog if there is one already; various code
2003-06-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c: raise the brush selection dialog if there
	is one already; various code cleanups. Fixes #82475.
2003-06-17 14:33:29 +00:00
Sven Neumann 3aae9ed61a added a missing call to gimp-drawable-fill for the RGB case. Fixed
2003-06-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/select-to-brush.scm: added a missing
	call to gimp-drawable-fill for the RGB case. Fixed description,
	restore selection and delete the temporary channel. Fixes bug
	#115350.
2003-06-17 14:25:36 +00:00
Sven Neumann f92033d724 fixed description.
2003-06-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/select-to-brush.scm: fixed description.
2003-06-17 13:41:38 +00:00
Sven Neumann f8ebd89ba9 libgimp/gimpfontmenu.c libgimp/gimpgradientmenu.c minor cleanups.
2003-06-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimpmenu.h: minor cleanups.

	* libgimp/gimpbrushmenu.c
	* libgimp/gimppatternmenu.c: destroy the popup window instead of
	hiding it on button_release.
2003-06-17 13:15:37 +00:00
Sven Neumann 1fd0eb07b1 update the BrushSelect "object" when the brush opacity is changed.
2003-06-17  Sven Neumann  <sven@gimp.org>

	* app/gui/brush-select.c (opacity_scale_update): update the
	BrushSelect "object" when the brush opacity is changed.

	* libgimp/gimpmenu.[ch]
	* libgimp/gimpbrushmenu.c
	* libgimp/gimpfontmenu.c
	* libgimp/gimpgradientmenu.c
	* libgimp/gimppatternmenu.c: raise selection dialogs when being
	called again, marked strings for translation, added lots of const
	qualifiers, cleaned up code.

	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/patterns.pdb: use g_memdup() instead of
	g_memmove().

	* app/pdb/brushes_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/patterns_cmds.c: regenerated.

2003-06-17  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: added files with newly marked strings.

	* de.po: updated.
2003-06-17 09:43:14 +00:00
Jan Morén e4d27fc74f Updated Swedish translation.
2003-06-17  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2003-06-16 22:41:29 +00:00
Sven Neumann a06a38f56a Fixed some minor issues as described in bug #111188. 2003-06-16 17:51:03 +00:00
Adam D. Moss 65d4c19384 Attempt to use the palette colour closest to that of the GIMP's current
* plug-ins/common/gif.c: Attempt to use the palette colour
	closest to that of the GIMP's current brush background colour
	for the GIF file's background index hint for non-transparency-aware
	image viewers.  NOTE that this is merely a hint and may be
	ignored by this plugin for various (rare) reasons that
	would usually entail writing a somewhat larger image file.
2003-06-16 17:37:11 +00:00
Sven Neumann 98fc5e380e Applied a patch from S. Mukund <muks@mukund.org> fixing rounding problems
2003-06-16  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpcolorspace.c: Applied a patch from S. Mukund
	<muks@mukund.org> fixing rounding problems that caused bug #55261.
2003-06-16 17:30:06 +00:00
Michael Natterer 58222c799c don't fail on brush_spacing values < 0, but behave as documented (use the
2003-06-16  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/brush_select.pdb (brush_args): don't fail on
	brush_spacing values < 0, but behave as documented (use the
	brush's own spacing).

	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/pattern_select.pdb: gtk_window_present() the
	dialog on each set_popup(). This way the dialogs can be risen via
	the PDB by setting the already selected object. Replaced
	unreadable variable names by verbose ones.

	* app/pdb/brush_select_cmds.c
	* app/pdb/font_select_cmds.c
	* app/pdb/gradient_select_cmds.c
	* app/pdb/pattern_select_cmds.c: regenerated.
2003-06-16 17:22:31 +00:00
Sven Neumann 02a015bc6c minor GUI cleanups.
2003-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c: minor GUI cleanups.
2003-06-16 16:29:59 +00:00
Adam D. Moss dd29f3e0bb Avoid memory corruption when things get shot to hell in the image
* plug-ins/common/psd.c: Avoid memory corruption when things
	get shot to hell in the image unpacking phase.
2003-06-16 16:09:59 +00:00
Sven Neumann 067fb6a390 don't call file_dialog_update_name() here. Fixes bug #112273.
2003-06-16  Sven Neumann  <sven@gimp.org>

	* app/gui/file-open-dialog.c (file_open_dialog_set_type): don't
	call file_dialog_update_name() here. Fixes bug #112273.
2003-06-16 14:38:00 +00:00
Michael Natterer 948e64ce0a minor cleanups. (struct dbbrowser_t): use GimpDBBrowserApplyCallback type
2003-06-16  Michael Natterer  <mitch@gimp.org>

	* plug-ins/dbbrowser/dbbrowser_utils.c: minor cleanups.
	(struct dbbrowser_t): use GimpDBBrowserApplyCallback type instead
	of duplicating its signature when specifying the "apply_callback"
	member.  Minor cleanups
2003-06-16 11:40:11 +00:00
Michael Natterer 6de5b803e2 use gimp_datafiles_read_directories() instead of doing the same manually.
2003-06-16  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
	use gimp_datafiles_read_directories() instead of doing the same
	manually.

	* plug-ins/script-fu/siod-wrapper.c (siod_init): s/gint/gboolean/.
2003-06-16 11:31:10 +00:00
Sven Neumann c39268ce71 set focus on the entry widget.
2003-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c
	(script_fu_console_interface): set focus on the entry widget.
2003-06-16 10:45:56 +00:00
Dmitry Mastrukov 5728ef7549 ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>. 2003-06-16 05:04:23 +00:00
Kwok-Koon Cheung 25b4c0bb3c Updated traditional Chinese translation 2003-06-15 22:38:01 +00:00
Miloslav Trmac d9b95aaa34 Update Czech translation 2003-06-14 14:18:31 +00:00
Jan Morén 1a898b2eb0 Updated Swedish translation.
2003-06-14  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2003-06-14 10:21:23 +00:00
Sven Neumann 074f6c1b64 removed duplicate of Threshold menu entry.
2003-06-14  Sven Neumann  <sven@gimp.org>

	* app/gui/image-menu.c (image_menu_entries): removed duplicate of
	Threshold menu entry.
2003-06-14 00:40:05 +00:00
Sven Neumann aa4448db64 app/gui/info-window.c libgimpcolor/gimpcolorspace.c libgimpcolor/gimprgb.c
2003-06-13  Sven Neumann  <sven@gimp.org>

	* app/gui/info-window.c
	* libgimpcolor/gimpcolorspace.c
	* libgimpcolor/gimprgb.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimpcolorselect.c: use ROUND() where appropriate.

	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_render): use
	gimp_rgb_get_uchar().
2003-06-13 16:44:21 +00:00
Michael Natterer 4dcb6a3757 added plug-ins/common/psd_save.c
2003-06-13  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: added plug-ins/common/psd_save.c
2003-06-13 15:32:46 +00:00
Michael Natterer 6cba7a86c4 Updated.
2003-06-13  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: Updated.
2003-06-13 14:39:04 +00:00
Michael Natterer 5e950b5501 Cleaned up and improved the message system:
2003-06-13  Michael Natterer  <mitch@gimp.org>

	Cleaned up and improved the message system:

	* app/core/gimp.[ch]: added "const gchar *domain" to
	GimpMessageFunc (a NULL domain means the message is from the GIMP
	core, everything else is a plug-in).

	* app/errors.c: pass "domain == NULL" to gimp_message().

	* tools/pdbgen/pdb/message.pdb: derive the message domain from the
	current plug-in's menu_path (evil hack but works reasonably well).

	* app/pdb/message_cmds.c: regenerated.

	* app/widgets/gimpwidgets-utils.[ch] (gimp_message_box): added a
	header showing the message domain and changed the dialog layout to
	follow the HIG more closely.

	* app/gui/error-console-dialog.[ch]: removed.

	* app/widgets/gimperrorconsole.[ch]
	* app/gui/error-console-commands.[ch]
	* app/gui/error-console-menu.[ch]: new files containing a
	re-implementation of the error console dialog.

	* app/gui/Makefile.am
	* app/gui/dialogs-constructors.c
	* app/gui/gui.c
	* app/gui/menus.c
	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h: changed accordingly.

	* app/display/gimpprogress.c: added more spacing and removed the
	separator (more HIG compliant).

	* plug-ins/[most plug-ins].c: Changed lots of messages and
	progress strings:

	- Removed plug-in names from messages since that's automatically
	  covered by "domain" now.
	- Put all filenames in ''.
	- Changed "Loading" to "Opening".
	- Added "..." to all progress messages.
	- Cleaned up all file open/save error messages to look the
	  same and include g_strerror(errno).
	- Removed special casing for progress bars and *always* show them,
	  not only if run_mode != GIMP_RUN_NONINTERACTIVE (we can't expect
	  all plug-ins to do this correctly but need to hack the core to
	  sort out unwanted progress bars).

	Unrelated:

	- Cleaned up indentation, spacing, #includes, coding style and
	  other stuff while I was at all these files.
2003-06-13 14:37:00 +00:00
Sven Neumann 9aa41ceceb removed code for the slimy-easter-egg that was unveiled some time ago.
2003-06-13  Sven Neumann  <sven@gimp.org>

	* app/gui/file-save-dialog.c (file_save_ok_callback): removed
	code for the slimy-easter-egg that was unveiled some time ago.
2003-06-13 14:13:37 +00:00
Sven Neumann d747bbec3f oops, I had not saved my changes before the commit 2003-06-13 11:16:08 +00:00
Sven Neumann 3974e5ee8f Attempt to finally fix Smudge tool problems (bug #115057):
2003-06-13  Sven Neumann  <sven@gimp.org>

        Attempt to finally fix Smudge tool problems (bug #115057):

	* app/paint-funcs/paint-funcs-generic.h (blend_pixels): added an
	implementation for the non-alpha case.

	* app/paint/gimpsmudge.c (gimp_smudge_start): added back code that
	used to prefill the buffer if the inital area was clipped.
2003-06-13 11:12:04 +00:00
Sven Neumann 7cb3c316a4 fixed a typo I introduced yesterday.
2003-06-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimptemplate.c (gimp_template_create_image): fixed a
	typo I introduced yesterday.
2003-06-13 11:04:16 +00:00
Dave Neary a224541d0d Applied a patch from Yohei Honda <yoh2@d2.dion.ne.jp> to handle 16 bit
2003-06-12  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/tga.c: Applied a patch from Yohei Honda
        <yoh2@d2.dion.ne.jp> to handle 16 bit TGAs which use the
        spare bit to do alpha. Closes bug #114913.
2003-06-12 19:54:23 +00:00
Michael Natterer 9b206bd4df removed the check again because adding e.g. GRAY drawables to RGB images
2003-06-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_configure): removed the
	check again because adding e.g. GRAY drawables to RGB images is
	prefectly ok as long as they are channels/masks.
2003-06-12 14:18:33 +00:00
Sven Neumann d942668ff6 check if the drawable type fits to the image. This assertion would have
2003-06-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_configure): check if the
	drawable type fits to the image. This assertion would have catched
	the problem below.
2003-06-12 10:43:00 +00:00
Sven Neumann 653b4e0fe7 handle all fill types, fixes bug #114979.
2003-06-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimptemplate.c (gimp_template_create_image): handle all
	fill types, fixes bug #114979.
2003-06-12 10:16:51 +00:00
Sven Neumann 08879c9f90 app/gui/info-window.c libgimpwidgets/gimpcolorscales.c applied some
2003-06-11  Sven Neumann  <sven@gimp.org>

	* app/gui/info-window.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimpcolorselect.c: applied some slightly modified
	patches from Michael Bushey that fix rounding errors when
	converting between color values in gdouble and guchar
	representation (bug #109241).

	* libgimpcolor/gimpcolorspace.c
	* libgimpcolor/gimprgb.c: similar fixes here.
2003-06-11 15:55:48 +00:00
Michael Natterer ebbedb7559 app/config/gimpcoreconfig.[ch] removed "tool-plug-in-path" property.
2003-06-11  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpcoreconfig.[ch]
	* app/config/gimprc-blurbs.h: removed "tool-plug-in-path" property.

	* app/gui/preferences-dialog.c: changed accordingly. Some
	preparation for more HIG compliance.
2003-06-11 15:18:26 +00:00
Michael Natterer 652b9dced0 app/config/gimpcoreconfig.c removed "tool-plug-in-path" property.
2003-06-11  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpcoreconfig.c
	* app/config/gimprc-blurbs.h: removed "tool-plug-in-path" property.

	* app/gui/preferences-dialog.c: changed accordingly. Some
	preparation for more HIG compliance.
2003-06-11 15:01:38 +00:00
Sven Neumann 77269e80cf handle all mouse buttons equally, cleaned up code, fixed return values
2003-06-11  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorselect.c: handle all mouse buttons
	equally, cleaned up code, fixed return values from event handlers.
2003-06-11 13:59:42 +00:00
Michael Natterer 0c6d379081 added some more g_return_if_fail() to avoid NULL pointer dereferencing.
2003-06-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_mask_bounds): added some
	more g_return_if_fail() to avoid NULL pointer dereferencing.
2003-06-11 13:50:04 +00:00
Sven Neumann 064a79ed76 improved handling of invalid PGM files by clamping all pixel values to the
2003-06-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pnm.c (pnm_load_raw): improved handling of
	invalid PGM files by clamping all pixel values to the specified
	maximum value (see Debian bug #195066).
2003-06-11 12:47:16 +00:00
Sven Neumann 610e2a639e added a container that keeps references to the buttons which are not added
2003-06-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptoolbox.[ch]: added a container that keeps
	references to the buttons which are not added to the wrap box.
	Just to make sure they are destroyed on exit.
2003-06-11 12:05:00 +00:00
Sven Neumann 9b20083ee9 etc/Makefile.am added a sample sessiorc which will be used after user
2003-06-11  Sven Neumann  <sven@gimp.org>

	* etc/Makefile.am
	* etc/sessionrc: added a sample sessiorc which will be used after
	user installation.

	* app/gui/user-install-dialog.c (tree_items): install the sample
	sessionrc.
2003-06-11 10:58:57 +00:00
Jan Morén 3929ad278d Updated Swedish translation.
2003-06-11  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2003-06-11 07:57:11 +00:00
Sven Neumann f9fec0cda7 fixed my latest fix. Fixes bug #114882.
2003-06-11  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h (blend_pixels): fixed my
	latest fix. Fixes bug #114882.
2003-06-11 00:46:59 +00:00
Pablo Gonzalo del Campo 0044267f81 Updated Spanish translation.
2003-06-10  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

        * es.po: Updated Spanish translation.
2003-06-10 19:04:26 +00:00
Pablo Gonzalo del Campo 83cd0daf40 Updated Spanish translation.
2003-06-10  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

	* es.po: Updated Spanish translation.
2003-06-10 19:04:03 +00:00
Sven Neumann addba61b08 added utility function gimp_rgb_get_gdk_color(), documented
2003-06-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: added utility function
	gimp_rgb_get_gdk_color(), documented gimp_get_screen_resolution().

	* app/widgets/gimppreviewrenderer.c
	(gimp_preview_renderer_set_border_color)
	* app/display/gimpdisplayshell-appearance.c
	(gimp_display_shell_set_padding): use the new function.
2003-06-10 16:44:44 +00:00
Yuri Syrota 55eea34f1c Updated Ukrainian translations 2003-06-10 15:00:45 +00:00
Sven Neumann b39f8fb809 expects the tool identifier as a GQuark now.
2003-06-10  Sven Neumann  <sven@gimp.org>

	* app/gui/tools-commands.c (tools_select_cmd_callback): expects
	the tool identifier as a GQuark now.

	* app/gui/image-menu.c: changed accordingly. Removed code that
	used to move the menu entries for the color correction tools to
	the Layers menu. Added the respective menu entries by hand. Added
	a menu entry for arbitrary rotations and one for Select by Color.

	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcolorizetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimphistogramtool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimpthresholdtool.c: register the color correction
	tools in the Tools menu.

	* app/tools/gimptransformtool.c: added an initialize method and
	moved most initalization code from button_press to this place.
2003-06-10 14:31:53 +00:00
Michael Natterer cee14a8d9a treeviewized and undeprecated. Enabled multiple selection and DND
2003-06-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/film.c: treeviewized and undeprecated. Enabled
	multiple selection and DND reordering.
2003-06-10 13:19:22 +00:00
Michael Natterer 7a04ec894c added an undo group around all operations.
2003-06-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/coffee.scm: added an undo group
	around all operations.

	* plug-ins/script-fu/scripts/distress-selection.scm: replaced
	undo disable/enable by an undo group.

	Together fixes bug #114493. Removed weird spacing and indented
	both scripts to make them readable.
2003-06-10 12:57:27 +00:00