Commit Graph

8899 Commits

Author SHA1 Message Date
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
Jan Morén 09b01b021b Updated Swedish translation.
2003-06-10  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2003-06-10 07:56:37 +00:00
Kwok-Koon Cheung 6de9da6e02 Updated traditional Chinese translation 2003-06-10 03:13:12 +00:00
Sven Neumann 8f2d986688 Made 1.3.15 release.
2003-06-09  Sven Neumann  <sven@gimp.org>

        * Made 1.3.15 release.
2003-06-09 23:28:50 +00:00
Sven Neumann 67dbecc926 configure.in use automake conditionals for subdirectories so that they
2003-06-09  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/Makefile.am: use automake conditionals for
	subdirectories so that they will always be included in the
	tarball.
2003-06-09 15:29:20 +00:00
Sven Neumann 58b975a4f2 now that blend_pixels() behaves correctly, we can simply initialize the
2003-06-09  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpsmudge.c (gimp_smudge_start): now that
	blend_pixels() behaves correctly, we can simply initialize the
	smudge buffer with transparent pixels.
2003-06-09 15:24:30 +00:00
Sven Neumann 32bab29f18 weight pixels by their alpha value. Fixes the smudge tool (bug #72879).
2003-06-09  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h (blend_pixels): weight
	pixels by their alpha value. Fixes the smudge tool (bug #72879).
2003-06-09 15:05:57 +00:00
Sven Neumann 9d984fb1d2 use a GimpScaleEntry for SF_SLIDER adjustments (bug #114509).
2003-06-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_interface):
	use a GimpScaleEntry for SF_SLIDER adjustments (bug #114509).
2003-06-09 14:17:57 +00:00
Maurits Rijk 72e401582a Fix for #113445 (Again) 2003-06-08 20:57:31 +00:00
Abel Cheung e5ca318a5e Removed, it contains only one completely broken string.
2003-06-08  Abel Cheung  <maddog@linux.org.hk>

	* uk.po: Removed, it contains only one completely broken string.
2003-06-08 09:46:55 +00:00
Kwok-Koon Cheung bf459e8e2d Add missing files to POTFILES.in/skip 2003-06-08 09:24:59 +00:00
Michael Natterer 5c5ff60858 pack the main table expanding, not shrinking. Fixes bug #114656.
2003-06-08  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfontselection-dialog.c
	(gimp_font_selection_dialog_new): pack the main table expanding,
	not shrinking. Fixes bug #114656.
2003-06-08 00:51:09 +00:00
Jan Morén c6006ac884 Updated Swedish translation.
2003-06-07  Jan Morén  <jan.moren@lucs.lu.se>

         * sv.po: Updated Swedish translation.
2003-06-07 09:47:57 +00:00
Michael Natterer 5abd43b81e added a default spacing of two pixels between the entry end the menu.
2003-06-06  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpmemsizeentry.c: added a default spacing of
	two pixels between the entry end the menu. Random cleanups.
2003-06-06 18:22:46 +00:00
Sven Neumann f783da0b40 updates 2003-06-06 17:07:34 +00:00
Michael Natterer 98bdd5c0f3 app/widgets/Makefile.am new files containing the toolbox' drop callbacks.
2003-06-06  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimptoolbox-dnd.[ch]: new files containing the
	toolbox' drop callbacks. Exports gimp_toolbox_dnd_init().

	* app/widgets/gimptoolbox.c: removed the callbacks and all the
	"core/" includes they needed and call gimp_toolbox_dnd_init().
2003-06-06 15:14:47 +00:00
Sven Neumann bc93e4a041 added "in_toolbox"; defaults to TRUE.
2003-06-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimptoolinfo.[ch]: added "in_toolbox"; defaults to TRUE.

	* app/tools/tool_manager.c: set "in_toolbox" to FALSE for tools
	derived from GimpImageTool.

	* app/widgets/gimptoolbox.c: respect the new flag when constructing
	the toolbox.
2003-06-06 14:58:20 +00:00
Jakub Steiner 2cdaaf38b1 M themes/Default/images/tools/stock-tool-smudge-16.png make it more clear
2003-06-06  Jakub Steiner <jimmac@ximian.com>

* M themes/Default/images/tools/stock-tool-smudge-16.png
* themes/Default/images/tools/stock-tool-smudge-22.png: make it
  more clear it's a smudge tool, not a path tool
2003-06-06 13:51:03 +00:00
Sven Neumann 39431228ad fixed button order.
2003-06-06  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c (confirm_save_dialog): fixed button order.
2003-06-06 13:33:34 +00:00
Sven Neumann aca442cf8a UTF-8 validate messages before passing them to g_message().
2003-06-06  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/message.pdb: UTF-8 validate messages before
	passing them to g_message().

	* app/pdb/message_cmds.c
	* libgimp/gimpmessage_pdb.c: regenerated.
2003-06-06 13:12:44 +00:00
Maurits Rijk c46c9b536a fix for #114495 2003-06-06 13:01:38 +00:00
Sven Neumann 17cd9400bb fixed broken usage of g_strconcat() that caused a crash (bug #114564).
2003-06-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c (gfig_save_callbk): fixed broken usage of
	g_strconcat() that caused a crash (bug #114564).
2003-06-06 12:42:22 +00:00
Michael Natterer ef30cf315d app/gui/image-menu.c moved the convenience items which create new docks
2003-06-06  Michael Natterer  <mitch@gimp.org>

	* app/gui/image-menu.c
	* app/gui/toolbox-menu.c: moved the convenience items which
	create new docks from the "Dialogs/" level to a new
	"Dialogs/Create New Dock/" sub-menu.  Fixes bug #111278.

	* app/gui/dialogs-commands.[ch] (dialogs_create_data_cmd_callback):
	new convenience constructor callback. Factored out duplicated
	code to the new dialogs_create_dock() utility function.
2003-06-06 12:16:13 +00:00
Michael Natterer 4f33a4788f added CW/CCW to the "Rotate" menu entries as suggested in bug #57797.
2003-06-06  Michael Natterer  <mitch@gimp.org>

	* app/gui/image-menu.c: added CW/CCW to the "Rotate" menu entries
	as suggested in bug #57797. Cleaned up image_menu_update().
2003-06-06 11:17:09 +00:00
Sven Neumann 4ff89cbdc5 use gtk_window_present() instead of reimplementing its functionality.
2003-06-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CML_explorer.c (CML_save_to_file_callback): use
	gtk_window_present() instead of reimplementing its functionality.
2003-06-06 10:56:08 +00:00