Commit graph

46 commits

Author SHA1 Message Date
Manish Singh f6fb0ffff8 gimp_main now takes a GimpPlugInInfo *, and PLUG_IN_INFO is now a static
2003-05-23  Manish Singh  <yosh@gimp.org>

        * libgimp/gimp.[ch]: gimp_main now takes a GimpPlugInInfo *,
        and PLUG_IN_INFO is now a static variable set from that. This
        removes all the special casing for the Win32 and OS/2 ports around
        this. Also added a debugging hook for quit procs.

        * plug-ins/common/mng.c: moved MAIN() to the end so PLUG_IN_INFO is
        declared.

        * plug-ins/gimpressionist/gimpressionist.c: pass &PLUG_IN_INFO
        to gimp_main.

        * plug-ins/pygimp/gimpmodule.c: Here too. Also add a message
        function.
2003-05-23 23:34:13 +00:00
Sven Neumann 5e11bae69b fixed parasite serialization that I broke yesterday.
2003-03-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpparasitelist.c: fixed parasite serialization that
	I broke yesterday.

	* app/widgets/gimpenummenu.c: added support for mnemonics.

	* app/core/core-enums.h: removed the inverted variants from the
	GimpAddMaskType enum. Registered the enum with the type system.

	* app/core/gimplayer.c: changed accordingly.

	* app/gui/layers-commands.c (layers_add_mask_query): use an enum
	frame and added a check button that allows to invert the inital
	layer mask.

	* tools/pdbgen/pdb/layer.pdb: updated documentation for the
	gimp-layer-create-mask PDB function.

	* plug-ins/script-fu/siod-wrapper.c: removed new enum values from
	the compatibility defines.

	* app/core/core-enums.c
	* app/pdb/layer_cmds.c
	* libgimp/gimpenums.h
	* libgimp/gimplayer_pdb.c
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.
2003-03-06 13:22:11 +00:00
Manish Singh e7809f046a make clean shouldn't clean disted files
2003-02-27  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/doc/Makefile.am: make clean shouldn't clean disted
        files
2003-02-28 01:21:27 +00:00
Michael Natterer 933e52adbd changed GimpOrientationType from GIMP_HORIZONTAL to
2003-02-09  Michael Natterer  <mitch@convergence.de>

	* app/core/core-enums.[ch]: changed GimpOrientationType from
	GIMP_HORIZONTAL to GIMP_ORIENTATION_HORIZONTAL etc.

	* tools/pdbgen/pdb/guides.pdb: changed accordingly. Don't subtract
	1 from guide->orientation because InternalOrientationType no
	longer exists.

	* tools/pdbgen/stddefs.pl: chop the whole GIMP_ORIENTATION_UNKNOWN
	value from the enum, not just UNKNOWN.

	* app/pdb/guides_cmds.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimpenums.h
	* libgimp/gimpguides_pdb.c
	* plug-ins/script-fu/script-fu-constants.c
	* plug-ins/pygimp/gimpenums.py
	* tools/pdbgen/enums.pl: regenerated.

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

	* plug-ins/imagemap/imap_cmd_gimp_guides.c
	* plug-ins/xjt/xjt.c
	* plug-ins/xjt/xpdb_calls.c
	* plug-ins/common/gih.c
	* plug-ins/common/guillotine.c
	* plug-ins/common/rotate.c: changed accordingly.
2003-02-09 21:03:36 +00:00
Manish Singh f8861444f9 use dialog.run() for sub dialogs, since the main dialog is also doing
2003-02-08  Manish Singh  <yosh@gimp.org>

        * gimpui.py: use dialog.run() for sub dialogs, since the main dialog
        is also doing that. This does break consistency with the rest of
        gimp, but will do for now. I wish there was a similar API that didn't
        set the dialog modal. Fixed brush and pattern list to use the new
        PDB names. Also make the filesel really have a title of "Files"

        * gimpshelf.py: minor clean up, use cStringIO if available

        * gimpfu.py: add support for Load/Save plug-ins. Use GtkImage
        instead of deprecated GtkPixmap.

        * gimpenums.py: regenerated

        * plug-ins/Makefile.am
        * plug-ins/colorhtml.py: the return of colorhtml to 1.3
