Example #1
0
static void
gimp_bucket_fill_tool_init (GimpBucketFillTool *bucket_fill_tool)
{
  GimpTool *tool = GIMP_TOOL (bucket_fill_tool);

  gimp_tool_control_set_scroll_lock     (tool->control, TRUE);
  gimp_tool_control_set_wants_click     (tool->control, TRUE);
  gimp_tool_control_set_tool_cursor     (tool->control,
                                         GIMP_TOOL_CURSOR_BUCKET_FILL);
  gimp_tool_control_set_action_value_1  (tool->control,
                                         "context/context-opacity-set");
  gimp_tool_control_set_action_object_1 (tool->control,
                                         "context/context-pattern-select-set");
}
Example #2
0
static void
gimp_blend_tool_init (GimpBlendTool *blend_tool)
{
    GimpTool *tool = GIMP_TOOL (blend_tool);

    gimp_tool_control_set_scroll_lock     (tool->control, TRUE);
    gimp_tool_control_set_precision       (tool->control,
                                           GIMP_CURSOR_PRECISION_SUBPIXEL);
    gimp_tool_control_set_tool_cursor     (tool->control,
                                           GIMP_TOOL_CURSOR_BLEND);
    gimp_tool_control_set_action_value_1  (tool->control,
                                           "context/context-opacity-set");
    gimp_tool_control_set_action_object_1 (tool->control,
                                           "context/context-gradient-select-set");
}