Commit Graph

11063 Commits

Author SHA1 Message Date
Michael Natterer 8137bbcffc added plug-ins/helpbrowser/domain.c
2004-01-15  Michael Natterer  <mitch@gimp.org>

	* POTFILES.in: added plug-ins/helpbrowser/domain.c
2004-01-15 20:08:36 +00:00
Michael Natterer c7fbda3453 removed GIMP_HELP_DEFAULT_DOMAIN #define...
2004-01-15  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/helpbrowser.c: removed
	GIMP_HELP_DEFAULT_DOMAIN #define...

	* plug-ins/helpbrowser/domain.h: ...and added it here.

	* plug-ins/helpbrowser/domain.c: fixed the fix for bug #128112:
	don't compare the help domain's base uri (which is variable) but
	the help domain's name (which is constant). Re-added removed
	information to the error message while keeping its user
	readability. Marked g_message() strings for translation.
2004-01-15 20:07:51 +00:00
David Odin 2f49ddd717 Somewhat resurrected the SuperNova plugin. Still very buggy, though. 2004-01-15 16:21:17 +00:00
Michael Natterer 0af39061b6 Fixed bug #78732 (don't paste off screen):
2004-01-15  Michael Natterer  <mitch@gimp.org>

	Fixed bug #78732 (don't paste off screen):

	* app/display/gimpdisplayshell-transform.[ch]: added new function
	gimp_display_shell_untransform_viewport() which returns the
	visible rectangle of the image in image coordinates.

	* app/core/gimp-edit.[ch] (gimp_edit_paste): added viewport
	parameters and changed positioning of the pasted layer as follows:

	- if there is a selection, center on the selection (just as before).
	- if there is no viewport, center on the active drawable.
	- if the viewport intersects with the active drawable, center
	  on the intersection.
	- if the viewport does *not* intersect with the active drawable,
	  center on the active drawable (off-screen, but better than pasting
	  something that will be invisible due to floating selection clipping).
	- if there is no active drawable, center on the viewport.
	- if there is no active drawable and no viewport, center on the image.

	* app/widgets/gimpbufferview.c (gimp_buffer_view_paste_clicked)
	(gimp_buffer_view_paste_into_clicked)
	* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_drop_buffer)
	* app/gui/edit-commands.c (edit_paste_cmd_callback)
	(edit_paste_into_cmd_callback): ask the shell for the viewport
	and pass it to gimp_edit_paste().

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_drop_drawable): center the created layer on
	the viewport.

	* app/tools/gimpmovetool.c (gimp_move_tool_button_release): use
	gimp_display_shell_untransform_viewport() (its code was taken from
	here).

	* tools/pdbgen/pdb/edit.pdb: pass "no viewport" to gimp_edit_paste().

	* app/pdb/edit_cmds.c: regenerated.
2004-01-15 14:36:43 +00:00
Dave Neary a1fd8fb48f Now that we're in pre-release mode, list all the bugs fixed in this
2004-01-15  Dave Neary  <bolsh@gimp.org>

        * NEWS: Now that we're in pre-release mode, list all the bugs fixed
        in this release, rather than features added. Commits which don't fix
        bugs are listed in the "Other contributions" section. Bugs were added
        in chronological order according to when the fix was committed (so
        the first bug in the list was the one committed soonest after the
        2.0pre1 release).
2004-01-15 14:29:03 +00:00
Dave Neary c038ba100c Now that we're in pre-release mode, list all the bugs fixed in this
2004-01-15  Dave Neary  <bolsh@gimp.org>

        * NEWS: Now that we're in pre-release mode, list all the bugs fixed
        in this release, rather than features added. Commits which don't fix
        bugs are listed in the "Other contributions" section. Bugs were added
        in chronological order according to when the fix was committed (so
        the first bug in the list was the one committed soonest after the
        2.0pre1 release).
2004-01-15 14:28:36 +00:00
Michael Natterer d994e904da moved initialization of the gimage->visible[] and gimage->active[] arrays
2004-01-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c: moved initialization of the
	gimage->visible[] and gimage->active[] arrays from
	gimp_image_new() to gimp_image_init(). Use gimp_rgba_set()
	to initialize gimage->qmask_color.
2004-01-15 13:58:27 +00:00
Dave Neary 955de22e46 Modify error messages shown when help files cannot be opened. For the main
2004-01-15  Dave Neary  <bolsh@gimp.org>

        * plug-ins/helpbrowser/domain.c: Modify error messages shown when
	help files cannot be opened. For the main GIMP help domain, the
        error message is now "Failed to open help files:\nTheGIMP help files
        are not installed." and in the general case "Failed to open help
        files:\nThe requested help file %s could not be opened.\nPlease check
        your installation." This fixes bug #128112.