2003-02-08 19:36:00 +00:00
Manish Singh 6423b26881 import gtkcons only when we're about to use it. This and below allows
2003-01-08  Manish Singh  <yosh@gimp.org>

        * plug-ins/gimpcons.py: import gtkcons only when we're about to use
        it. This and below allows plug-in query to work even without an
        interface.

        * plug-ins/pdbbrowse.py: define BrowseWin (which needs gtk) only
        when we need it and are guaranteed a gui setup.
2003-01-08 23:44:08 +00:00
Manish Singh 01dbd2c339 cleanup, removed unecessary G_OBJECT() casts.
2003-01-06  Manish Singh  <yosh@gimp.org>

        * lots of files in plug-ins: cleanup, removed unecessary
        G_OBJECT() casts.
2003-01-07 06:16:02 +00:00
Manish Singh 2bb5acc246 added some rudimentary support to prepend values to existing environment
2002-12-17  Manish Singh  <yosh@gimp.org>

        * app/core/gimpenvirontable.[ch]: added some rudimentary support
        to prepend values to existing environment variables. You can do
        "separator name=value" now. API change to gimp_environ_table_add
        for it too. Also added some error checking.

        * app/gui/gui.c: change to new above API

        * plug-ins/pygimp/Makefile.am: write ": PYTHONPATH=" out to env
        file

        * po/POTFILES.in: add gimpenvirontable.c
2002-12-18 02:47:39 +00:00
Manish Singh 2eef2afbc1 don't say "Now type 'make'" if configure failed.
2002-11-11  Manish Singh  <yosh@gimp.org>

        * autogen.sh: don't say "Now type 'make'" if configure failed.

        * app/core/Makefile.am
        * app/core/core-types.h
        * app/core/gimpenvirontable.[ch]: Implemented GimpEnvironTable,
        keeps an envp array built from system environment and *.env files.

        * app/core/gimp.[ch]: keep a GimpEnvironTable around.

        * app/gimprc.c
        * app/config/gimpcoreconfig.[ch]
        * app/core/gimpcoreconfig.h
        * app/gui/preferences-dialog.c
        * app/gui/user-install-dialog.c: environ-path config stuff

        * themes/Default/images/preferences/Makefile.am
        * themes/Default/images/preferences/folder-environ.png: just copied
        folder.png here, need a better one.

        * app/plug-in/plug-in.c: quick hack to use the envp in the
        GimpEnvironTable. Only on unix now, should really port the
        code to use g_spawn_*.

        * data/misc/user_install
        * etc/gimprc.in: add environ-path stuff

        * data/environ/Makefile: creates system environ directory.

        * data/environ/default.env: sample env file info.

        * data/Makefile.am
        * configure.in: added data/environ dir

        * plug-ins/pygimp/Makefile.am: python module files get put in
        $(gimpplugindir)/python now, install pygimp.env to point to it.

        * plug-ins/pygimp/doc/Makefile.am: minor clean up.
