static void gimp_airbrush_tool_init (GimpAirbrushTool *airbrush) { GimpTool *tool = GIMP_TOOL (airbrush); gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_AIRBRUSH); gimp_paint_tool_enable_color_picker (GIMP_PAINT_TOOL (airbrush), GIMP_COLOR_PICK_MODE_FOREGROUND); }
static void gimp_mybrush_tool_init (GimpMybrushTool *mybrush_tool) { GimpTool *tool = GIMP_TOOL (mybrush_tool); gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_INK); gimp_tool_control_set_action_size (tool->control, "tools/tools-mybrush-radius-set"); gimp_paint_tool_enable_color_picker (GIMP_PAINT_TOOL (mybrush_tool), GIMP_COLOR_PICK_MODE_FOREGROUND); }
static void gimp_ink_tool_init (GimpInkTool *ink_tool) { GimpTool *tool = GIMP_TOOL (ink_tool); gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_INK); gimp_tool_control_set_action_value_2 (tool->control, "tools/tools-ink-blob-size-set"); gimp_tool_control_set_action_value_3 (tool->control, "tools/tools-ink-blob-aspect-set"); gimp_tool_control_set_action_value_4 (tool->control, "tools/tools-ink-blob-angle-set"); gimp_paint_tool_enable_color_picker (GIMP_PAINT_TOOL (ink_tool), GIMP_COLOR_PICK_MODE_FOREGROUND); }
static void gimp_eraser_tool_init (GimpEraserTool *eraser) { GimpTool *tool = GIMP_TOOL (eraser); GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (eraser); gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_ERASER); gimp_tool_control_set_toggle_cursor_modifier (tool->control, GIMP_CURSOR_MODIFIER_MINUS); gimp_paint_tool_enable_color_picker (paint_tool, GIMP_COLOR_PICK_MODE_BACKGROUND); paint_tool->status = _("Click to erase"); paint_tool->status_line = _("Click to erase the line"); paint_tool->status_ctrl = _("%s to pick a background color"); }