gimp/libgimp/gimpcompat.h

146 lines
4.9 KiB
C
Raw Normal View History

/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpcompat.h
* Compatibility defines to ease migration from the GIMP-1.2 API
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GIMP_COMPAT_H__
#define __GIMP_COMPAT_H__
G_BEGIN_DECLS
/* This file contains aliases that are kept for historical
* reasons, because a wide code base depends on them.
*
added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 Michael Natterer <mitch@gimp.org> * app/core/gimpgradient.[ch]: added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients can be used reversed. * app/core/gimpdrawable-blend.[ch] (gimp_drawable_blend) * app/core/gimppalette-import.[ch] (gimp_palette_import_from_gradient): added "gboolean reverse". * app/paint/paint-enums.[ch]: removed enum GimpGradientRepeatMode since it is identical to GimpRepeatMode, except for the now obsolete ONCE_BACKWARD value. * app/paint/gimppaintcore.[ch]: removed gimp_paint_core_get_color_from_gradient()... * app/paint/gimppaintoptions.[ch]: ...and added gimp_paint_options_get_gradient_color(), which is much more general. Added a "reverse" property to GimpGradientOptions and changed the type of the "repeat" property to GimpRepeatMode. * app/paint/gimppaintbrush.c: use gimp_paint_options_get_gradient_color(). * app/tools/gimpblendoptions.[ch]: removed the "repeat" property since it is in the parent class now. * app/gui/gradient-select.c * app/gui/palette-import-dialog.c * app/widgets/gimpgradienteditor.c * app/tools/gimpblendtool.c * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/misc_tools.pdb: changed accordingly. * app/tools/gimppaintoptions-gui.c: added a "Reverse" toggle right of the gradient preview. * app/widgets/gimppreviewrenderergradient.[ch]: added "gboolean reverse" member and gimp_preview_renderer_gradient_set_reverse() API. * tools/pdbgen/pdb/paint_tools.pdb: fixed the paintbrush invoker to set GimpPaintOption's "use-fade" and "use-gradient" properties correctly. * app/pdb/gradients_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * libgimp/gimpenums.h * libgimp/gimpmisctools_pdb.[ch] * plug-ins/pygimp/gimpenums.py * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. * libgimp/gimpcompat.h * plug-ins/script-fu/siod-wrapper.c: removed GimpGradientPaintMode here too since it was only exported accidentially (it's not used by any external API). * plug-ins/script-fu/scripts/3dTruchet.scm * plug-ins/script-fu/scripts/alien-glow-arrow.scm * plug-ins/script-fu/scripts/alien-glow-bar.scm * plug-ins/script-fu/scripts/alien-glow-bullet.scm * plug-ins/script-fu/scripts/alien-glow-button.scm * plug-ins/script-fu/scripts/alien-glow-logo.scm * plug-ins/script-fu/scripts/basic1-logo.scm * plug-ins/script-fu/scripts/basic2-logo.scm * plug-ins/script-fu/scripts/beveled-button.scm * plug-ins/script-fu/scripts/blended-logo.scm * plug-ins/script-fu/scripts/burn-in-anim.scm * plug-ins/script-fu/scripts/coffee.scm * plug-ins/script-fu/scripts/comic-logo.scm * plug-ins/script-fu/scripts/coolmetal-logo.scm * plug-ins/script-fu/scripts/glossy.scm * plug-ins/script-fu/scripts/gradient-bevel-logo.scm * plug-ins/script-fu/scripts/gradient-example.scm * plug-ins/script-fu/scripts/pupi-button.scm * plug-ins/script-fu/scripts/rendermap.scm * plug-ins/script-fu/scripts/sphere.scm * plug-ins/script-fu/scripts/starscape-logo.scm * plug-ins/script-fu/scripts/test-sphere.scm * plug-ins/script-fu/scripts/textured-logo.scm * plug-ins/script-fu/scripts/title-header.scm * plug-ins/script-fu/scripts/weave.scm: pass "reverse" to gimp_blend(). Pass FALSE in most cases and added script parameters were it makes sense.
2003-07-22 22:24:11 +08:00
* These defines will be removed in the next development cycle.
*/
removed all brush, font, gradient and pattern related code. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/gimpmenu.[ch]: removed all brush, font, gradient and pattern related code. * libgimp/gimpbrushselect.[ch] * libgimp/gimpfontselect.[ch] * libgimp/gimpgradientselect.[ch] * libgimp/gimppatternselect.[ch]: new files containing the wrappers around their resp. _pdb.[ch] files. Changed function names to gimp_*_select_new(). Added gimp_*_select_destroy() functions so we're not forced to leak all wrappers. Cleanup. * libgimp/gimpbrushmenu.h * libgimp/gimpfontmenu.h * libgimp/gimpgradientmenu.h * libgimp/gimppatternmenu.h: new files. Changed function names here too. * libgimp/gimpbrushmenu.c * libgimp/gimpfontmenu.c * libgimp/gimpgradientmenu.c * libgimp/gimppatternmenu.c: changed accordingly. Free the foo_select wrappers when they are no longer needed (generally, free everthing instead of leaking everything). Lots of cleanup. * libgimp/Makefile.am * libgimp/gimp.def * libgimp/gimpui.def: changed accordingly. * libgimp/gimp.h * libgimp/gimpui.h: include the new headers. * libgimp/gimpcompat.h: added the old function names here. * plug-ins/FractalExplorer/Dialogs.c * plug-ins/common/film.c * plug-ins/gfig/gfig.c * plug-ins/script-fu/script-fu-scripts.c: changed accordingly. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/libgimp-docs.sgml * libgimp/libgimp-sections.txt: follow libgimp cleanup, moved the brush, font, gradient and pattern selection stuff to their own sections. * libgimp/tmpl/gimpfonts.sgml: removed. * libgimp/tmpl/gimpbrushmenu.sgml * libgimp/tmpl/gimpbrushselect.sgml * libgimp/tmpl/gimpfontmenu.sgml * libgimp/tmpl/gimpfontselect.sgml * libgimp/tmpl/gimpgradientmenu.sgml * libgimp/tmpl/gimpgradientselect.sgml * libgimp/tmpl/gimppatternmenu.sgml * libgimp/tmpl/gimppatternselect.sgml: new files. * libgimp/tmpl/gimpbrushes.sgml * libgimp/tmpl/gimpgradients.sgml * libgimp/tmpl/gimpmenu.sgml * libgimp/tmpl/gimppatterns.sgml: regenerated.
2003-07-01 23:06:06 +08:00
#define GimpRunModeType GimpRunMode
removed our own action_area API and use GtkDialog's one. Create all 2003-11-06 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpdialog.[ch]: removed our own action_area API and use GtkDialog's one. Create all dialogs without separator. Changed almost everything else too. Fixes bug #125143. * libgimpwidgets/gimpquerybox.c * libgimpwidgets/gimpunitmenu.c: changed accordingly. * libgimp/gimpexport.[ch]: ditto. Renamed enum GimpExportReturnType to GimpExportReturn. * libgimp/gimpcompat.h: added a #define for the old name. * themes/Default/gtkrc: increased action_area border to 6 pixels. * app/display/gimpdisplayshell-filter-dialog.c * app/display/gimpdisplayshell-scale.c * app/display/gimpprogress.c * app/gui/brush-select.c * app/gui/channels-commands.c * app/gui/color-notebook.c * app/gui/convert-dialog.c * app/gui/file-new-dialog.c * app/gui/font-select.c * app/gui/gradient-editor-commands.c * app/gui/gradient-select.c * app/gui/grid-dialog.c * app/gui/image-commands.c * app/gui/info-window.c * app/gui/layers-commands.c * app/gui/module-browser.c * app/gui/offset-dialog.c * app/gui/palette-import-dialog.c * app/gui/palette-select.c * app/gui/pattern-select.c * app/gui/preferences-dialog.c * app/gui/qmask-commands.c * app/gui/resize-dialog.c * app/gui/resolution-calibrate-dialog.c * app/gui/stroke-dialog.c * app/gui/templates-commands.c * app/gui/user-install-dialog.c * app/gui/vectors-commands.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpimagemaptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c * app/widgets/gimptexteditor.c * app/widgets/gimptooldialog.[ch] * app/widgets/gimpviewabledialog.[ch] * app/widgets/gimpwidgets-utils.c: changed accordingly and increased the dialogs' outer borders to 6 pixels all over the place. * plug-ins/*/*.c: changed accordingly. The plug-ins may be arbitrarily broken, I tested none of them.
2003-11-06 23:27:05 +08:00
#define GimpExportReturnType GimpExportReturn
renamed parameters to be consistent with the other foo-select.* files. 2002-03-13 Michael Natterer <mitch@gimp.org> * app/gui/brush-select.[ch]: renamed parameters to be consistent with the other foo-select.* files. * app/gui/tool-options-dialog.c: removed unused function. * app/plug-in/plug-in-types.h: PlugInImageType was accidentially exported to the PDB. * tools/pdbgen/enums.pl * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c: regenerated. More brush, pattern, ... PDB wrapper cleanup: * tools/pdbgen/pdb/brush_select.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/palette_select.pdb * tools/pdbgen/pdb/pattern_select.pdb: even more cleanup, guard all functions with if(!gimp->no_interface). * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/palettes.pdb * tools/pdbgen/pdb/patterns.pdb: reordered functions to be consistent across all files. Generate libgimp wrappers for *all* functions because of API symmetry. * tools/pdbgen/pdb/gradients.pdb: renamed gradients_[get|set]_active to gradients_[get|set]_gradient because of API symmetry. * libgimp/gimpcompat.h: added the old function names here, guard the whole file with GIMP_ENABLE_COMPAT_CRUFT (it's back, yeah). * plug-ins/FractalExplorer/Dialogs.c * plug-ins/gflare/gflare.c: use the new function names. * libgimp/gimpbrushes_pdb.[ch] * libgimp/gimpgradients_pdb.[ch] * libgimp/gimppalettes_pdb.[ch] * libgimp/gimppatterns_pdb.[ch] * app/pdb/brush_select_cmds.c * app/pdb/brushes_cmds.c * app/pdb/gradient_select_cmds.c * app/pdb/gradients_cmds.c * app/pdb/palette_select_cmds.c * app/pdb/palettes_cmds.c * app/pdb/pattern_select_cmds.c * app/pdb/patterns_cmds.c: regenerated.
2002-03-13 23:29:59 +08:00
removed all brush, font, gradient and pattern related code. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/gimpmenu.[ch]: removed all brush, font, gradient and pattern related code. * libgimp/gimpbrushselect.[ch] * libgimp/gimpfontselect.[ch] * libgimp/gimpgradientselect.[ch] * libgimp/gimppatternselect.[ch]: new files containing the wrappers around their resp. _pdb.[ch] files. Changed function names to gimp_*_select_new(). Added gimp_*_select_destroy() functions so we're not forced to leak all wrappers. Cleanup. * libgimp/gimpbrushmenu.h * libgimp/gimpfontmenu.h * libgimp/gimpgradientmenu.h * libgimp/gimppatternmenu.h: new files. Changed function names here too. * libgimp/gimpbrushmenu.c * libgimp/gimpfontmenu.c * libgimp/gimpgradientmenu.c * libgimp/gimppatternmenu.c: changed accordingly. Free the foo_select wrappers when they are no longer needed (generally, free everthing instead of leaking everything). Lots of cleanup. * libgimp/Makefile.am * libgimp/gimp.def * libgimp/gimpui.def: changed accordingly. * libgimp/gimp.h * libgimp/gimpui.h: include the new headers. * libgimp/gimpcompat.h: added the old function names here. * plug-ins/FractalExplorer/Dialogs.c * plug-ins/common/film.c * plug-ins/gfig/gfig.c * plug-ins/script-fu/script-fu-scripts.c: changed accordingly. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/libgimp-docs.sgml * libgimp/libgimp-sections.txt: follow libgimp cleanup, moved the brush, font, gradient and pattern selection stuff to their own sections. * libgimp/tmpl/gimpfonts.sgml: removed. * libgimp/tmpl/gimpbrushmenu.sgml * libgimp/tmpl/gimpbrushselect.sgml * libgimp/tmpl/gimpfontmenu.sgml * libgimp/tmpl/gimpfontselect.sgml * libgimp/tmpl/gimpgradientmenu.sgml * libgimp/tmpl/gimpgradientselect.sgml * libgimp/tmpl/gimppatternmenu.sgml * libgimp/tmpl/gimppatternselect.sgml: new files. * libgimp/tmpl/gimpbrushes.sgml * libgimp/tmpl/gimpgradients.sgml * libgimp/tmpl/gimpmenu.sgml * libgimp/tmpl/gimppatterns.sgml: regenerated.
2003-07-01 23:06:06 +08:00
#define gimp_use_xshm TRUE
#define gimp_color_cube ((guchar *) { 6, 6, 4, 24 })
removed all brush, font, gradient and pattern related code. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/gimpmenu.[ch]: removed all brush, font, gradient and pattern related code. * libgimp/gimpbrushselect.[ch] * libgimp/gimpfontselect.[ch] * libgimp/gimpgradientselect.[ch] * libgimp/gimppatternselect.[ch]: new files containing the wrappers around their resp. _pdb.[ch] files. Changed function names to gimp_*_select_new(). Added gimp_*_select_destroy() functions so we're not forced to leak all wrappers. Cleanup. * libgimp/gimpbrushmenu.h * libgimp/gimpfontmenu.h * libgimp/gimpgradientmenu.h * libgimp/gimppatternmenu.h: new files. Changed function names here too. * libgimp/gimpbrushmenu.c * libgimp/gimpfontmenu.c * libgimp/gimpgradientmenu.c * libgimp/gimppatternmenu.c: changed accordingly. Free the foo_select wrappers when they are no longer needed (generally, free everthing instead of leaking everything). Lots of cleanup. * libgimp/Makefile.am * libgimp/gimp.def * libgimp/gimpui.def: changed accordingly. * libgimp/gimp.h * libgimp/gimpui.h: include the new headers. * libgimp/gimpcompat.h: added the old function names here. * plug-ins/FractalExplorer/Dialogs.c * plug-ins/common/film.c * plug-ins/gfig/gfig.c * plug-ins/script-fu/script-fu-scripts.c: changed accordingly. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/libgimp-docs.sgml * libgimp/libgimp-sections.txt: follow libgimp cleanup, moved the brush, font, gradient and pattern selection stuff to their own sections. * libgimp/tmpl/gimpfonts.sgml: removed. * libgimp/tmpl/gimpbrushmenu.sgml * libgimp/tmpl/gimpbrushselect.sgml * libgimp/tmpl/gimpfontmenu.sgml * libgimp/tmpl/gimpfontselect.sgml * libgimp/tmpl/gimpgradientmenu.sgml * libgimp/tmpl/gimpgradientselect.sgml * libgimp/tmpl/gimppatternmenu.sgml * libgimp/tmpl/gimppatternselect.sgml: new files. * libgimp/tmpl/gimpbrushes.sgml * libgimp/tmpl/gimpgradients.sgml * libgimp/tmpl/gimpmenu.sgml * libgimp/tmpl/gimppatterns.sgml: regenerated.
2003-07-01 23:06:06 +08:00
#define gimp_crop gimp_image_crop
renamed parameters to be consistent with the other foo-select.* files. 2002-03-13 Michael Natterer <mitch@gimp.org> * app/gui/brush-select.[ch]: renamed parameters to be consistent with the other foo-select.* files. * app/gui/tool-options-dialog.c: removed unused function. * app/plug-in/plug-in-types.h: PlugInImageType was accidentially exported to the PDB. * tools/pdbgen/enums.pl * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c: regenerated. More brush, pattern, ... PDB wrapper cleanup: * tools/pdbgen/pdb/brush_select.pdb * tools/pdbgen/pdb/gradient_select.pdb * tools/pdbgen/pdb/palette_select.pdb * tools/pdbgen/pdb/pattern_select.pdb: even more cleanup, guard all functions with if(!gimp->no_interface). * tools/pdbgen/pdb/brushes.pdb * tools/pdbgen/pdb/gradients.pdb * tools/pdbgen/pdb/palettes.pdb * tools/pdbgen/pdb/patterns.pdb: reordered functions to be consistent across all files. Generate libgimp wrappers for *all* functions because of API symmetry. * tools/pdbgen/pdb/gradients.pdb: renamed gradients_[get|set]_active to gradients_[get|set]_gradient because of API symmetry. * libgimp/gimpcompat.h: added the old function names here, guard the whole file with GIMP_ENABLE_COMPAT_CRUFT (it's back, yeah). * plug-ins/FractalExplorer/Dialogs.c * plug-ins/gflare/gflare.c: use the new function names. * libgimp/gimpbrushes_pdb.[ch] * libgimp/gimpgradients_pdb.[ch] * libgimp/gimppalettes_pdb.[ch] * libgimp/gimppatterns_pdb.[ch] * app/pdb/brush_select_cmds.c * app/pdb/brushes_cmds.c * app/pdb/gradient_select_cmds.c * app/pdb/gradients_cmds.c * app/pdb/palette_select_cmds.c * app/pdb/palettes_cmds.c * app/pdb/pattern_select_cmds.c * app/pdb/patterns_cmds.c: regenerated.
2002-03-13 23:29:59 +08:00
removed all brush, font, gradient and pattern related code. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/gimpmenu.[ch]: removed all brush, font, gradient and pattern related code. * libgimp/gimpbrushselect.[ch] * libgimp/gimpfontselect.[ch] * libgimp/gimpgradientselect.[ch] * libgimp/gimppatternselect.[ch]: new files containing the wrappers around their resp. _pdb.[ch] files. Changed function names to gimp_*_select_new(). Added gimp_*_select_destroy() functions so we're not forced to leak all wrappers. Cleanup. * libgimp/gimpbrushmenu.h * libgimp/gimpfontmenu.h * libgimp/gimpgradientmenu.h * libgimp/gimppatternmenu.h: new files. Changed function names here too. * libgimp/gimpbrushmenu.c * libgimp/gimpfontmenu.c * libgimp/gimpgradientmenu.c * libgimp/gimppatternmenu.c: changed accordingly. Free the foo_select wrappers when they are no longer needed (generally, free everthing instead of leaking everything). Lots of cleanup. * libgimp/Makefile.am * libgimp/gimp.def * libgimp/gimpui.def: changed accordingly. * libgimp/gimp.h * libgimp/gimpui.h: include the new headers. * libgimp/gimpcompat.h: added the old function names here. * plug-ins/FractalExplorer/Dialogs.c * plug-ins/common/film.c * plug-ins/gfig/gfig.c * plug-ins/script-fu/script-fu-scripts.c: changed accordingly. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/libgimp-docs.sgml * libgimp/libgimp-sections.txt: follow libgimp cleanup, moved the brush, font, gradient and pattern selection stuff to their own sections. * libgimp/tmpl/gimpfonts.sgml: removed. * libgimp/tmpl/gimpbrushmenu.sgml * libgimp/tmpl/gimpbrushselect.sgml * libgimp/tmpl/gimpfontmenu.sgml * libgimp/tmpl/gimpfontselect.sgml * libgimp/tmpl/gimpgradientmenu.sgml * libgimp/tmpl/gimpgradientselect.sgml * libgimp/tmpl/gimppatternmenu.sgml * libgimp/tmpl/gimppatternselect.sgml: new files. * libgimp/tmpl/gimpbrushes.sgml * libgimp/tmpl/gimpgradients.sgml * libgimp/tmpl/gimpmenu.sgml * libgimp/tmpl/gimppatterns.sgml: regenerated.
2003-07-01 23:06:06 +08:00
#define gimp_gradients_get_active gimp_gradients_get_gradient
#define gimp_gradients_set_active gimp_gradients_set_gradient
removed all brush, font, gradient and pattern related code. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/gimpmenu.[ch]: removed all brush, font, gradient and pattern related code. * libgimp/gimpbrushselect.[ch] * libgimp/gimpfontselect.[ch] * libgimp/gimpgradientselect.[ch] * libgimp/gimppatternselect.[ch]: new files containing the wrappers around their resp. _pdb.[ch] files. Changed function names to gimp_*_select_new(). Added gimp_*_select_destroy() functions so we're not forced to leak all wrappers. Cleanup. * libgimp/gimpbrushmenu.h * libgimp/gimpfontmenu.h * libgimp/gimpgradientmenu.h * libgimp/gimppatternmenu.h: new files. Changed function names here too. * libgimp/gimpbrushmenu.c * libgimp/gimpfontmenu.c * libgimp/gimpgradientmenu.c * libgimp/gimppatternmenu.c: changed accordingly. Free the foo_select wrappers when they are no longer needed (generally, free everthing instead of leaking everything). Lots of cleanup. * libgimp/Makefile.am * libgimp/gimp.def * libgimp/gimpui.def: changed accordingly. * libgimp/gimp.h * libgimp/gimpui.h: include the new headers. * libgimp/gimpcompat.h: added the old function names here. * plug-ins/FractalExplorer/Dialogs.c * plug-ins/common/film.c * plug-ins/gfig/gfig.c * plug-ins/script-fu/script-fu-scripts.c: changed accordingly. 2003-07-01 Michael Natterer <mitch@gimp.org> * libgimp/libgimp-docs.sgml * libgimp/libgimp-sections.txt: follow libgimp cleanup, moved the brush, font, gradient and pattern selection stuff to their own sections. * libgimp/tmpl/gimpfonts.sgml: removed. * libgimp/tmpl/gimpbrushmenu.sgml * libgimp/tmpl/gimpbrushselect.sgml * libgimp/tmpl/gimpfontmenu.sgml * libgimp/tmpl/gimpfontselect.sgml * libgimp/tmpl/gimpgradientmenu.sgml * libgimp/tmpl/gimpgradientselect.sgml * libgimp/tmpl/gimppatternmenu.sgml * libgimp/tmpl/gimppatternselect.sgml: new files. * libgimp/tmpl/gimpbrushes.sgml * libgimp/tmpl/gimpgradients.sgml * libgimp/tmpl/gimpmenu.sgml * libgimp/tmpl/gimppatterns.sgml: regenerated.
2003-07-01 23:06:06 +08:00
#define gimp_help_init() ((void) 0)
#define gimp_help_free() ((void) 0)
#define gimp_interactive_selection_brush gimp_brush_select_new
#define gimp_brush_select_widget gimp_brush_select_widget_new
#define gimp_brush_select_widget_set_popup gimp_brush_select_widget_set
#define gimp_brush_select_widget_close_popup gimp_brush_select_widget_close
#define gimp_interactive_selection_font gimp_font_select_new
#define gimp_gradient_select_widget gimp_gradient_select_widget_new
#define gimp_gradient_select_widget_set_popup gimp_gradient_select_widget_set
#define gimp_gradient_select_widget_close_popup gimp_gradient_select_widget_close
#define gimp_interactive_selection_gradient gimp_gradient_select_new
#define gimp_font_select_widget gimp_font_select_widget_new
#define gimp_font_select_widget_set_popup gimp_font_select_widget_set
#define gimp_font_select_widget_close_popup gimp_font_select_widget_close
#define gimp_interactive_selection_pattern gimp_pattern_select_new
#define gimp_pattern_select_widget gimp_pattern_select_widget_new
#define gimp_pattern_select_widget_set_popup gimp_pattern_select_widget_set
#define gimp_pattern_select_widget_close_popup gimp_pattern_select_widget_close
removed gimp_help_init() and gimp_help_free(). Added _gimp_help_init() 2003-01-07 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimphelpui.[ch]: removed gimp_help_init() and gimp_help_free(). Added _gimp_help_init() instead. * libgimpwidgets/gimpwidgets.def: changed accordingly. * libgimpwidgets/gimpwidgets.c (gimp_widgets_init): call _gimp_help_init() so it doesn't need to be done in all plug-ins manually. * libgimp/gimpcompat.h: added gimp_help_init() and gimp_help_free() here as COMPAT_CRUFT. * app/gui/gui.c * plug-ins/FractalExplorer/Dialogs.c * plug-ins/Lighting/lighting_ui.c * plug-ins/MapObject/mapobject_ui.c * plug-ins/common/AlienMap.c * plug-ins/common/AlienMap2.c * plug-ins/common/CML_explorer.c * plug-ins/common/blur.c * plug-ins/common/curve_bend.c * plug-ins/common/gtm.c * plug-ins/common/illusion.c * plug-ins/common/jigsaw.c * plug-ins/common/plasma.c * plug-ins/common/polar.c * plug-ins/common/ps.c * plug-ins/common/randomize.c * plug-ins/common/sinus.c * plug-ins/common/snoise.c * plug-ins/common/sparkle.c * plug-ins/common/uniteditor.c * plug-ins/common/warp.c * plug-ins/common/wind.c * plug-ins/gap/gap_arr_dialog.c * plug-ins/gap/gap_mov_dialog.c * plug-ins/gap/gap_navigator_dialog.c * plug-ins/gdyntext/gdyntext_ui.c * plug-ins/gfig/gfig.c * plug-ins/gflare/gflare.c * plug-ins/gimpressionist/gimpressionist.c * plug-ins/maze/maze_face.c * plug-ins/print/gimp_main_window.c * plug-ins/sel2path/sel2path.c: removed the calls to gimp_help_init() and gimp_help_free(). Fixed bug #81017: * libgimpbase/gimpprotocol.[ch]: added "guint8 show_tool_tips" to the GPConfig message. Increased the protocol version number. * app/plug-in/plug-in.c: pass the value of gui_config->show_tool_tips. * libgimp/gimp.[ch]: added gimp_show_tool_tips() to get the value which was passed in the GPConfig message. * libgimp/gimpui.c (gimp_ui_init): disable the tooltips if show_tool_tips is FALSE. * plug-ins/MapObject/mapobject_main.[ch] * plug-ins/MapObject/mapobject_ui.c * plug-ins/common/jigsaw.c * plug-ins/gap/gap_navigator_dialog.c * plug-ins/gfig/gfig.c: removed all plug-in specific GUI for enabling/disabling tooltips.
2003-01-08 01:00:49 +08:00
tools/pdbgen/app.pl tools/pdbgen/enumcode-py.pl tools/pdbgen/enumcode.pl 2002-03-17 Manish Singh <yosh@gimp.org> * tools/pdbgen/app.pl * tools/pdbgen/enumcode-py.pl * tools/pdbgen/enumcode.pl * tools/pdbgen/enumgen.pl: removed enum nick support, best to keep internal and external names consistent * app/core/core-enums.h: remove chops from enums. Change TRANS to TRANSPARENT in GimpBlendMode * app/core/core-types.h: remove chops and nicks from enums. Change INV to INVERSE and SUB to SUBTRACT to make things more clear * app/core/gimpchannel.c * app/gui/channels-commands.c * app/gui/vectors-commands.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimprectselecttool.c * app/tools/gimpselectiontool.c * app/tools/selection_options.c * app/tools/tools-types.h * app/widgets/gimpchannellistview.c * app/widgets/gimpvectorslistview.c: reflect SUB -> SUBTRACT change * app/core/gimpdrawable-blend.c: reflect TRANS -> TRANSPARENT change * app/core/gimplayer.c * app/gui/layers-commands.c: reflect INV -> INVERSE change * app/paint/paint-types.h: remove nick from PaintApplicationMode * app/tools/gimperasertool.c: fix tooltip * app/widgets/gimpenummenu.c: #include "libgimp/gimpintl.h" for gettext * libgimp/gimpcompat.h: compatibility enums here, since we removed the nicks * tools/pdbgen/enums.pl * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * app/core/core-enums.c * app/pdb/channel_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c: regenerated, enum changes * plug-ins/common/hot.c: GIMP_TRANS_IMAGE_FILL -> GIMP_TRANSPARENT_FILL * plug-ins/common/warp.c: GIMP_BG_IMAGE_FILL -> GIMP_BACKGROUND_FILL * plug-ins/script-fu/siod-wrapper.c: compat constant definitions
2002-03-18 06:54:26 +08:00
enum
{
GIMP_WHITE_MASK = GIMP_ADD_WHITE_MASK,
GIMP_BLACK_MASK = GIMP_ADD_BLACK_MASK,
GIMP_ALPHA_MASK = GIMP_ADD_ALPHA_MASK,
GIMP_SELECTION_MASK = GIMP_ADD_SELECTION_MASK,
GIMP_COPY_MASK = GIMP_ADD_COPY_MASK,
};
enum
{
GIMP_ADD = GIMP_CHANNEL_OP_ADD,
GIMP_SUB = GIMP_CHANNEL_OP_SUBTRACT,
GIMP_REPLACE = GIMP_CHANNEL_OP_REPLACE,
GIMP_INTERSECT = GIMP_CHANNEL_OP_INTERSECT
};
enum
{
GIMP_FG_BG_RGB = GIMP_FG_BG_RGB_MODE,
GIMP_FG_BG_HSV = GIMP_FG_BG_HSV_MODE,
GIMP_FG_TRANS = GIMP_FG_TRANSPARENT_MODE,
GIMP_CUSTOM = GIMP_CUSTOM_MODE
};
enum
{
GIMP_FG_IMAGE_FILL = GIMP_FOREGROUND_FILL,
GIMP_BG_IMAGE_FILL = GIMP_BACKGROUND_FILL,
GIMP_WHITE_IMAGE_FILL = GIMP_WHITE_FILL,
GIMP_TRANS_IMAGE_FILL = GIMP_TRANSPARENT_FILL,
GIMP_NO_IMAGE_FILL = GIMP_NO_FILL
};
enum
{
GIMP_APPLY = GIMP_MASK_APPLY,
GIMP_DISCARD = GIMP_MASK_DISCARD
};
enum
{
GIMP_HARD = GIMP_BRUSH_HARD,
GIMP_SOFT = GIMP_BRUSH_SOFT,
};
tools/pdbgen/app.pl tools/pdbgen/enumcode-py.pl tools/pdbgen/enumcode.pl 2002-03-17 Manish Singh <yosh@gimp.org> * tools/pdbgen/app.pl * tools/pdbgen/enumcode-py.pl * tools/pdbgen/enumcode.pl * tools/pdbgen/enumgen.pl: removed enum nick support, best to keep internal and external names consistent * app/core/core-enums.h: remove chops from enums. Change TRANS to TRANSPARENT in GimpBlendMode * app/core/core-types.h: remove chops and nicks from enums. Change INV to INVERSE and SUB to SUBTRACT to make things more clear * app/core/gimpchannel.c * app/gui/channels-commands.c * app/gui/vectors-commands.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimprectselecttool.c * app/tools/gimpselectiontool.c * app/tools/selection_options.c * app/tools/tools-types.h * app/widgets/gimpchannellistview.c * app/widgets/gimpvectorslistview.c: reflect SUB -> SUBTRACT change * app/core/gimpdrawable-blend.c: reflect TRANS -> TRANSPARENT change * app/core/gimplayer.c * app/gui/layers-commands.c: reflect INV -> INVERSE change * app/paint/paint-types.h: remove nick from PaintApplicationMode * app/tools/gimperasertool.c: fix tooltip * app/widgets/gimpenummenu.c: #include "libgimp/gimpintl.h" for gettext * libgimp/gimpcompat.h: compatibility enums here, since we removed the nicks * tools/pdbgen/enums.pl * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * app/core/core-enums.c * app/pdb/channel_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c: regenerated, enum changes * plug-ins/common/hot.c: GIMP_TRANS_IMAGE_FILL -> GIMP_TRANSPARENT_FILL * plug-ins/common/warp.c: GIMP_BG_IMAGE_FILL -> GIMP_BACKGROUND_FILL * plug-ins/script-fu/siod-wrapper.c: compat constant definitions
2002-03-18 06:54:26 +08:00
enum
{
GIMP_CONTINUOUS = GIMP_PAINT_CONSTANT,
GIMP_INCREMENTAL = GIMP_PAINT_INCREMENTAL
tools/pdbgen/app.pl tools/pdbgen/enumcode-py.pl tools/pdbgen/enumcode.pl 2002-03-17 Manish Singh <yosh@gimp.org> * tools/pdbgen/app.pl * tools/pdbgen/enumcode-py.pl * tools/pdbgen/enumcode.pl * tools/pdbgen/enumgen.pl: removed enum nick support, best to keep internal and external names consistent * app/core/core-enums.h: remove chops from enums. Change TRANS to TRANSPARENT in GimpBlendMode * app/core/core-types.h: remove chops and nicks from enums. Change INV to INVERSE and SUB to SUBTRACT to make things more clear * app/core/gimpchannel.c * app/gui/channels-commands.c * app/gui/vectors-commands.c * app/tools/gimpbezierselecttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimprectselecttool.c * app/tools/gimpselectiontool.c * app/tools/selection_options.c * app/tools/tools-types.h * app/widgets/gimpchannellistview.c * app/widgets/gimpvectorslistview.c: reflect SUB -> SUBTRACT change * app/core/gimpdrawable-blend.c: reflect TRANS -> TRANSPARENT change * app/core/gimplayer.c * app/gui/layers-commands.c: reflect INV -> INVERSE change * app/paint/paint-types.h: remove nick from PaintApplicationMode * app/tools/gimperasertool.c: fix tooltip * app/widgets/gimpenummenu.c: #include "libgimp/gimpintl.h" for gettext * libgimp/gimpcompat.h: compatibility enums here, since we removed the nicks * tools/pdbgen/enums.pl * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * app/core/core-enums.c * app/pdb/channel_cmds.c * app/pdb/drawable_cmds.c * app/pdb/edit_cmds.c * app/pdb/layer_cmds.c * app/pdb/misc_tools_cmds.c * app/pdb/paint_tools_cmds.c * app/pdb/selection_cmds.c * app/pdb/selection_tools_cmds.c: regenerated, enum changes * plug-ins/common/hot.c: GIMP_TRANS_IMAGE_FILL -> GIMP_TRANSPARENT_FILL * plug-ins/common/warp.c: GIMP_BG_IMAGE_FILL -> GIMP_BACKGROUND_FILL * plug-ins/script-fu/siod-wrapper.c: compat constant definitions
2002-03-18 06:54:26 +08:00
};
enum
{
GIMP_HORIZONTAL = GIMP_ORIENTATION_HORIZONTAL,
GIMP_VERTICAL = GIMP_ORIENTATION_VERTICAL,
GIMP_UNKNOWN = GIMP_ORIENTATION_UNKNOWN
};
enum
{
GIMP_LINEAR = GIMP_GRADIENT_LINEAR,
GIMP_BILNEAR = GIMP_GRADIENT_BILINEAR,
GIMP_RADIAL = GIMP_GRADIENT_RADIAL,
GIMP_SQUARE = GIMP_GRADIENT_SQUARE,
GIMP_CONICAL_SYMMETRIC = GIMP_GRADIENT_CONICAL_SYMMETRIC,
GIMP_CONICAL_ASYMMETRIC = GIMP_GRADIENT_CONICAL_ASYMMETRIC,
GIMP_SHAPEBURST_ANGULAR = GIMP_GRADIENT_SHAPEBURST_ANGULAR,
GIMP_SHAPEBURST_SPHERICAL = GIMP_GRADIENT_SHAPEBURST_SPHERICAL,
GIMP_SHAPEBURST_DIMPLED = GIMP_GRADIENT_SHAPEBURST_DIMPLED,
GIMP_SPIRAL_CLOCKWISE = GIMP_GRADIENT_SPIRAL_CLOCKWISE,
GIMP_SPIRAL_ANTICLOCKWISE = GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE
};
G_END_DECLS
#endif /* __GIMP_COMPAT_H__ */