2004-01-15 12:51:28 +00:00
Sven Neumann 2d775c663f added a "validate" rule that attempts to validate the generated
2004-01-15  Sven Neumann  <sven@gimp.org>

	* data/misc/Makefile.am: added a "validate" rule that attempts to
	validate the generated gimp.desktop file using desktop-file-validate
	(from desktop-file-utils). Run it on 'make dist'.

	* tips/Makefile.am: for consistency, moved the existing validation
	code to a rule called "validate".
2004-01-15 11:42:32 +00:00
Danilo Šegan bbd01ccd1e Updated Serbian translation. 2004-01-15 06:38:07 +00:00
Manish Singh 35f1fd4273 #include "file/file-utils.h" for file_utils_filename_to_utf8.
2004-01-14  Manish Singh  <yosh@gimp.org>

        * app/config/gimpconfig-utils.c: #include "file/file-utils.h" for
        file_utils_filename_to_utf8.
2004-01-15 00:07:32 +00:00
David Odin 7ec4987e35 clean up the code (use gimp_table_attach_aligned() where needed).
* plug-ins/common/plugindetails.c: clean up the code (use
	gimp_table_attach_aligned() where needed).

	* plug-ins/dbbrowser/dbbrowser.c:
	* plug-ins/dbbrowser/dbbrowser_utils.c: changed tabs to spaces.
2004-01-14 23:10:45 +00:00
Dave Neary 8342168291 get the type of the drawable, not the image, when transforming a TempBuf,
2004-01-14  Dave Neary  <bolsh@gimp.org>

        * app/core/gimpimage.c: get the type of the drawable, not the
        image, when transforming a TempBuf, making dragging & dropping
        patterns on layer masks work correctly. Fixes bug #131146.
2004-01-14 20:46:57 +00:00
Michael Natterer 9d43b0669b added GIMP_IMAGE_TYPE_WITHOUT_ALPHA() macro as counterpart to
2004-01-14  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.h: added GIMP_IMAGE_TYPE_WITHOUT_ALPHA()
	macro as counterpart to GIMP_IMAGE_TYPE_WITH_ALPHA().

	* app/core/gimpdrawable.[ch]: added
	gimp_drawable_type_without_alpha() and
	gimp_drawable_bytes_without_alpha() convenience functions.
2004-01-14 19:41:00 +00:00
Michael Natterer 134efe87b5 Some code review:
2004-01-14  Michael Natterer  <mitch@gimp.org>

	Some code review:

	* app/core/gimpimage.c: named the gint paramater in all
	colormap_changed related functions to "color_index", fixed typo in
	parasite undo description, moved some variables to local scopes,
	changed the layer raise/lower functions to look like the channel
	and vector ones, cosmetics.

	* app/core/gimpimage-colorhash.c: removed trailing whitespace,
	initialize / reset more stuff to 0, cosmetics.
2004-01-14 11:34:15 +00:00
Michael Natterer d5243f9d67 fix typo in the uninstall-local target for gimp-console.
2004-01-14  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am: fix typo in the uninstall-local target for
	gimp-console.
