app: action names set in GimpToolControl don't need the group name appended.

Not with the new GAction-based actions.
This commit is contained in:
Jehan 2023-02-26 19:53:24 +01:00
parent 082bec3721
commit 4776b092bd
14 changed files with 31 additions and 31 deletions

View file

@ -114,21 +114,21 @@ gimp_brush_tool_init (GimpBrushTool *brush_tool)
GimpTool *tool = GIMP_TOOL (brush_tool);
gimp_tool_control_set_action_pixel_size (tool->control,
"tools/tools-paintbrush-pixel-size-set");
"tools-paintbrush-pixel-size-set");
gimp_tool_control_set_action_size (tool->control,
"tools/tools-paintbrush-size-set");
"tools-paintbrush-size-set");
gimp_tool_control_set_action_aspect (tool->control,
"tools/tools-paintbrush-aspect-ratio-set");
"tools-paintbrush-aspect-ratio-set");
gimp_tool_control_set_action_angle (tool->control,
"tools/tools-paintbrush-angle-set");
"tools-paintbrush-angle-set");
gimp_tool_control_set_action_spacing (tool->control,
"tools/tools-paintbrush-spacing-set");
"tools-paintbrush-spacing-set");
gimp_tool_control_set_action_hardness (tool->control,
"tools/tools-paintbrush-hardness-set");
"tools-paintbrush-hardness-set");
gimp_tool_control_set_action_force (tool->control,
"tools/tools-paintbrush-force-set");
"tools-paintbrush-force-set");
gimp_tool_control_set_action_object_1 (tool->control,
"context/context-brush-select-set");
"context-brush-select-set");
}
static void

View file

@ -200,9 +200,9 @@ gimp_bucket_fill_tool_init (GimpBucketFillTool *bucket_fill_tool)
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_BUCKET_FILL);
gimp_tool_control_set_action_opacity (tool->control,
"context/context-opacity-set");
"context-opacity-set");
gimp_tool_control_set_action_object_1 (tool->control,
"context/context-pattern-select-set");
"context-pattern-select-set");
bucket_fill_tool->priv =
gimp_bucket_fill_tool_get_instance_private (bucket_fill_tool);

View file

@ -85,7 +85,7 @@ gimp_clone_tool_init (GimpCloneTool *clone)
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_CLONE);
gimp_tool_control_set_action_object_2 (tool->control,
"context/context-pattern-select-set");
"context-pattern-select-set");
paint_tool->status = _("Click to clone");
paint_tool->status_ctrl = _("%s to set a new clone source");

View file

@ -174,7 +174,7 @@ gimp_color_tool_init (GimpColorTool *color_tool)
GimpTool *tool = GIMP_TOOL (color_tool);
gimp_tool_control_set_action_size (tool->control,
"tools/tools-color-average-radius-set");
"tools-color-average-radius-set");
}
static void

View file

@ -248,7 +248,7 @@ gimp_foreground_select_tool_init (GimpForegroundSelectTool *fg_select)
GIMP_TOOL_CURSOR_FREE_SELECT);
gimp_tool_control_set_action_size (tool->control,
"tools/tools-foreground-select-brush-size-set");
"tools-foreground-select-brush-size-set");
fg_select->state = MATTING_STATE_FREE_SELECT;
fg_select->grayscale_preview = NULL;

View file

@ -215,9 +215,9 @@ gimp_gradient_tool_init (GimpGradientTool *gradient_tool)
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_GRADIENT);
gimp_tool_control_set_action_opacity (tool->control,
"context/context-opacity-set");
"context-opacity-set");
gimp_tool_control_set_action_object_1 (tool->control,
"context/context-gradient-select-set");
"context-gradient-select-set");
gimp_draw_tool_set_default_status (GIMP_DRAW_TOOL (tool),
_("Click-Drag to draw a gradient"));

View file

@ -93,13 +93,13 @@ gimp_ink_tool_init (GimpInkTool *ink_tool)
gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_INK);
gimp_tool_control_set_action_pixel_size (tool->control,
"tools/tools-ink-blob-pixel-size-set");
"tools-ink-blob-pixel-size-set");
gimp_tool_control_set_action_size (tool->control,
"tools/tools-ink-blob-size-set");
"tools-ink-blob-size-set");
gimp_tool_control_set_action_aspect (tool->control,
"tools/tools-ink-blob-aspect-set");
"tools-ink-blob-aspect-set");
gimp_tool_control_set_action_angle (tool->control,
"tools/tools-ink-blob-angle-set");
"tools-ink-blob-angle-set");
gimp_paint_tool_enable_color_picker (GIMP_PAINT_TOOL (ink_tool),
GIMP_COLOR_PICK_TARGET_FOREGROUND);

