Commit Graph

7153 Commits

Author SHA1 Message Date
James Henstridge 430a9f5d55 convert to use getsets. (PyGimpTile_Type): convert to use getsets.
2002-08-30  James Henstridge  <james@daa.com.au>

    * pygimp-tile.c (PyGimpPixelRgn_Type): convert to use getsets.
    (PyGimpTile_Type): convert to use getsets.

    * pygimp-image.c (PyGimpImage_Type): convert getattr and setattr
    routines into getsets.
2002-08-30 03:01:35 +00:00
Ole Laursen ab7a2d6289 Unfuzzified a string in Danish translation.
2002-08-30  Ole Laursen  <olau@hardworking.dk>

	* da.po: Unfuzzified a string in Danish translation.
2002-08-29 22:21:40 +00:00
Ole Laursen 0ddf35e963 Updated Danish translation.
2002-08-30  Ole Laursen  <olau@hardworking.dk>

	* da.po: Updated Danish translation.
2002-08-29 22:19:27 +00:00
Manish Singh eb38e7d89a fix minor buglet that earlier perls silently ate.
002-08-29  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/lib.pl: fix minor buglet that earlier perls silently
        ate.
2002-08-29 17:48:08 +00:00
Michael Natterer a8b08c7de7 added check_funcs (GIMP_IS_LAYER, GIMP_IS_IMAGE etc.) to all data types
2002-08-29  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb.pl: added check_funcs (GIMP_IS_LAYER,
	GIMP_IS_IMAGE etc.) to all data types which are looked up by ID...

	* tools/pdbgen/app.pl: ...and call them here instead of just
	checking for (item != NULL). This way image item lookup becomes
	type safe.

	* app/pdb/channel_cmds.c
	* app/pdb/color_cmds.c
	* app/pdb/convert_cmds.c
	* app/pdb/display_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/edit_cmds.c
	* app/pdb/fileops_cmds.c
	* app/pdb/floating_sel_cmds.c
	* app/pdb/guides_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/misc_tools_cmds.c
	* app/pdb/paint_tools_cmds.c
	* app/pdb/parasite_cmds.c
	* app/pdb/paths_cmds.c
	* app/pdb/selection_cmds.c
	* app/pdb/selection_tools_cmds.c
	* app/pdb/text_tool_cmds.c
	* app/pdb/transform_tools_cmds.c
	* app/pdb/undo_cmds.c: regenerated.
