mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
a2bd2ac28c
2002-02-26 Michael Natterer <mitch@gimp.org> Added some kind of paint core registry. It's ugly and will change... * app/core/gimp.c: call paint_init() and paint_exit(). * app/core/gimptoolinfo.[ch]: added "gchar *paint_core_name" to the GimpToolInfo structure and the contstructor. * app/tools/tool_manager.c: pass the class names of the GimpPaintCore subclasses to gimp_tool_info_new(). * app/paint/Makefile.am * app/paint/paint.[ch]: new files. Simlply ref/unref all paint core classes so we can find them using g_type_from_name(). * app/paint/gimppaintcore-stroke.[ch]: changed to take an array of GimpCoords, not just gdouble. * tools/pdbgen/pdb/paint_tools.pdb: convert the stroke array here. * app/gui/vectors-commands.c: ad-hoc implementation of vectors stroking. Double click now sets the active vectors in the vectors tool. * app/pdb/paint_tools_cmds.c: regenerated.
61 lines
2 KiB
C
61 lines
2 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995-2001 Spencer Kimball, Peter Mattis and others
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include "paint-types.h"
|
|
|
|
#include "paint.h"
|
|
#include "gimpairbrush.h"
|
|
#include "gimpclone.h"
|
|
#include "gimpconvolve.h"
|
|
#include "gimpdodgeburn.h"
|
|
#include "gimperaser.h"
|
|
#include "gimppaintbrush.h"
|
|
#include "gimppencil.h"
|
|
#include "gimpsmudge.h"
|
|
|
|
|
|
void
|
|
paint_init (Gimp *gimp)
|
|
{
|
|
g_type_class_ref (GIMP_TYPE_AIRBRUSH);
|
|
g_type_class_ref (GIMP_TYPE_CLONE);
|
|
g_type_class_ref (GIMP_TYPE_CONVOLVE);
|
|
g_type_class_ref (GIMP_TYPE_DODGEBURN);
|
|
g_type_class_ref (GIMP_TYPE_ERASER);
|
|
g_type_class_ref (GIMP_TYPE_PAINTBRUSH);
|
|
g_type_class_ref (GIMP_TYPE_PENCIL);
|
|
g_type_class_ref (GIMP_TYPE_SMUDGE);
|
|
}
|
|
|
|
void
|
|
paint_exit (Gimp *gimp)
|
|
{
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_AIRBRUSH));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_CLONE));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_CONVOLVE));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_DODGEBURN));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_ERASER));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_PAINTBRUSH));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_PENCIL));
|
|
g_type_class_unref (g_type_class_peek (GIMP_TYPE_SMUDGE));
|
|
}
|