gimp/plug-ins/pygimp
Michael Natterer 3fb934b2a4 Allow plug-ins to register menu icons. Fixes bug #120500.
2004-05-18  Michael Natterer  <mitch@gimp.org>

	Allow plug-ins to register menu icons. Fixes bug #120500.

	* app/core/core-enums.[ch]: added enum GimpIconType which can
	be one of { STOCK_ID, IMAGE_FILE, INLINE_PIXBUF }.

	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_data)
	* app/config/gimpscanner.[ch] (gimp_scanner_parse_data): new
	functions which write/parse raw binary data. Needed for storing
	inline pixbufs in pluginrc.

	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_identifier):
	new function which writes out an unquoted and unescaped string.

	* app/plug-in/plug-in-proc.[ch] (struct PlugInProcDef): added
	new members "icon_type", "icon_data_length" and "icon_data".
	Reordered members so file_proc specific stuff is at the end.

	(plug_in_proc_def_get_stock_id)
	(plug_in_proc_def_get_pixbuf): new functions to access the
	procedure's icon.

	* app/plug-in/plug-in-rc.c: save/restore the registered icons.

	* app/actions/file-dialog-actions.c
	* app/actions/plug-in-actions.c: set the action's stock ID from
	the procedure's stock ID.

	* app/widgets/gimppluginaction.c
	(gimp_plug_in_action_connect_proxy): if the procedure provides a
	pixbuf, set it as icon for the menu item.

	* app/menus/file-dialog-menu.[ch]
	* app/menus/file-open-menu.c
	* app/menus/file-save-menu.c
	* app/xcf/xcf.c: changed accordingly.

	* tools/pdbgen/pdb/plug_in.pdb (plugin_icon_register): new PDB
	function which can be called during query().

	* tools/pdbgen/enums.pl
	* app/pdb/internal_procs.c
	* app/pdb/plug_in_cmds.c
	* libgimp/gimpenums.h
	* libgimp/gimpplugin_pdb.c
	* libgimp/gimpplugin_pdb.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c: regenerated.

	* plug-ins/common/plugindetails.c
	* plug-ins/common/uniteditor.c
	* plug-ins/print/print.c: register stock_id icons.

	* plug-ins/common/screenshot.c: register an inline_pixbuf icon for
	testing purposes (used emblem-camera.png from gnome-icon-theme).

	* app/actions/dialogs-actions.c
	* app/actions/file-actions.c: unrelated: added some more icons
	to menu items.
2004-05-18 21:19:43 +00:00
..
doc make clean shouldn't clean disted files 2003-02-28 01:21:27 +00:00
plug-ins Quick fix to make uppercase tags work properly. 2004-04-29 16:09:09 +00:00
.cvsignore fix up cvsignore file (we don't have a checked in Makefile.in file anymore) 2002-08-29 11:35:42 +00:00
AUTHORS added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00
COPYING 1.1.9 stuff 1999-09-10 05:16:23 +00:00
ChangeLog use dialog.run() for sub dialogs, since the main dialog is also doing 2003-02-08 19:36:00 +00:00
INSTALL 1.1.9 stuff 1999-09-10 05:16:23 +00:00
Makefile.am modernized, made a lot of things m4 macros, and made versioning a lot more 2004-01-22 03:51:46 +00:00
NEWS added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00
README added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00
acinclude.m4 added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00
configure.in added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00
gimpenums.py Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
gimpfu.py Disable PF_*ARRAY for now. Addresses #122049. 2004-03-02 18:25:29 +00:00
gimpmodule.c plug-ins/pygimp/gimpmodule.c plug-ins/pygimp/pygimp-drawable.c 2003-12-03 21:52:09 +00:00
gimpplugin.py some more updates 2002-08-28 16:18:18 +00:00
gimpshelf.py use dialog.run() for sub dialogs, since the main dialog is also doing 2003-02-08 19:36:00 +00:00
gimpui.py Translate None to NULL when passing strings. 2004-02-05 09:17:19 +00:00
makefile.msc [ I've postponed my reservations against pangoft2/fontconfig/freetype2 2003-12-13 01:35:19 +00:00
py-compile added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00
pygimp-display.c add getsets for common drawable attributes. (PyGimpLayer_Type): convert 2002-08-30 12:46:27 +00:00
pygimp-drawable.c remove add/remove_layer_mask methods... 2003-12-24 00:41:12 +00:00
pygimp-image.c add undo_group_{start,end} methods. 2003-12-25 06:14:15 +00:00
pygimp-parasite.c add getsets for common drawable attributes. (PyGimpLayer_Type): convert 2002-08-30 12:46:27 +00:00
pygimp-pdb.c Translate None to NULL when passing strings. 2004-02-05 09:17:19 +00:00
pygimp-tile.c plug-ins/pygimp/gimpmodule.c plug-ins/pygimp/pygimp-drawable.c 2003-12-03 21:52:09 +00:00
pygimp.h slight fix for arg handling, shouldn't have any functional difference. 2003-07-25 23:46:40 +00:00
pygimp.spec added pygimp to tree, as organised with Marc Lehmann. I have not hooked it 1999-09-05 15:46:57 +00:00

README

  Gimp-Python - allows the writing of plugins for Gimp in Python.
  Copyright (C) 1997-1999  James Henstridge <james@daa.com.au>

This is the Gimp-Python package.  It is free software and is covered
by the GNU General Public Licence (A copy of which is in the file
COPYING in the distribution) with the exception that you may link
gimpmodule with the python program.

For more information, please see the documentation in the directory
doc.  The documentation is in SGML, and translations to text, html and
texinfo are included in the distribution.

To build the program, you should be able to just type:
  ./configure --prefix=<gimp-prefix>
  make
  make install

Pregenerated HTML docs are included with the package in the doc
directory.  If you want ps or pdf documentation, get Mark Galassi's
docbook SGML packages.

Here is a list of what you will find in the subdirectories of this
distribution:
  .         - The actual source code.
  doc/      - The documentation.
  plug-ins/ - The sample plugins.  Contents are copied to GIMP plug-ins
	      directory.