2002-08-29 17:21:21 +00:00
Michael Natterer 3ddc24d805 fixed wrong g_return_if_fail() in gimp_channel_feather() so the function
2002-08-29  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel.c: fixed wrong g_return_if_fail() in
	gimp_channel_feather() so the function can be called again (fixes
	#91923). Also added more g_return_if_fail() where they were
	missing and cleaned up everything a bit.
2002-08-29 16:48:17 +00:00
James Henstridge 1a9de76944 check if gimp_image_get_filename() returns NULL.
2002-08-29  James Henstridge  <james@daa.com.au>

    * pygimp-image.c (img_repr): check if gimp_image_get_filename()
    returns NULL.
2002-08-29 13:40:48 +00:00
James Henstridge cbcdadb1e5 fix up cvsignore file (we don't have a checked in Makefile.in file anymore) 2002-08-29 11:35:42 +00:00
James Henstridge 8c39c19a11 fix up plugin, so that I can test the rest of pygimp.
2002-08-29  James Henstridge  <james@daa.com.au>

    * plug-ins/gimpcons.py: fix up plugin, so that I can test the rest
    of pygimp.
2002-08-29 11:26:07 +00:00
James Henstridge 581a5e6d48 some more plugin updates. 2002-08-29 03:01:30 +00:00
James Henstridge 47f86d9f89 many updates to Python code to work with new PyGTK. I can start a plug in
2002-08-29  James Henstridge  <james@daa.com.au>

    * *.py, plug-ins/*.py: many updates to Python code to work with
    new PyGTK.  I can start a plug in now.
2002-08-29 01:53:26 +00:00
Christian Neumair 336b9d58d9 Updated German translation. 2002-08-28 20:33:55 +00:00
Michael Natterer d3b0f96413 removed unused #define cruft.
2002-08-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphistogramview.c: removed unused #define cruft.
2002-08-28 19:56:06 +00:00
Michael Natterer 14e0d0737b added a tool icon and descriptive string to the dialog's title box. Create
2002-08-28  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpimagemaptool.[ch]: added a tool icon and
	descriptive string to the dialog's title box. Create the
	drawable preview with is_popup == TRUE so it doesn't show
	layers in the image context. Still not perfect...

	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimpthresholdtool.c: Chain up early in initialize()
	and return if gdisp == NULL. Set stock_id and desc_text so
	GimpImageMapTool can display them. Added lots of mnemonics
	(#80804). Use gimp_size_entry_new() instead of manually creating
	the slider+spinbutton stuff.

	* app/tools/gimpcurvestool.c
	* app/tools/gimphistogramtool.c
	* app/tools/gimplevelstool.c: changed widgets packing to make them
	resizable without strange effects. Put the "Load", "Save" and
	"Auto" buttons into a frame.

	* app/tools/gimphuesaturationtool.c: use GimpColorAreas instead of
	deprecated GtkPreviews. Arranged the color previews and their
	radio buttons as a color wheel. Not the best solution maybe but
	IMHO better than the old GUI.
2002-08-28 19:47:07 +00:00
Michael Natterer 3f4d4d2118 look at drawable->offset_[xy] != 0 when deciding whether to offset the
2002-08-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdrawablepreview.c (gimp_drawable_preview_render):
	look at drawable->offset_[xy] != 0 when deciding whether to offset
	the preview. Fixes bug where layers of the size of the image were
	previewed with offset (0,0), regardless of their real offset.
2002-08-28 18:52:04 +00:00
Michael Natterer 9d0bfc516b removed all component item signal handling code, which is cool...
2002-08-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpchannellistview.c: removed all component item
	signal handling code, which is cool...

	* app/widgets/gimpcomponentlistitem.c: ...and added it here, which
	is not so cool because it adds Extra Ugliness (TM). At least it
	fixes part one of #90967.
2002-08-28 18:28:16 +00:00
James Henstridge 698bd613cc some more updates 2002-08-28 16:18:18 +00:00
James Henstridge dc70b17ac0 split module into multiple files, and convert types to Python 2.2 style
2002-08-28  James Henstridge  <james@daa.com.au>

    * *.c, pygimp.h: split module into multiple files, and convert
    types to Python 2.2 style types.  Still need to fix some of the
    getattr routines.
2002-08-28 15:17:29 +00:00
Michael Natterer 9c416076b1 app/undo.c (undo_pop_layer) emit "alpha_changed" from the image if we
2002-08-28  Michael Natterer  <mitch@gimp.org>

	* app/undo.c (undo_pop_layer)
	* app/core/gimpimage.c (gimp_image_[add|remove]_layer): emit
	"alpha_changed" from the image if we started (or ended up)
	with an image containing one layer without alpha.

	* app/core/gimplayer.c: use gimp_container_num_children() instead
	of accessing container->num_children manually.
2002-08-28 14:09:14 +00:00
He Qiangqiang 60959463fd Updated Simplified Chinese translation by Xie Yuheng
2002-08-28  He Qiangqiang  <carton@linux.net.cn>

	* zh_CN.po: Updated Simplified Chinese translation
		    by Xie Yuheng <elephant@linux.net.cn>.
2002-08-28 13:22:13 +00:00
Christophe Merlet 36175afa85 Updated French translation. 2002-08-28 12:57:06 +00:00
Sven Neumann 7531316130 check if the active drawable is a layer before using gimp_layer functions
2002-08-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/rotate.c (rotate): check if the active drawable
	is a layer before using gimp_layer functions on it.
2002-08-28 12:51:01 +00:00
James Henstridge 42956acb7e forgot to add the Makefile.am back 2002-08-28 03:31:28 +00:00
James Henstridge 47d24dded1 various updates to get it to compile with latest gimp. Still need to merge
2002-08-28  James Henstridge  <james@daa.com.au>

    * gimpmodule.c: various updates to get it to compile with latest
    gimp.  Still need to merge in changes to toplevel configure.in.
2002-08-28 03:30:25 +00:00
Michael Natterer 4dc1b80eb2 fixed a bug introduced by myself on 2001-12-13: the floating selection
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-mask.c (gimp_image_mask_float): fixed a bug
	introduced by myself on 2001-12-13: the floating selection layer
	needs to be of the type of it's associated drawable, which may be
	different from the image's type if it is a channel or layer mask
	(fixes #91814).
2002-08-27 20:06:40 +00:00
Manish Singh e3e2b6de89 add dummy all-local rules for the !gtk-doc case, to fix problems with some
2002-08-27  Manish Singh  <yosh@gimp.org>

        * devel-docs/lib*/Makefile.am: add dummy all-local rules for the
        !gtk-doc case, to fix problems with some automake/make combos

        * modules/Makefile.am: use lib instead of libexec to appease automake
        1.6
2002-08-27 16:38:29 +00:00
Michael Natterer c46dedd9c5 added #define for GIMP_PREVIEW_MAX_BORDER_WIDTH instead of hardcoding it
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppreview.[ch]: added #define for
	GIMP_PREVIEW_MAX_BORDER_WIDTH instead of hardcoding it all over
	the place, cleanup.
2002-08-27 15:31:24 +00:00
Michael Natterer 9b92804dcc don't forget to g_free() the proc_def struct after removing a temporary
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/plug-ins/plug-in.c (plug_in_close,
	plug_in_handle_proc_uninstall): don't forget to g_free() the
	proc_def struct after removing a temporary procedure.

	* app/plug-ins/plug-ins.c: iterate lists with for() loops,
	cleanup.
2002-08-27 15:23:36 +00:00
Michael Natterer 635a2d93b8 fixed wrong parameter name in gtk-doc comment.
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpwidgets.c: fixed wrong parameter name in
	gtk-doc comment.
2002-08-27 15:01:56 +00:00
Kelly Martin 1c7da49a3d fixed typo.
2002-08-09  Kelly Martin  <kmartin@pyrzqxgl.org>

	* app/tools/gimpposterizetool.c (gimp_posterize_tool_register):
	fixed typo.
2002-08-27 14:57:41 +00:00
Michael Natterer f5cb0cbd59 if a dialog constructor fails to return a GimpDockable, destroy the dock
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdialogfactory.c: if a dialog constructor fails
	to return a GimpDockable, destroy the dock we created for the
	dockable instead of leaking it. Cleanup.
2002-08-27 14:53:15 +00:00
Michael Natterer d8088f9996 g_strdup(entry->help_path) if static_entry == FALSE.
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpitemfactory.c: g_strdup(entry->help_path) if
	static_entry == FALSE.

	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c
	* app/gui/plug-in-menus.c: free the help string after adding
	a menu item with static_entry == FALSE.
2002-08-27 14:45:05 +00:00
Michael Natterer 7b359896d5 changed the default text to "No, you can't change this text. Please DON'T
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptexttool.c: changed the default text to
	"No, you can't change this text. Please DON'T report this bug."
2002-08-27 14:35:18 +00:00
Michael Natterer 21ae8245bc removed #defines and added enum CurvesType instead.
2002-08-27  Michael Natterer  <mitch@gimp.org>

	* app/base/curves.h: removed #defines and added enum CurvesType
	instead.

	* app/core/gimpchannel.c: use TRANSPARENT_OPACITY and
	OPAQUE_OPACITY instead of 0 and 255.

	* app/core/gimplayer.c (gimp_layer_create_mask): fixed inverse
	layer mask creation by setting GIMP_CHANNEL(mask)->bounds_known to
	FALSE correctly (fixes #90982). Also optimized mask creation
	by calling gimp_channel_all() and gimp_channel_clear() for
	white and black masks.
2002-08-27 14:17:46 +00:00
Sven Neumann 1806e66f9b app/gui/menus.c added a menu entry that toggles the QuickMask state and
2002-08-27  Sven Neumann  <sven@gimp.org>

	* app/gui/menus.c
	* app/gui/select-commands.[ch]: added a menu entry that toggles
	the QuickMask state and bound Shift-Q to it (bug #86580).
2002-08-27 13:29:47 +00:00
Sven Neumann 8aad2160ba oops, forgot to commit the ChangeLog entry yesterday 2002-08-27 06:29:17 +00:00
Sven Neumann eab1d05e15 call 'libtoolize --version' instead of libtool.
2002-08-27  Sven Neumann  <sven@gimp.org>

	* autogen.sh: call 'libtoolize --version' instead of libtool.
2002-08-26 22:25:53 +00:00
Sven Neumann 60ff66f624 changed dialog name as suggested in bug-report #88905 and did some code
2002-08-26  Sven Neumann  <sven@gimp.org>

        * plug-ins/sel2path/sel2path.c: changed dialog name as suggested
        in bug-report #88905 and did some code cleanup while I was at it.
2002-08-26 20:11:22 +00:00
Ole Laursen 427b29d07c Updated Danish translation.
2002-08-26  Ole Laursen  <olau@hardworking.dk>

	* da.po: Updated Danish translation.
2002-08-26 14:23:38 +00:00
Michael Natterer 1186e83a28 Color correction tool chopping:
2002-08-26  Michael Natterer  <mitch@gimp.org>

	Color correction tool chopping:

	* app/Makefile.am
	* app/image_map.[ch]: removed...

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimpimagemap.[ch]: ...and added here as object.

	* app/base/Makefile.am
	* app/base/base-types.h
	* app/base/color-balance.[ch]
	* app/base/curves.[ch]
	* app/base/hue-saturation.[ch]
	* app/base/threshold.[ch]: the lowlevel color correction functions
	plus their parameter structs cut out of the resp. tools.

	* app/core/core-enums.[ch]: removed GimpTransferMode enum...

	* app/base/base-enums.[ch]: ...added it here. Also added
	GimpHueRange for the new hue-saturation files.

	* tools/pdbgen/enums.pl
	* libgimp/gimpenums.h
	* plug-ins/script-fu/script-fu-constants.c: regenerated.

	* app/tools/Makefile.am
	* app/tools/gimpcolorbalancetool-transfer.c: removed (code went
	to base/color-balance.c).

	* app/tools/gimpimagemaptool.[ch]: added most code which was
	diplicated in subclasses. Create the dialog here with a nice title
	bar including image preview and name (fixes #66033). Added virtual
	functions map(), dialog() and reset() which need to be implemented
	by subclasses.

	* app/tools/gimpbrightnesscontrasttool.[ch]
	* app/tools/gimpcolorbalancetool.[ch]
	* app/tools/gimpcurvestool.[ch]
	* app/tools/gimphuesaturationtool.[ch]
	* app/tools/gimplevelstool.[ch]
	* app/tools/gimpposterizetool.[ch]
	* app/tools/gimpthresholdtool.[ch]: removed tons of duplicated
	code and simply implement GimpImageMapTool's virtual functions.
	Removed all dialog structs and keep the variables in the tool
	structs. The dialogs are now created on-the-fly and destroyed when
	the tool goes away, which makes all callbacks much simpler and
	safer. Lots of GUI & code cleanup in all dialogs.

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c: added separate "Reset Channel"
	buttons and let the global "Reset" buttons reset all color
	channels.

	* app/tools/tools.c: the various antique foo_free() functions
	don't exist any more.

	* app/tools/gimphistogramtool.c: removed ImageMap field from
	dialog struct (it was unused). Cleaned up dialog a bit.

	* tools/pdbgen/Makefile.am: don't scan tools/gimphuesaturationtool.h
	for enums.

	* tools/pdbgen/pdb/color.pdb: use the new stuff from base/ and
	don't include stuff from tools/ any more.

	* app/pdb/color_cmds.c
	* app/pdb/paint_tools_cmds.c: regenerated.
2002-08-26 11:35:56 +00:00
Duarte Loreto a7a2bc2b20 Updated Portuguese translation.
2002-08-25  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.
2002-08-25 22:40:03 +00:00
Sven Neumann 06f35cca7a allow radius < 1.0 (bug #90957).
2002-08-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sel_gauss.c: allow radius < 1.0 (bug #90957).
2002-08-24 23:52:14 +00:00
Sven Neumann efca6c33c5 added missing file. Updated german translation.
2002-08-24  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: added missing file.
	* de.po: Updated german translation.
2002-08-24 13:23:04 +00:00
Christian Rose a8b519030b Updated Swedish translation.
2002-08-23  Christian Rose  <menthos@menthos.com>

	* sv.po: Updated Swedish translation.
2002-08-23 09:57:15 +00:00
Michael Natterer b8f363db4f a nicer tab for the selection dialog.
2002-08-22  Michael Natterer  <mitch@gimp.org>

	* app/gui/dialogs-constructors.c: a nicer tab for the selection
	dialog.
2002-08-22 19:11:41 +00:00
Michael Natterer 464f61829a themes/Default/images/stock-all-16.png
2002-08-22  Michael Natterer  <mitch@gimp.org>

	* themes/Default/images/stock-all-16.png
	* themes/Default/images/stock-none-16.png
	* themes/Default/images/stock-grow-16.png
	* themes/Default/images/stock-shrink-16.png: new icons from Jimmac.

	* themes/Default/images/Makefile.am
	* themes/Default/imagerc
	* libgimpwidgets/gimpstock.[ch]: added them to the stock system.

	* app/gui/menus.c: use them.

	* app/widgets/gimpselectioneditor.[ch]: use the icons and added
	a "Save to Channel" button.
2002-08-22 16:24:44 +00:00
Sven Neumann 48e27f1d51 tools/pdbgen/pdb/gimprc.pdb don't leak the result of
2002-08-22  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/gimprc.pdb
	* app/pdb/gimprc_cmds.c (gimprc_query_invoker): don't leak the
	result of gimprc_value_to_str().

	* app/core/gimpdrawable-preview.c (gimp_drawable_preview_scale):
	use g_new0() instead of g_new() followed by memset().

	* plug-ins/script-fu/script-fu-server.c (server_log): free the
	string after logging it.
2002-08-22 15:16:36 +00:00
Michael Natterer 2314302c0a unref the paint info objects after adding them to their container.
2002-08-22  Michael Natterer  <mitch@gimp.org>

	* app/paint/paint.c: unref the paint info objects after adding
	them to their container.

	* app/widgets/toolbox.c: free the tooltip string after setting it.

	* app/gui/session.c: spit out the correct warning if (position x y)
	could not be parsed.
2002-08-22 14:48:28 +00:00
Michael Natterer e62c2c58c7 bumped version number to 1.3.9
2002-08-22  Michael Natterer  <mitch@gimp.org>

	* configure.in: bumped version number to 1.3.9

	* app/tools/gimpbycolorselecttool.[ch]: removed the ByColorDialog
	and cleaned up the code.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpselectioneditor.[ch]: added new widget
	GimpSelectionEditor with same same functionality as the old
	ByColorDialog which can be open all the time (independent of the
	active tool).

	* app/widgets/gimppreview.[ch]: added gimp_preview_new_by_type()
	so previews can be created without a viewable.

	* app/widgets/gimppreview-utils.[ch]: changed
	gimp_preview_type_from_viewable() to
	gimp_preview_type_from_viewable_type().

	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs.c
	* app/gui/menus.c: register the new dialog type.
2002-08-22 12:49:01 +00:00
Michael Natterer c2523d8d63 compress emissions of "mask_changed" and "qmask_changed" across undo
2002-08-22  Michael Natterer  <mitch@gimp.org>

	* app/undo.c: compress emissions of "mask_changed" and
	"qmask_changed" across undo groups.

	* app/core/gimpimage-mask.c: set GIMP_DRAWABLE(mask)->preview_valid
	to FALSE in gimp_image_mask_invalidate(), not in
	gimp_image_mask_push_undo(). Fixes selection preview rendering
	after a mask undo.
2002-08-22 10:40:11 +00:00