2007-05-24 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/pygimp-display.c: added an ID attribute and a
delete method to the Gimp.Display object.
* plug-ins/pygimp/gimpshelf.py (_display_id): use the ID
attribute.
* plug-ins/pygimp/gimpfu.py: enabled support for PF_DISPLAY.
svn path=/trunk/; revision=22605
2007-05-10 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: remove parameter definition special
casing that was based on menu and plugin types. Instead expect the
script to specify all its parameters in its register call, and hide
the UI elements for the parameters we are already passed in
interactive mode. For compatibilty, this is only turned on when you
specify the "menu" named argument in the register call, or if you
pass
an empty label. This should fix bug #104639.
* plug-ins/pygimp/plug-ins/clothify.py
* plug-ins/pygimp/plug-ins/colorxhtml.py
* plug-ins/pygimp/plug-ins/foggify.py
* plug-ins/pygimp/plug-ins/py-slice.py
* plug-ins/pygimp/plug-ins/shadow_bevel.py
* plug-ins/pygimp/plug-ins/whirlpinch.py: update to register image
* and
drawable parameters explicitly.
svn path=/trunk/; revision=22467
2007-05-06 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: don't add the radiobuttons into a
GtkFrame.
* plug-ins/pygimp/plug-ins/sphere.py: added a PF_RADIO parameter
as an example and for testing purposes.
svn path=/trunk/; revision=22442
2006-09-20 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/clothify.py
* plug-ins/pygimp/plug-ins/gimpcons.py: need to call gettext.install
here, otherwise we can't use _() in the register() call.
* plug-ins/pygimp/gimpfu.py: don't call gettext.install() for the
plug-in. Translate the blurb used as a user hint.
2006-09-19 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: allow to pass a (domain, path) tuple
as value for the domain argument of the register() call. Document
the domain argument.
2006-09-16 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/plug-ins/gtkcons.py: let the gettext module
* po-python/POTFILES.in
* plug-ins/pygimp/gimpui.py: Mark a couple strings for translation
here.
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/gimpfu.py: translate strings in the gimp20-python
textdomain.
* plug-ins/pygimp/plug-ins/gtkcons.py: fixed a translation mark.
2006-09-06 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpui.defs
* plug-ins/pygimp/gimpui.override: wrap the new GimpHintBox
widget.
* plug-ins/pygimp/gimpfu.py: use it to display the blurb.
* plug-ins/pygimp/plug-ins/py-slice.py: added missing verb in
blurb.
2006-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: check if the menupath starts with
<Image> instead of checking that it does not start with <Toolbox>.
Makes the scripts in <Palettes> work to some extent.
2006-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py (register): derive the menu from the
label before adding to _registered_plugins_.
* plug-ins/pygimp/Makefile.am: moved clothify.py to test-scripts,
it doubles the functionality of script-fu-clothify.
2006-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: added an optional menu parameter to
the register call to simplify menu registration. Also restored
menupath specific mangling of the procedure arguments.
* plug-ins/pygimp/plug-ins/*.py: use the menu parameter instead
of defining a function to call on query.
* plug-ins/pygimp/plug-ins/sphere.py: do it old-style here for
testing.
2006-08-16 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: allow '-' in procedure and
parameter
names.
* plug-ins/pygimp/plug-ins/*.py: use canonical procedure and
parameter names.
2006-08-11 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpui.defs: wrap gimp_window_set_transient()
into a method of GimpDialog.
* plug-ins/pygimp/gimpfu.py: call dialog.set_transient().
2006-08-11 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-interface.c: pack the main vbox
expanding so that the progress bar sticks to the bottom of the
dialog.
* plug-ins/pygimp/gimpfu.py: moved blurb label to the top, use
italic style for it. Add a progress bar unconditionally and use a
GimpProgressBar for it. Commented out the progress label until it
is actually used.
2006-07-20 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpui.py: make the FileSelector class work
again.
* plug-ins/pygimp/gimpfu.py: add PF_FILENAME and PF_DIRNAME to
match script-fu. Also, if the default value for PF_FILE ends in '/',
it goes PF_DIRNAME mode.
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-06-05 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/gimpenums.py
* plug-ins/pygimp/gimpenumsmodule.c: use old pygtk enum API so we
still work with older pygtk versions.
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-03-09 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: initialize button variable before using
it in PF_BUTTON code. Fixes bug #169793. Thanks to Joao S. O. Bueno
Calligaris.
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.
* plug-ins/pygimp/gimpfu.py: display PF_RADIO options vertically
instead of horizontally, as suggested by Joao S. O. Bueno Calligaris.
Fixes bug #160546.
2004-11-22 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/Makefile.am
* plug-ins/pygimp/pygimp-logo.png: New pygimp logo, by Carol Spears.
* plug-ins/pygimp/gimpfu.py: Use new external logo file, some layout
tweaks.
2004-11-16 Manish Singh <yosh@gimp.org>
* plug-ins/common/gimpfu.py
* plug-ins/common/gimpui.py: Add a palette selector (bug #155325).
Patch by Joao S. O. Bueno.
2004-09-29 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/plug-ins/gimpfu.py: applied slightly tweaked patch
from Joao S. O. Bueno, which adds a mutliline text field (PF_TEXT) and
untabbifies things. Closes bug #153921.
* plug-ins/pygimp/plug-ins/gimpplugin.py
* plug-ins/pygimp/plug-ins/gimpshelf.py
* plug-ins/pygimp/plug-ins/gimpui.py: Untabbify.
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.
2004-02-20 Manish Singh <yosh@gimp.org>
* plug-ins/common/pygimp/gimpfu.py: Do some simple validation on the
GUI input. Arrays are still kinda hokey though. Based on Dave Neary's
patch, addresses bug #122049.
* plug-ins/common/pygimp/plug-ins/sphere.py: Make sure radius is at
least 1. Thanks to Florian Traverse for noticing. (Also in #122049)
* plug-ins/pygimp/gimpfu.py: Show the description of params in dialog
boxes, rather than the internal variable name. This is more
consistent with script-fu. (reported by Florian Traverse)
2003-08-31 Manish Singh <yosh@gimp.org>
* configure.in: added a prominent comment for translators to make
sure they have all 4 po files before adding to ALL_LINGUAS.
* app/gui/plug-in-menus.c: remove redudant #include of gimpenv.h
* tools/pdbgen/pdb/plug_in.pdb: gimp_strip_uline menu_path before
passing it up.
* app/pdb/plug_in_cmds.c: regenerated.
* plug-ins/common/mng.c
* plug-ins/common/psd_save.c
* plug-ins/common/psp.c: use G_N_ELEMENTS
* plug-ins/common/screenshot.c: use GDK_WINDOWING_* for #includes
too. GDK cursor enums are ok to pass to XCreateFontCursor.
* plug-ins/dbbrowser/dbbrowser_utils.c: minor cleanups, also use
gtk_cell_renderer_text_set_fixed_height_from_font as an optimization.
* plug-ins/libgck/gck/gckcolor.c: #undef GDK_DISABLE_DEPRECATED and
add warning.
* plug-ins/pygimp/gimpfu.py: remove some redundant import gtk's
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