2007-08-11 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpbaseenums.[ch]
* libgimpbase/gimpenv.[ch]: changed enum GimpUserDirectory and API
of gimp_user_directory() so that g_get_user_special_dir() can be
used instead as soon as we depend on GLib 2.14.
* tools/pdbgen/enums.pl: regenerated.
* app/widgets/gimpfiledialog.c
* plug-ins/pygimp/gimpmodule.c: changed accordingly.
svn path=/trunk/; revision=23212
2006-11-28 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-api.h
* plug-ins/pygimp/pygimp.h
* plug-ins/pygimp/gimpmodule.c: export common object types via
_PyGimp_API, and remove the PDBFunction_Type hack. Also define
the common object structures here.
* plug-ins/pygimp/pygimp.h: remove hack for Python < 2.3, since
we require Python 2.3 now.
* plug-ins/pygimp/gimpui.override
* plug-ins/pygimp/gimpui.py: create and use specialized wrappers
for get/set_active methods for GimpIntComboBox and derived types.
Fixes#376102.
2006-11-24 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-vectors.c: bezier_stroke_new_moveto and
bezier_stroke_new_ellipse are now class methods of
VectorsBezierStroke.
* plug-ins/pygimp/gimpmodule.c: vectors import now has better
error handling and cleanup. Also stick VectorsBezierStroke in
the gimp namespace so the class is available for constructing.
2006-11-23 Simon Budig <simon@gimp.org>
* plug-ins/pygimp/gimpmodule.c: follow the function renaming
as well. Why didn't this complain when I compiled earlier?
2006-11-07 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpmodule.c: added context_push() and
context_pop() methods to the gimp module.
* plug-ins/pygimp/plug-ins/sphere.py: use them.
2006-10-27 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-vectors.c: wrap
gimp_vectors_stroke_new_from_points in the form of a
VectorsBezierStroke constructor.
* plug-ins/pygimp/gimpmodule.c: wrap gimp_vectors_new_from_file
and gimp_vectors_new_from_string.
* plug-ins/pygimp/pygimp-pdb.c: PDB_VECTORS should be translated
into Vectors objects.
2006-10-20 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/procbrowser.c: use pygimp_init_pygobject here too.
Report and patch from Eric Lamarque (fixes bug #363516).
2006-09-15 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpmodule.c: added domain_register method.
* plug-ins/pygimp/gimpfu.py: define N_(). Added an optional
"domain" parameter to the register() method. Register the domain
with GIMP and initialize gettext if it is specified.
* plug-ins/pygimp/plug-ins/gimpcons.py: use N_() to mark menu
label and blurb for translation. Specify the translation domain.
* plug-ins/pygimp/plug-ins/gtkcons.py: use gettext API for modules.
2006-09-15 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/Makefile.am
* plug-ins/pygimp/pygimp-intl.h: added header file for i18n support.
* plug-ins/pygimp/gimpmodule.c: bind to the gimp20-python
translation domain.
* plug-ins/pygimp/procbrowser.c: marked a string for translation.
2006-07-19 Manish Singh <yosh@gimp.org>
This is the start of wrapping much more of the GIMP API in Python.
It's not complete yet, some things are broken.
* plug-ins/pygimp/gimpcolormodule.c
* plug-ins/pygimp/pygimpcolor.h
* plug-ins/pygimp/pygimpcolor-api.h
* plug-ins/pygimp/pygimp-colors.c: wrapped GimpHSV, GimpHSL, and
GimpCMYK. Fleshed out a bit more of GimpRGB as well. Made the API
exportable to other modules.
* plug-ins/pygimp/pygimp-rgb.c: removed, subsumed into
pygimp-colors.c.
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-drawable.c
* plug-ins/pygimp/pygimp-pdb.c: PDB calls receive and create
gimpcolor.RGB objects now.
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-api.h: export pygimp_drawable_new.
* plug-ins/pygimp/gimpcolor-types.defs
* plug-ins/pygimp/gimpenums-types.defs
* plug-ins/pygimp/gimpui.defs
* plug-ins/pygimp/gimpui.override
* plug-ins/pygimp/gimpuimodule.c: new module for GIMP UI widget
bindings.
* plug-ins/pygimp/gimpui.py
* plug-ins/pygimp/gimpfu.py: use some of the new widgets.
* plug-ins/pygimp/Makefile.am: hook all the above into the build
system.
* plug-ins/pygimp/plug-ins/palette-sort.py: use new color API.
2005-07-17 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-drawable.c: revert to old behavior of
parasite_find functions returning None when there isn't a parasite
found. Fixed bug #310666.
2005-06-03 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-api.h
* plug-ins/pygimp/gimpmodule.c: export our API to other modules
in a saner fashion. Also add checks_get_shades method.
* plug-ins/pygimp/procbrowser.c: Use new export API.
* plug-ins/pygimp/pygimp-drawable.c (drw_mask_intersect):
use Py_BuildValue to build the tuple.
* plug-ins/pygimp/pygimp-image.c (img_repr): capitalization fix.
* plug-ins/pygimp/pygimp-rgb.c
* plug-ins/pygimp/pygimpcolor.h
* plug-ins/pygimp/gimpcolormodule.c: beginnings of a wrapper to
libgimpcolor.
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/gimpenums.py
* plug-ins/pygimp/gimpenumsmodule.c: use gimp enum API to find out
our enums.
* plug-ins/pygimp/Makefile.am: hook in all of the above.
2005-05-28 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/procbrowser.c: use DL_EXPORT for the init functions,
maybe this will help Win32 builds. Also some minor cleanups.
2005-03-04 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c: wrap fonts_refresh and fonts_get_list,
clean up some of the other resource list plugins.
* plug-ins/pygimp/pygimp-drawable.c: more keyword args and better
exception messages.
* plug-ins/pygimp/pygimp-parasite.c: support keyword args for
parasite constructor.
2005-03-03 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp.h: Make a compatibility wrapper for
PyBool_FromLong for pre-2.3 versions of python.
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/gimpui.py: Update to use some more modern python
features.
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-display.c
* plug-ins/pygimp/pygimp-drawable.c
* plug-ins/pygimp/pygimp-image.c
* plug-ins/pygimp/pygimp-parasite.c
* plug-ins/pygimp/pygimp-pdb.c
* plug-ins/pygimp/pygimp-tile.c: Throw exceptions on failures for
libgimp wrappers (fixes bug #160136), and make the exception strings
a lot more descriptive to aid debugging. Also return proper Bools when
appropriate. Some new API wrapped as well. Still a work in progress.
* plug-ins/pygimp/gimpplugin.py
* plug-ins/pygimp/gimpshelf.py
* plug-ins/pygimp/plug-ins/clothify.py
* plug-ins/pygimp/plug-ins/foggify.py
* plug-ins/pygimp/plug-ins/sphere.py: Add some whitespace to make
things more readable.
2004-11-17 Manish Singh <yosh@gimp.org>
* plug-ins/dbbrowser/Makefile.am: make libgimpprocbrowser a libtooled
library.
* plug-ins/dbbrowser/gimpprocbrowser.[ch]: add a user_data pointer
for GimpProcBrowserApplyCallback.
* plug-ins/dbbrowser/gimpprocbrowser.c: only convert the name to
scheme style if scheme_names in the proc info pane too.
* plug-ins/dbbrowser/procedure-browser.c
* plug-ins/script-fu/script-fu-console.c: pass NULL as user_data.
* plug-ins/script-fu/Makefile.am: reference libgimpprocbrowser.la.
* plug-ins/pygimp/Makefile.am
* plug-ins/pygimp/procbrowser.c: new module, which wraps
libgimprocbrowser.
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp.h
* plug-ins/pygimp/pygimp-pdb.c: export GimpPDBFunction so other
modules can use it.
* plug-ins/pygimp/plug-ins/pdbbrowse.py
* plug-ins/pygimp/plug-ins/gimpcons.py: use gimpprocbrowser.
2004-11-16 Manish Singh <yosh@gimp.org>
* configure.in:
* plug-ins/pygimp/Makefile.am: Compile pygimp with
-fno-strict-aliasing if the compiler supports it.
* plug-ins/pygimp/gimpui.py: Make "..." into "Browse..." for
everything but the filesel, for slightly more consistency with
script-fu. Addresses #124791.
* plug-ins/pygimp/gimpmodule.c: Wrapped
gimp_context_{get,set}_gradient and
gimp_gradient_get_{uniform,custom}_samples. Deprecated the deprecated
versions of these, and rewrote them in terms of the new functions.
2004-09-01 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/gimpmodule.c: Hacked up support for the new
progress interface. Emphasis on hacked.
* plug-ins/pygimp/gimpmodule.c: Wrapped gimp_extension_enable(). Minor
cleanups.
* plug-ins/pygimp/pygimp-image.c
* plug-ins/pygimp/pygimp-tile.c: Minor cleanups.
2003-12-03 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-drawable.c
* plug-ins/pygimp/pygimp-image.c
* plug-ins/pygimp/pygimp-pdb.c
* plug-ins/pygimp/pygimp-tile.c: some cosmetic changes to error
messages.
* plug-ins/pygimp/pygimp-drawable.c: accessors for name, tattoo, and
visible live in the drawable class now, so layer and channel objects
inherit it.
2003-09-04 Sven Neumann <sven@gimp.org>
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpcontainer-filter.[ch]: added filter functionality
for GimpContainers.
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/fonts.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/patterns.pdb: made the gimp_foo_get_list()
PDB function somewhat useful by adding a filter parameter that
allows to specify a regular expression to be used on the list.
* app/pdb/Makefile.am: had to uglify the ugly hack even more :(
* app/pdb/brushes_cmds.c
* app/pdb/fonts_cmds.c
* app/pdb/gradients_cmds.c
* app/pdb/palettes_cmds.c
* app/pdb/patterns_cmds.c
* libgimp/gimpbrushes_pdb.[ch]
* libgimp/gimpfonts_pdb.[ch]
* libgimp/gimpgradients_pdb.[ch]
* libgimp/gimppalettes_pdb.[ch]
* libgimp/gimppatterns_pdb.[ch]: regenerated.
* plug-ins/gflare/gflare.c
* plug-ins/pygimp/gimpmodule.c: changed accordingly.
* plug-ins/script-fu/scripts/font-map.scm: replaced the font list
parameter with a more useful regexp filter on the available fonts.
2003-08-18 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c: updated for new gradient sample API,
"reverse" is an optional parameter which defaults to FALSE.
2003-07-25 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: slight fix for arg handling, shouldn't
have any functional difference. This code should be redone at some
point.
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp.h
* plug-ins/pygimp/pygimp-pdb.c: constify
* plug-ins/pygimp/plug-ins/sphere.py: use new blend pdb interface
2003-06-26 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpui.py: Missing self. reference. Fixes#115714.
* plug-ins/pygimp/gimpui.py: Move item.show() in Selector so that all
items are shown. Fixes bug #115715. Thanks to Dave Corrie for catching
both these.
* plug-ins/pygimp/gimpfu.py: Always register as type PLUGIN, to
reflect the recent changes in semantics.
* plug-ins/pygimp/plug-ins/gimpcons.py
* plug-ins/pygimp/plug-ins/pdbbrowse.py: s/extension/plug_in/ to
reflect above, for consistency.
* plug-ins/pygimp/gimpfu.py: Add a fail method which uses
gimp.message and then raises an error.
* plug-ins/pygimp/gimpmodule.c: remove declarations for
gimp_extension_ack and gimp_extension_process, they are in gimp.h.
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/gimpui.py
* plug-ins/pygimp/plug-ins/gimpcons.py
* plug-ins/pygimp/plug-ins/pdbbrowse.py: Added pygtk.require('2.0').
Fixes bug #115545.
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.
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 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-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 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.
* 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.
* 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-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_/