Commit graph

7365 commits

Author SHA1 Message Date
Michael Natterer 003062dec4 HIG compliance: changed "Save a Copy as..." to "Save a Copy...".
2002-09-01  Michael Natterer  <mitch@gimp.org>

	* app/gui/menus.c: HIG compliance: changed "Save a Copy as..."
	to "Save a Copy...".

	* app/gui/file-dialog-utils.c
	* app/display/gimpdisplayshell.c: changed accordingly.
2002-09-01 07:30:27 +00:00
Michael Natterer f4e1ec9734 Refcount layer masks correctly. Fixes layer mask undo.
2002-09-01  Michael Natterer  <mitch@gimp.org>

	Refcount layer masks correctly. Fixes layer mask undo.

	* app/core/gimplayer.c (gimp_layer_add_mask): ref the mask.

	* app/xcf/xcf-load.c
	* app/gui/layers-commands.c
	* tools/pdbgen/pdb/image.pdb: unref layer masks after adding them.

	* app/pdb/image_cmds.c: regenerated.
2002-09-01 07:25:41 +00:00
Christian Neumair 47f91a51eb Updated German translation. 2002-08-31 15:37:25 +00:00
Christian Neumair 50e5e0c895 Updated German translation. 2002-08-31 14:17:43 +00:00
James Henstridge ed2dac22b5 (_interact): swap order of buttons to match other dialogs. 2002-08-31 01:47:22 +00:00
Michael Natterer cc3bdec2c9 app/widgets/Makefile.am app/widgets/widgets-types.h new dialog widget
2002-08-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpviewabledialog.[ch]: new dialog widget featuring
	a title bar containing a stock icon, a description, the viewable's
	name and a preview. Will be used for all viewable related dialogs
	and serves as a common place to control their look & feel.

	* app/tools/gimpimagemaptool.[ch]: removed the code which did
	almost the same and use GimpViewableDialog.

	* app/gui/info-dialog.[ch]: extended the API so it has enough
	information to create a GimpViewableDialog.

	* app/gui/channels-commands.c
	* app/gui/convert-dialog.c
	* app/gui/gradient-editor-commands.c
	* app/gui/image-commands.c
	* app/gui/info-window.c
	* app/gui/layers-commands.c
	* app/gui/offset-dialog.c
	* app/gui/qmask-commands.c
	* app/gui/resize-dialog.c
	* app/gui/vectors-commands.c
	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimphistogramtool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c: use GimpViewableDialogs

	* themes/Default/gtkrc: apply the dialog style to "*Gimp*Dialog*",
	not only "*GimpDialog*" so it covers GimpViewableDialog.
2002-08-30 21:00:42 +00:00
James Henstridge 77934d6804 oops. forgot to save last change to gimpfu.py before committing ... 2002-08-30 17:10:34 +00:00
James Henstridge d6b394e1de add PF_RADIO support to gimpfu based on Yosh's patch.
2002-08-31  James Henstridge  <james@daa.com.au>

    * gimpfu.py (RadioEntry): add PF_RADIO support to gimpfu based on
    Yosh's patch.
2002-08-30 17:09:13 +00:00
James Henstridge dd87d9f127 handle GIMP_PDB_COLOR correctly. This fixes
2002-08-31  James Henstridge  <james@daa.com.au>

    * libgimp/gimp.c (gimp_run_procedure): handle GIMP_PDB_COLOR
    correctly.  This fixes gimp_palette_set_{back,fore}ground.
2002-08-30 17:05:37 +00:00
James Henstridge fe65e90a5f some plugin fixes. 2002-08-30 15:25:51 +00:00
James Henstridge e7d1c4fa91 update to list all methods. Convert no arg functions to METH_NOARG (slight
2002-08-30  James Henstridge  <james@daa.com.au>

    * pygimp-*.c: update to list all methods.  Convert no arg
    functions to METH_NOARG (slight code size reduction).
2002-08-30 15:00:00 +00:00
James Henstridge 29aa6f5037 add getsets for common drawable attributes. (PyGimpLayer_Type): convert
2002-08-30  James Henstridge  <james@daa.com.au>

    * pygimp-drawable.c (PyGimpDrawable_Type): add getsets for common
    drawable attributes.
    (PyGimpLayer_Type): convert getattr and setattr to getsets.
    (PyGimpChannel_Type): convert to getsets.

    * gimpmodule.c (new_parasite): remove.  Superceded by
    gimp.Parasite constructor.
    (pygimp_image_list): rename to match actual API.

    * pygimp-parasite.c (PyGimpParasite_Type): switch to getsets.
    (para_init): add constructor.
2002-08-30 12:46:27 +00:00
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