From 496b3907249c5cf7140885a4cb29bb305759b1d5 Mon Sep 17 00:00:00 2001 From: Jacob Boerema Date: Fri, 10 Jan 2025 13:52:49 -0500 Subject: [PATCH] app: add help-ids to the vector tool path actions These were missing help ids and don't have tooltips either, while some of these actions may not be clear to end users what they do. This will allow us to have context sensitive help about these commands in the manual. --- app/actions/vector-toolpath-actions.c | 10 +++++----- app/widgets/gimphelp-ids.h | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/actions/vector-toolpath-actions.c b/app/actions/vector-toolpath-actions.c index 383304cdf4..73d4ffb9a7 100644 --- a/app/actions/vector-toolpath-actions.c +++ b/app/actions/vector-toolpath-actions.c @@ -44,24 +44,24 @@ static const GimpActionEntry vector_toolpath_actions[] = { "vector-toolpath-delete-anchor", GIMP_ICON_PATH, NC_("vector-toolpath-action", "_Delete Anchor"), NULL, { NULL }, NULL, vector_toolpath_delete_anchor_cmd_callback, - NULL }, + GIMP_HELP_PATH_TOOL_DELETE_ANCHOR }, { "vector-toolpath-shift-start", GIMP_ICON_PATH, NC_("vector-toolpath-action", "Shift S_tart"), NULL, { NULL }, NULL, vector_toolpath_shift_start_cmd_callback, - NULL }, + GIMP_HELP_PATH_TOOL_SHIFT_START }, { "vector-toolpath-insert-anchor", GIMP_ICON_PATH, NC_("vector-toolpath-action", "_Insert Anchor"), NULL, { NULL }, NULL, vector_toolpath_insert_anchor_cmd_callback, - NULL }, + GIMP_HELP_PATH_TOOL_INSERT_ANCHOR }, { "vector-toolpath-delete-segment", GIMP_ICON_PATH, NC_("vector-toolpath-action", "Delete _Segment"), NULL, { NULL }, NULL, vector_toolpath_delete_segment_cmd_callback, - NULL }, + GIMP_HELP_PATH_TOOL_DELETE_SEGMENT }, { "vector-toolpath-reverse-stroke", GIMP_ICON_PATH, NC_("vector-toolpath-action", "_Reverse Stroke"), NULL, { NULL }, NULL, vector_toolpath_reverse_stroke_cmd_callback, - NULL } + GIMP_HELP_PATH_TOOL_REVERSE_STROKE } }; diff --git a/app/widgets/gimphelp-ids.h b/app/widgets/gimphelp-ids.h index 403670f4e6..48a8d137ca 100644 --- a/app/widgets/gimphelp-ids.h +++ b/app/widgets/gimphelp-ids.h @@ -295,6 +295,12 @@ #define GIMP_HELP_PATH_EXPORT "gimp-path-export" #define GIMP_HELP_PATH_EDIT "gimp-path-edit" +#define GIMP_HELP_PATH_TOOL_DELETE_ANCHOR "gimp-path-path-tool-delete-anchor" +#define GIMP_HELP_PATH_TOOL_DELETE_SEGMENT "gimp-path-path-tool-delete-segment" +#define GIMP_HELP_PATH_TOOL_INSERT_ANCHOR "gimp-path-path-tool-insert-anchor" +#define GIMP_HELP_PATH_TOOL_REVERSE_STROKE "gimp-path-path-tool-reverse-stroke" +#define GIMP_HELP_PATH_TOOL_SHIFT_START "gimp-path-path-tool-shift-start" + #define GIMP_HELP_TEXT_TOOL_CUT "gimp-text-tool-cut" #define GIMP_HELP_TEXT_TOOL_COPY "gimp-text-tool-copy" #define GIMP_HELP_TEXT_TOOL_PASTE "gimp-text-tool-paste"