mirror of https://github.com/GNOME/gimp.git
3fb934b2a4
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. |
||
---|---|---|
.. | ||
doc | ||
plug-ins | ||
.cvsignore | ||
AUTHORS | ||
COPYING | ||
ChangeLog | ||
INSTALL | ||
Makefile.am | ||
NEWS | ||
README | ||
acinclude.m4 | ||
configure.in | ||
gimpenums.py | ||
gimpfu.py | ||
gimpmodule.c | ||
gimpplugin.py | ||
gimpshelf.py | ||
gimpui.py | ||
makefile.msc | ||
py-compile | ||
pygimp-display.c | ||
pygimp-drawable.c | ||
pygimp-image.c | ||
pygimp-parasite.c | ||
pygimp-pdb.c | ||
pygimp-tile.c | ||
pygimp.h | ||
pygimp.spec |
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.