Gimp/app/paint
Michael Natterer a3f44d8b0f Separated tool_options creation from tool registration so we don't
2002-06-17  Michael Natterer  <mitch@gimp.org>

	Separated tool_options creation from tool registration so we
	don't implicitly create widgets before gui_init():

	* libgimptool/gimptooltypes.h: removed GimpToolOptionsNewFunc
	typedef here...

	* app/core/core-types.h: ...and added it here.

	* libgimpproxy/gimpproxytypes.h: regenerated.

	* app/core/gimptoolinfo.[ch]: added a GimpToolOptionsNewFunc
	pointer to remember the constructor. Fixed the finalize() method
	(bug was never noticed because we leaked all tool infos)

	* app/tools/tool_manager.[ch]: moved tool_options creation to the
	new function tool_manager_restore(). Unref the tool infos after
	adding them to their container. Added "brush" and "gradient" to
	the context properties which are defined for tool contexts.

	* app/app_procs.c: call tool_manager_restore() after gui_init().

	* app/gui/gui.c: removed the hack introduced recently and call
	render_setup() in gui_init() again, not in gui_themes_init().

	Use the correct contexts now that they are properly initialized
	at the time of tool_options creation:

	* app/tools/gimpblendtool.c: use tool_info->context, not
	gimp_get_user_context() to get/set the tool's gradient.

	* app/paint/gimppaintcore.[ch] (gimp_paint_core_start): added a
	GimpPaintOptions paramater and get the brush to use from
	paint_options->context (instead of gimp_get_current_context()).

	* app/paint/gimppaintcore-stroke.c
	* app/tools/gimppainttool.c: changed accordingly.

	* app/tools/paint_options.c: added a brush preview to the paint
	options.
2002-06-17 10:34:28 +00:00
..
.cvsignore Core/UI separation for the paint tools: 2002-02-14 19:31:16 +00:00
gimpairbrush.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpairbrush.h app/core/Makefile.am new object for registering GimpPaintCore subclasses, 2002-02-27 13:57:49 +00:00
gimpclone.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpclone.h removed all global variables, factored out duplicated code, cleanup. 2002-05-31 22:28:04 +00:00
gimpconvolve.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpconvolve.h app/base/Makefile.am app/base/base-enums.c app/core/Makefile.am 2002-03-19 19:17:31 +00:00
gimpdodgeburn.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpdodgeburn.h Paint cleanup: 2002-06-09 13:56:09 +00:00
gimperaser.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimperaser.h app/core/Makefile.am new object for registering GimpPaintCore subclasses, 2002-02-27 13:57:49 +00:00
gimpink-blob.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
gimpink-blob.h Michael Natterer <mitch@gimp.org> 2001-12-03 13:44:59 +00:00
gimpink.c renamed gimp_drawable_apply_image() to gimp_drawable_push_undo() because 2002-06-06 19:44:05 +00:00
gimpink.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimppaintbrush.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimppaintbrush.h app/core/Makefile.am new object for registering GimpPaintCore subclasses, 2002-02-27 13:57:49 +00:00
gimppaintcore-kernels.h Core/UI separation for the paint tools: 2002-02-14 19:31:16 +00:00
gimppaintcore-stroke.c Separated tool_options creation from tool registration so we don't 2002-06-17 10:34:28 +00:00
gimppaintcore-stroke.h added gimp_paint_core_stroke_vectors() which strokes the whole vector 2002-02-26 03:19:47 +00:00
gimppaintcore.c Separated tool_options creation from tool registration so we don't 2002-06-17 10:34:28 +00:00
gimppaintcore.h Separated tool_options creation from tool registration so we don't 2002-06-17 10:34:28 +00:00
gimppaintoptions.c i don't know what i was thinking, but GimpPaintOptions.context *is* used, 2002-06-04 11:34:58 +00:00
gimppaintoptions.h i don't know what i was thinking, but GimpPaintOptions.context *is* used, 2002-06-04 11:34:58 +00:00
gimppencil.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimppencil.h app/core/Makefile.am new object for registering GimpPaintCore subclasses, 2002-02-27 13:57:49 +00:00
gimpsmudge.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpsmudge.h Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpsourcecore.c Paint cleanup: 2002-06-09 13:56:09 +00:00
gimpsourcecore.h removed all global variables, factored out duplicated code, cleanup. 2002-05-31 22:28:04 +00:00
Makefile.am app/base/Makefile.am automake-1.6 seems to use yet another variable to 2002-06-07 23:00:46 +00:00
makefile.msc #define GETTEXT_PACKAGE 2002-03-28 00:10:56 +00:00
paint-enums.c app/base/Makefile.am app/base/base-enums.c app/core/Makefile.am 2002-03-19 19:17:31 +00:00
paint-enums.h app/base/Makefile.am app/base/base-enums.c app/core/Makefile.am 2002-03-19 19:17:31 +00:00
paint-types.h app/paint/Makefile.am app/paint/paint-enums.h split enums into their own 2002-03-19 15:05:38 +00:00
paint.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
paint.h Added some kind of paint core registry. It's ugly and will change... 2002-02-26 02:00:02 +00:00