Commit 6c7f0c68 authored byBrowse files
added gimp_tool_get_options() so tools don't need to incude
2006-09-05 Michael Natterer <email@example.com> * app/tools/gimptool.[ch]: added gimp_tool_get_options() so tools don't need to incude "core/gimptoolinfo.h" just to get to their options. * app/tools/gimp*tool.h: added macros GIMP_FOO_TOOL_GET_OPTIONS() which return specific tool options types and do all casting themselves. * app/tools/*.c: use the new macros and don't include "core/gimptoolinfo.h" in most files. * app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_register): make it use the parent context's FG and BG. * app/tools/gimpcolortool.c (gimp_color_tool_real_picked): set the color on the tool's options, not on the user context.
Showing with 288 additions and 476 deletions