View file

@ -96,11 +96,11 @@ gimp_mybrush_tool_init (GimpMybrushTool *mybrush_tool)
gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_INK);
gimp_tool_control_set_action_size (tool->control,
"tools/tools-mypaint-brush-radius-set");
"tools-mypaint-brush-radius-set");
gimp_tool_control_set_action_pixel_size (tool->control,
"tools/tools-mypaint-brush-pixel-size-set");
"tools-mypaint-brush-pixel-size-set");
gimp_tool_control_set_action_hardness (tool->control,
"tools/tools-mypaint-brush-hardness-set");
"tools-mypaint-brush-hardness-set");
gimp_paint_tool_enable_color_picker (GIMP_PAINT_TOOL (mybrush_tool),
GIMP_COLOR_PICK_TARGET_FOREGROUND);

View file

@ -211,10 +211,10 @@ gimp_paint_select_tool_init (GimpPaintSelectTool *ps_tool)
gimp_tool_control_set_cursor_modifier (tool->control,
GIMP_CURSOR_MODIFIER_PLUS);
gimp_tool_control_set_action_pixel_size (tool->control,
"tools/tools-paint-select-pixel-size-set");
"tools-paint-select-pixel-size-set");
/* TODO: the size-set action is not implemented. */
gimp_tool_control_set_action_size (tool->control,
"tools/tools-paint-select-size-set");
"tools-paint-select-size-set");
ps_tool->image_mask = NULL;
ps_tool->trimap = NULL;
ps_tool->drawable = NULL;

View file

@ -158,7 +158,7 @@ gimp_paint_tool_init (GimpPaintTool *paint_tool)
gimp_tool_control_set_motion_mode (tool->control, GIMP_MOTION_MODE_EXACT);
gimp_tool_control_set_scroll_lock (tool->control, TRUE);
gimp_tool_control_set_action_opacity (tool->control,
"context/context-opacity-set");
"context-opacity-set");
paint_tool->active = TRUE;
paint_tool->pick_colors = FALSE;

View file

@ -185,7 +185,7 @@ gimp_perspective_clone_tool_init (GimpPerspectiveCloneTool *clone_tool)
GimpTool *tool = GIMP_TOOL (clone_tool);
gimp_tool_control_set_action_object_2 (tool->control,
"context/context-pattern-select-set");
"context-pattern-select-set");
gimp_matrix3_identity (&clone_tool->transform);
gimp_paint_tool_enable_multi_paint (GIMP_PAINT_TOOL (clone_tool));

View file

@ -275,7 +275,7 @@ gimp_text_tool_init (GimpTextTool *text_tool)
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_TEXT);
gimp_tool_control_set_action_object_1 (tool->control,
"context/context-font-select-set");
"context-font-select-set");
}
static void

View file

@ -310,7 +310,7 @@ gimp_transform_grid_tool_init (GimpTransformGridTool *tg_tool)
gimp_tool_control_set_cursor (tool->control,
GIMP_CURSOR_CROSSHAIR_SMALL);
gimp_tool_control_set_action_opacity (tool->control,
"tools/tools-transform-preview-opacity-set");
"tools-transform-preview-opacity-set");
tg_tool->strokes = g_ptr_array_new ();
}

View file

@ -227,11 +227,11 @@ gimp_warp_tool_init (GimpWarpTool *self)
GIMP_TOOL_CURSOR_WARP);
gimp_tool_control_set_action_pixel_size (tool->control,
"tools/tools-warp-effect-pixel-size-set");
"tools-warp-effect-pixel-size-set");
gimp_tool_control_set_action_size (tool->control,
"tools/tools-warp-effect-size-set");
"tools-warp-effect-size-set");
gimp_tool_control_set_action_hardness (tool->control,
"tools/tools-warp-effect-hardness-set");
"tools-warp-effect-hardness-set");
self->show_cursor = TRUE;
self->draw_brush = TRUE;