2002-11-12 03:34:11 +00:00
Sven Neumann 2368c1f38e added missing file (#98034).
2002-11-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/Makefile.am (EXTRA_DIST): added missing file (#98034).
2002-11-08 17:06:45 +00:00
James Henstridge ed2dac22b5 (_interact): swap order of buttons to match other dialogs. 2002-08-31 01:47:22 +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 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
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
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
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 1cd6fcc19c libgimp/.cvsignore libgimp/Makefile.am libgimp/gimp.h removed
2001-05-22  Michael Natterer  <mitch@gimp.org>

	* libgimp/.cvsignore
	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimpfeatures.h.in: removed gimpfeatures.h

	* libgimpbase/.cvsignore
	* libgimpbase/Makefile.am
	* libgimpbase/gimpbase.h
	* libgimpbase/gimpbasetypes.h
	* libgimpbase/gimpversion.h.in: and added it as gimpversion.h

	* configure.in: changed accordingly.

	* app/app_procs.c
	* app/main.c
	* app/gui/about-dialog.c
	* app/gui/splash.c
	* app/pdb/misc_cmds.c
	* tools/pdbgen/pdb/misc.pdb: fixed includes.

	* plug-ins/bmp/bmpread.c
	* plug-ins/bmp/bmpwrite.c
	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/newsprint.c
	* plug-ins/common/ps.c
	* plug-ins/common/tiff.c
	* plug-ins/gdyntext/gdyntextcompat.h
	* plug-ins/gimpressionist/gimpressionist.c
	* plug-ins/perl/Gimp.xs
	* plug-ins/perl/Gimp/Lib.xs
	* plug-ins/pygimp/gimpmodule.c
	* tools/gimp-remote.c: removed all #ifdef GIMP_HAVE_BLAH
	conditionals as they are broken anyway since we changed all
	plug-ins with perl scripts shortly before 1.2. Also, refering to
	intermediate unstable releases is evil.
2001-05-22 00:36:38 +00:00
Kevin Turner ecddfcb9c7 use correct type for enums.
* plug-ins/pygimp/gimpmodule.c (newpfobject): use correct type for
  enums.

* plug-ins/pygimp/plug-ins/gtkcons.py (Console.run): set _ after
  evaluating a statement, so _ may be used as it is in the python
  interpreter.

If I keep this up, I may actually learn Python.
2000-09-24 00:52:29 +00:00
Kevin Turner 7493742149 Oops. When we did s/PARAM_/PDB_/, we forgot to do s/6/4/ (the length of
* plug-ins/pdbbrowse.py (pars): Oops.  When we did
s/PARAM_/PDB_/, we forgot to do s/6/4/ (the length
of the prefix changed).

* gimpmodule.c: Filter this through remove_cruft,
finishing the libgimp renaming (and further ensuring
that it won't work with older libgimps).
2000-09-20 21:19:35 +00:00
Kevin Turner 1eba6e7b72 This file now autogenerated by tools/pdbgen/enumcode.pl
2000-08-10  Kevin Turner  <acapnotic@users.sourceforge.net>

	* plug-ins/pygimp/gimpenums.py: This file now autogenerated by
	tools/pdbgen/enumcode.pl

	* plug-ins/pygimp/gimpfu.py:
	* plug-ins/pygimp/gimpmodule.c: renaming fixes for libgimp 1.2

	* plug-ins/pygimp/plug-ins/pdbbrowse.py (pars): s/PARAM_/PDB_/
2000-08-10 20:17:21 +00:00
Kevin Turner 4c33487b46 This file now autogenerated by tools/pdbgen/enumcode.pl
* gimpenums.py: This file now autogenerated by
	tools/pdbgen/enumcode.pl

	* gimpfu.py:
	* gimpmodule.c: renaming fixes for libgimp 1.2

	* plug-ins/pdbbrowse.py (pars): s/PARAM_/PDB_/
2000-08-10 20:14:55 +00:00
Kevin Turner 1161b7fd43 under "layer", remove the call to gimp_channel_get_layer_id() as this
2000-08-09  Kevin Turner  <acapnotic@users.sourceforge.net>

	* plug-ins/pygimp/gimpmodule.c (chn_getattr): under "layer",
	remove the call to gimp_channel_get_layer_id() as this function
	does not exist.  It would be well for someone who knows pygimp
	better than I to review this change, but it keeps pygimp from
	being *completely* broken.
2000-08-10 05:13:35 +00:00
Kevin Turner 47d742cce9 under "layer", remove the call to gimp_channel_get_layer_id() as this
* gimpmodule.c (chn_getattr): under "layer", remove the call to
	gimp_channel_get_layer_id() as this function does not exist.  It
	would be well for someone who knows pygimp better than I to review
	this change, but it keeps pygimp from being *completely* broken.
2000-08-10 05:07:17 +00:00
Michael Natterer 95ccd16f0c forgot to commit this last weekend :)
2000-08-04  Michael Natterer  <mitch@gimp.org>
	    Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.h
	* libgimp/gimpcompat.h
	* plug-ins/common/curve_bend.c
	* plug-ins/common/plugindetails.c
	* plug-ins/dbbrowser/dbbrowser_utils.c
	* plug-ins/gap/gap_dbbrowser_utils.c
	* plug-ins/gap/gap_filter_codegen.c
	* plug-ins/gap/gap_filter_pdb.c
	* plug-ins/gap/gap_pdb_calls.c
	* plug-ins/maze/maze_face.c
	* plug-ins/pygimp/gimpmodule.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/xjt/xpdb_calls.c: removed COMPAT_CRUFT
2000-08-07 21:30:35 +00:00
Michael Natterer 1590cecfe1 s/gimp_plugin_help_func/gimp_standard_help_func/
2000-05-22  Michael Natterer  <mitch@gimp.org>

	* plug-ins/*: s/gimp_plugin_help_func/gimp_standard_help_func/

	Coincidentially, my script also removed empty lines from the end
	of _all_ *.c file (not only from those which contained
	gimp_plugin_help_func).
2000-05-22 17:10:28 +00:00
Sven Neumann f0643302c6 applied a patch from Simon which adapts the pygimp scripts to the new
gimp_edit_fill() interface


--Sven
2000-03-25 01:02:00 +00:00
Sven Neumann 24bbdbef07 applied a bunch of patches:
Simon Budigs patch sent to the list Sun, 20 Feb 2000
gimp-kirchgessner-000217-0
gimp-cosmin-20000212
gimp-mattias-000227-0


--Sven
2000-03-10 17:27:25 +00:00
Tor Lillqvist e8914730c6 Add build setup for modules like Gimp-Python.
* plug-ins/makefile.{cygwin,msc}: Add build setup for modules like
Gimp-Python.

* plug-ins/pygimp/gimpmodule.c: Change NATIVE_WIN32 to G_OS_WIN32.
2000-01-04 18:09:51 +00:00
James Henstridge 36fb075f99 updated documentation.
1999-11-11  James Henstridge  <james@daa.com.au>

	* doc/pygimp.sgml: updated documentation.

	* gimpmodule.c: applied patches from Hans Breuer to fix portability
	problems and also win32 compatibility.

	(lay_getattr): take is_rgb as a synonym for is_color/is_colour.
	(drw_parasite_attach):
	(drw_parasite_detach): change to new naming scheme.
	(img_parasite_attach):
	(img_parasite_detach): same here.
	(gimp_Parasite_find):
	(gimp_Parasite_attach):
	(gimp_Parasite_detach): same here.
	(chn_getattr): added is_rgb as a synonym for is_colour, and
	is_layer_mask as a synonym for layer_mask.
1999-11-11 14:21:23 +00:00
Marc Lehmann b2773c790e pdb renames 1999-10-27 20:23:04 +00:00
Marc Lehmann 88e0cc3155 api change #2, fix #1 1999-10-24 20:49:09 +00:00
Marc Lehmann ec40ac728b API PATCH #2 or so 1999-10-17 00:07:55 +00:00
Olof S Kylander/GIMP 267633fa89 fix of enum error in pygimp
fix of enum error in pygimp
1999-09-11 15:01:02 +00:00
Manish Singh 09ffd828c9 1.1.9 stuff
-Yosh
1999-09-10 05:16:23 +00:00
James Henstridge 6b5f967d0c conditionally compile pygimp.
1999-09-06  James Henstridge  <james@daa.com.au>

	* plug-ins/Makefile.am: conditionally compile pygimp.

	* configure.in: added in macros for pygimp.  You must pass
	--enable-python to configure for it to even consider checking for
	python at the moment.

	* acinclude.m4: added python detection macros.
1999-09-06 03:45:34 +00:00
James Henstridge 910e7cb689 added pygimp to tree, as organised with Marc Lehmann. I have not hooked it
1999-09-05  James Henstridge  <james@daa.com.au>

	* plug-ins/pygimp/*: added pygimp to tree, as organised with Marc
	Lehmann.  I have not hooked it into the main makefile yet.  That
	should not be difficult though.
1999-09-05 15:46:57 +00:00