2004-01-14 11:10:35 +00:00
David Odin 82e0e39dbf Callbacks attached to the "changed" signal for of GtkTreeSelection should return void.
Small cosmetics fixes also.
2004-01-14 10:50:58 +00:00
Tor Lillqvist 18485018b3 Add new function file_utils_filename_to_utf8(), which is to be used when
2004-01-14  Tor Lillqvist  <tml@iki.fi>

	* app/file/file-utils.[ch]: Add new function
	file_utils_filename_to_utf8(), which is to be used when converting
	file names (which are kept in the on-disk encoding) to UTF-8 for
	passing to GTK, or to g_print() etc.

	* app/*/*.c: Call file_utils_filename_to_utf8(). Should fix most
	of the warnings generated by non-UTF8 pathnames. See #130118.

	* libgimpbase/gimpenv.b: Document that gimp_directory() etc return
	strings in the on-disk encoding.

	* libgimpmodule/gimpmodule.c: Convert filenames to UTF-8 (using
	g_filename_to_utf8()) before passing to g_print().
2004-01-14 02:03:37 +00:00
Simon Budig 6c4deef6b0 Fixed small refresh issue.
2004-01-14  Simon Budig  <simon@gimp.org>

	* app/gui/about-dialog.c: Fixed small refresh issue.
2004-01-14 00:04:46 +00:00
Simon Budig c48c937042 New image for the about dialog by Jakub Steiner.
2004-01-13  Simon Budig  <simon@gimp.org>

	* data/images/gimp_logo.png: New image for the about dialog by
	Jakub Steiner.

	* app/gui/about-dialog.c: Adjusted to new image. Also could not
	resist to add a fancy effect...

	* data/images/gimp1_2_logo.png: Saved the image from 1.2.
2004-01-13 23:19:05 +00:00
Michael Natterer 3bee156b6e Allow invoking the text tool by double clicking a text layer in the layers
2004-01-13  Michael Natterer  <mitch@gimp.org>

	Allow invoking the text tool by double clicking a text layer in
	the layers dialog, just like the path tool is invoked when double
	clicking a path.

	* app/tools/gimptexttool.[ch]: added empty
	gimp_text_tool_set_layer() stub. Sven, your turn...

	* app/gui/layers-commands.[ch]: added layers_text_tool() which
	invokes the text tool on text layers and falls back to
	layers_edit_layer_query() otherwise.
	Added layers_text_tool_cmd_callback() for the layers menu.

	* app/gui/layers-menu.c: added "Text Tool" menu item and hide
	it for layers which are no text layers.

	* app/gui/dialogs-constructors.c (dialogs_layer_list_view_new):
	use layers_text_tool() as "activate" function.
2004-01-13 19:08:16 +00:00
Stanislav Visnovsky a768016ef0 Updated Slovak translation by Zdenko Podobny.
2004-01-13  Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>

        * sk.po: Updated Slovak translation by Zdenko Podobny.
2004-01-13 18:20:06 +00:00
Michael Natterer bfaecda66e G_LOG_DOMAIN should be "Gimp-Composite", not "Gimp-Composition".
2004-01-13  Michael Natterer  <mitch@gimp.org>

	* app/composite/Makefile.am (AM_CPPFLAGS): G_LOG_DOMAIN should be
	"Gimp-Composite", not "Gimp-Composition".

	* app/app_procs.c (app_run): register a log handler for the
	"Gimp-Composite" domain.
2004-01-13 17:48:38 +00:00
Michael Natterer f5bf76fcb4 removed GimpChannelLutType enum and export GimpHistogramChannel to the
2004-01-13  Michael Natterer  <mitch@gimp.org>

	* app/base/base-enums.h: removed GimpChannelLutType enum and
	export GimpHistogramChannel to the PDB. The removed enum was just
	there for libgimp compatibility.

	* tools/pdbgen/pdb/color.pdb: changed accordingly.

	* libgimp/gimpcompat.h
	* plug-ins/script-fu/siod-wrapper.c: added compat cruft.

	* app/pdb/color_cmds.c
	* libgimp/gimpcolor_pdb.[ch]
	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.
2004-01-13 17:20:17 +00:00
Michael Natterer 221d73eeaa libgimp/libgimp-sections.txt updated.
2004-01-13  Michael Natterer  <mitch@gimp.org>

	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpenums.sgml: updated.
2004-01-13 16:25:18 +00:00
Michael Natterer 8394e9e0f1 removed GimpChannelLutType enum and export GimpHistogramChannel to the
2004-01-13  Michael Natterer  <mitch@gimp.org>

	* app/base/base-enums.h: removed GimpChannelLutType enum and
	export GimpHistogramChannel to the PDB. The removed enum was just
	there for libgimp compatibility.

	* tools/pdbgen/pdb/color.pdb: changed accordingly.

	* libgimp/gimpcompat.h
	* plug-ins/script-fu/siod-wrapper.c: added compat cruft.

	* app/pdb/color_cmds.c
	* libgimp/gimpcolor_pdb.[ch]
	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.
2004-01-13 16:19:50 +00:00
Sven Neumann 7c5a13fef5 fixed definition of gimp_use_xshm().
2004-01-13  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpcompat.h: fixed definition of gimp_use_xshm().
2004-01-13 15:37:58 +00:00
Miloslav Trmac 9095d340d5 Update Czech translation 2004-01-13 13:40:03 +00:00
Michael Natterer ebc1bf8cca added GimpHistogramChannel index fiddling hacks for GRAYA images to all
2004-01-13  Michael Natterer  <mitch@gimp.org>

	* app/base/gimphistogram.c: added GimpHistogramChannel index
	fiddling hacks for GRAYA images to all gimp_histogram_get_*()
	functions. The public API now does what their enum values pretend
	to do.

	(gimp_histogram_calculate): restructured to reduce indentation depth.

	* app/widgets/gimphistogrameditor.c
	* app/widgets/gimphistogramview.c
	* tools/pdbgen/pdb/color.pdb: removed hacks here and always use
	the unchanged enum values.

	* app/pdb/color_cmds.c: regenerated.
2004-01-13 13:35:58 +00:00
Michael Natterer 9eaace417f renamed gimp_histogram_nchannels() to gimp_histogram_n_channels().
2004-01-13  Michael Natterer  <mitch@gimp.org>

	* app/base/gimphistogram.[ch]: renamed gimp_histogram_nchannels()
	to gimp_histogram_n_channels().

	* app/core/gimpdrawable-histogram.c: removed silly double negation
	logic. Cleanup.

	* app/widgets/gimphistogrameditor.c
	* app/widgets/gimphistogramview.c: adjust the GimpHistogramChannel
	for GRAYA images to make sure we pick alpha from the right slot.

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c: removed the same hack here and call
	gimp_histogram_view_set_channel() with the correct enum value.

	* tools/pdbgen/pdb/color.pdb (levels, curves, histogram): fiddle
	with enum values here too so GRAY* drawables produce the correct
	results.

	Fixed precondition checks and set "success" in a uniform way all
	over the place.

	Use gimp_drawable_calculate_histogram() instead of duplicating its
	code here.

	(started with a patch from Pedro Gimeno. Fixes bug #109078)

	* app/pdb/color_cmds.c: regenerated.
2004-01-13 11:51:45 +00:00
Manish Singh e1f6aa9ec8 Split from gimpmisc.[ch] 2004-01-13 10:26:10 +00:00
Artur Flinta c6c7abb8e1 Updated Polish translation by GNOME PL Team.
2004-01-13  Artur Flinta  <aflinta@cvs.gnome.org>

	* pl.po: Updated Polish translation by GNOME PL Team.
2004-01-13 07:20:57 +00:00
Michael Natterer 768ce436e1 advance the source pointer by 4, not 3 bytes for regions with 4 bytes
2004-01-12  Michael Natterer  <mitch@gimp.org>

	* app/base/gimphistogram.c (gimp_histogram_calculate_sub_region):
	advance the source pointer by 4, not 3 bytes for regions with
	4 bytes (ouch). Cosmetics.
2004-01-12 22:35:17 +00:00
Valek Frob f10b8c7dd6 Updated russian translation. 2004-01-12 19:51:53 +00:00
Michael Natterer df56be11b5 don't skip "gimpmisc.h", it's gone.
2004-01-12  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am: don't skip "gimpmisc.h", it's gone.

	* libgimp/tmpl/gimppixelfetcher.sgml
	* libgimp/tmpl/gimpregioniterator.sgml: new files.

	* libgimp/libgimp-docs.sgml
	* libgimp/libgimp-sections.txt: added the new stuff.
2004-01-12 16:56:11 +00:00
David Odin 7455016489 split gimpmisc.[ch] into gimppixelfetcher.[ch] and gimpregioniterator.[ch] 2004-01-12 16:35:01 +00:00
Sven Neumann 577148ebb3 use 'gimp-remote-1.3 --new' here so that drops on the application icon
2004-01-12  Sven Neumann  <sven@gimp.org>

	* data/misc/gimp.desktop.in.in (Exec): use 'gimp-remote-1.3 --new'
	here so that drops on the application icon don't necessarily spawn
	a new instance.
2004-01-12 14:31:11 +00:00
Michael Natterer 856c4eeedb Enabled/fixed moving of channels and layer masks (was something between
2004-01-12  Michael Natterer  <mitch@gimp.org>

	Enabled/fixed moving of channels and layer masks (was something
	between disabled and broken before).

	* app/tools/gimpeditselectiontool.h (enum EditType): added new
	values EDIT_CHANNEL_TRANSLATE and EDIT_LAYER_MASK_TRANSLATE.

	* app/tools/gimpmovetool.c (gimp_move_tool_button_press): look at
	the type of the active drawable and invoke GimpEditSelectionTool
	accordingly.

	(gimp_move_tool_cursor_update): don't show the "bad" cursor when
	the active drawable is a channel or layer mask.

	* app/tools/gimpeditselectiontool.c: changed/enabled moving of
	channels and layer masks to work similar to selection mask moving:

	- Show only the item's outline while moving and do the actual move
	  on button_release.
	- Fixed/generalized some code to cope with the fact that we move
	  the linked layers/vectors *while* moving but the moved channel
	  itself *after* moving.
	- Draw the channel's/mask's bounding box instead of its boundary
	  if the boundary is empty (if all its values are either below or
	  above HALF_WAY).
2004-01-12 14:13:24 +00:00
Michael Natterer db6ff24dcd converted tabs to spaces, cosmetics.
2004-01-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel.c: converted tabs to spaces, cosmetics.
2004-01-12 13:57:30 +00:00
Sven Neumann a76222ea7c changed "compat" to "compatibility".
2004-01-12  Sven Neumann  <sven@gimp.org>

	* app/main.c (gimp_show_help): changed "compat" to "compatibility".
2004-01-12 13:36:37 +00:00
Sven Neumann 31a8e963ab fixed spelling of bug reporter's name 2004-01-12 11:47:22 +00:00
Sven Neumann 9a2173a432 only call bind_textdomain_codeset() when it is available. Spotted by
2004-01-12  Sven Neumann  <sven@gimp.org>

	* app/gui/plug-in-menus.c (plug_in_menus_init): only call
	bind_textdomain_codeset() when it is available. Spotted by
	Reinhard Geissler (bug #131215).
2004-01-12 11:33:28 +00:00
Michael Natterer dbbf5130cd applied patch from Pedro Gimeno that makes sure we always invalidate
2004-01-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-projection.c (gimp_image_invalidate): applied
	patch from Pedro Gimeno that makes sure we always invalidate
	complete tiles, not parts of it. Fixes bug #116765.

	* app/display/gimpdisplay.c (gimp_display_paint_area): calculate
	the image area to invalidate using sub-pixel precision and
	ceil()/floor() the resulting area to make sure we always
	invalidate a superset of the dirty area, not a subset. A rounding
	error here has never been reported but would cause effects similar
	to #116765.
2004-01-12 11:11:27 +00:00
Sven Neumann cbdb6947af call the callback with the selected image which is not necessarily the
2004-01-12  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpmenu.c (gimp_image_menu_new): call the callback with
	the selected image which is not necessarily the requested one
	(fixes bug #92586).
	Also changed all menu constructors to always call the registered
	callback even when the value is -1 because the menu is empty.

	* app/gui/plug-in-commands.c (plug_in_run_cmd_callback): run the
	procedure even if there's no active GIMP display. The display and
	screen is then taken from the current cursor position.

	* app/gui/gui-vtable.c (gui_get_display_name): don't call
	gimp_display_get_by_ID() unless gdisp_ID is > 0.
2004-01-12 11:00:45 +00:00
Manish Singh 1b6b2db776 we need at least pygtk 1.99.15 for pygimp. Enforce this.
2004-01-12  Manish Singh  <yosh@gimp.org>

        * configure.in: we need at least pygtk 1.99.15 for pygimp. Enforce
        this.
2004-01-12 10:54:03 +00:00
Sven Neumann d4a318ddba updated after removal of SA_RESTART for EMX.
2004-01-12  Sven Neumann  <sven@gimp.org>

	* libgimpbase/tmpl/gimpsignal.sgml: updated after removal of
	SA_RESTART for EMX.
2004-01-12 09:43:49 +00:00
Sven Neumann bcfea54c59 use g_ascii_strtod() instead of the locale-dependant atof().
2004-01-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CML_explorer.c (parse_line_to_gdouble): use
	g_ascii_strtod() instead of the locale-dependant atof().
2004-01-12 09:19:49 +00:00
Artur Flinta bb94944670 Updated Polish translation by GNOME PL Team.
2004-01-12  Artur Flinta  <aflinta@cvs.gnome.org>

	* pl.po: Updated Polish translation by GNOME PL Team.
2004-01-12 09:18:34 +00:00
Sven Neumann e001af7673 render a grayscale preview when the plug-in is run on a grayscale drawable
2004-01-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CML_explorer.c: render a grayscale preview when
	the plug-in is run on a grayscale drawable (fixes bug #82465).
2004-01-12 08:15:03 +00:00
Sven Neumann 2daaa3a3f5 build the version number from just like it is done for the pkg-config
2004-01-12  Sven Neumann  <sven@gimp.org>

	* gimptool-2.0.in: build the version number from just like it is done
	for the pkg-config files.
2004-01-12 07:48:48 +00:00