gimp/libgimp/gimpgradientselect.h

50 lines
1.9 KiB
C
Raw Normal View History

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
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpgradientselect.h
*
* This library is free software: you can redistribute it and/or
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
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
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
*
* 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, see
* <https://www.gnu.org/licenses/>.
*/
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
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_GRADIENT_SELECT_H__
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_GRADIENT_SELECT_H__
G_BEGIN_DECLS
typedef void (* GimpRunGradientCallback) (const gchar *gradient_name,
gint width,
const gdouble *grad_data,
gboolean dialog_closing,
gpointer user_data);
const gchar * gimp_gradient_select_new (const gchar *title,
const gchar *gradient_name,
gint sample_size,
GimpRunGradientCallback callback,
gpointer data,
GDestroyNotify data_destroy);
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
void gimp_gradient_select_destroy (const gchar *gradient_callback);
G_END_DECLS
#endif /* __GIMP_GRADIENT_SELECT_H__ */