context-actions.c 58.5 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
2 3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
4
 * This program is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
7 8 9 10 11 12 13 14
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16 17 18 19
 */

#include "config.h"

20
#include <gegl.h>
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#include <gtk/gtk.h>

#include "libgimpwidgets/gimpwidgets.h"

#include "actions-types.h"

#include "core/gimp.h"
#include "core/gimpbrushgenerated.h"
#include "core/gimpcontext.h"
#include "core/gimplist.h"

#include "widgets/gimpactiongroup.h"
#include "widgets/gimphelp-ids.h"

#include "actions.h"
#include "context-actions.h"
#include "context-commands.h"

#include "gimp-intl.h"


/*  local function prototypes  */

44
static const GimpActionEntry context_actions[] =
45
{
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  { "context-menu",            NULL,                     NC_("context-action",
                                                             "_Context")    },
  { "context-colors-menu",     GIMP_ICON_COLORS_DEFAULT, NC_("context-action",
                                                             "_Colors")     },
  { "context-opacity-menu",    GIMP_ICON_TRANSPARENCY,   NC_("context-action",
                                                             "_Opacity")    },
  { "context-paint-mode-menu", GIMP_ICON_TOOL_PENCIL,    NC_("context-action",
                                                             "Paint _Mode") },
  { "context-tool-menu",       GIMP_ICON_DIALOG_TOOLS,   NC_("context-action",
                                                             "_Tool")       },
  { "context-brush-menu",      GIMP_ICON_BRUSH,          NC_("context-action",
                                                             "_Brush")      },
  { "context-pattern-menu",    GIMP_ICON_PATTERN,        NC_("context-action",
                                                             "_Pattern")    },
  { "context-palette-menu",    GIMP_ICON_PALETTE,        NC_("context-action",
                                                             "_Palette")    },
  { "context-gradient-menu",   GIMP_ICON_GRADIENT,       NC_("context-action",
                                                             "_Gradient")   },
  { "context-font-menu",       GIMP_ICON_FONT,           NC_("context-action",
                                                             "_Font")       },
66

67 68 69 70 71 72 73 74 75 76 77 78
  { "context-brush-shape-menu",    NULL,                 NC_("context-action",
                                                             "_Shape")      },
  { "context-brush-radius-menu",   NULL,                 NC_("context-action",
                                                             "_Radius")     },
  { "context-brush-spikes-menu",   NULL,                 NC_("context-action",
                                                             "S_pikes")     },
  { "context-brush-hardness-menu", NULL,                 NC_("context-action",
                                                             "_Hardness")   },
  { "context-brush-aspect-menu",   NULL,                 NC_("context-action",
                                                             "_Aspect Ratio")},
  { "context-brush-angle-menu",    NULL,                 NC_("context-action",
                                                             "A_ngle")      },
79

80
  { "context-colors-default", GIMP_ICON_COLORS_DEFAULT,
81
    NC_("context-action", "_Default Colors"), "D",
82 83
    NC_("context-action",
        "Set foreground color to black, background color to white"),
84 85 86
    G_CALLBACK (context_colors_default_cmd_callback),
    GIMP_HELP_TOOLBOX_DEFAULT_COLORS },

87
  { "context-colors-swap", GIMP_ICON_COLORS_SWAP,
88
    NC_("context-action", "S_wap Colors"), "X",
89
    NC_("context-action", "Exchange foreground and background colors"),
90 91 92 93
    G_CALLBACK (context_colors_swap_cmd_callback),
    GIMP_HELP_TOOLBOX_SWAP_COLORS }
};

94 95
static GimpEnumActionEntry context_palette_foreground_actions[] =
{
96
  { "context-palette-foreground-set", GIMP_ICON_PALETTE,
97
    NC_("context-action", "Foreground: Set Color From Palette"), NULL, NULL,
98 99
    GIMP_ACTION_SELECT_SET, FALSE,
    NULL },
100
  { "context-palette-foreground-first", GIMP_ICON_PALETTE,
101
    NC_("context-action", "Foreground: Use First Palette Color"), NULL, NULL,
102 103
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
104
  { "context-palette-foreground-last", GIMP_ICON_PALETTE,
105
    NC_("context-action", "Foreground: Use Last Palette Color"), NULL, NULL,
106 107
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
108
  { "context-palette-foreground-previous", GIMP_ICON_PALETTE,
109
    NC_("context-action", "Foreground: Use Previous Palette Color"), NULL, NULL,
110 111
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
112
  { "context-palette-foreground-next", GIMP_ICON_PALETTE,
113
    NC_("context-action", "Foreground: Use Next Palette Color"), NULL, NULL,
114 115
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
116
  { "context-palette-foreground-previous-skip", GIMP_ICON_PALETTE,
117
    NC_("context-action", "Foreground: Skip Back Palette Color"), NULL, NULL,
118 119
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
120
  { "context-palette-foreground-next-skip", GIMP_ICON_PALETTE,
121
    NC_("context-action", "Foreground: Skip Forward Palette Color"), NULL, NULL,
122 123 124 125 126 127
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

static GimpEnumActionEntry context_palette_background_actions[] =
{
128
  { "context-palette-background-set", GIMP_ICON_PALETTE,
129
    NC_("context-action", "Background: Set Color From Palette"), NULL, NULL,
130 131
    GIMP_ACTION_SELECT_SET, FALSE,
    NULL },
132
  { "context-palette-background-first", GIMP_ICON_PALETTE,
133
    NC_("context-action", "Background: Use First Palette Color"), NULL, NULL,
134 135
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
136
  { "context-palette-background-last", GIMP_ICON_PALETTE,
137
    NC_("context-action", "Background: Use Last Palette Color"), NULL, NULL,
138 139
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
140
  { "context-palette-background-previous", GIMP_ICON_PALETTE,
141
    NC_("context-action", "Background: Use Previous Palette Color"), NULL, NULL,
142 143
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
144
  { "context-palette-background-next", GIMP_ICON_PALETTE,
145
    NC_("context-action", "Background: Use Next Palette Color"), NULL, NULL,
146 147
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
148
  { "context-palette-background-previous-skip", GIMP_ICON_PALETTE,
149
    NC_("context-action", "Background: Skip Back Palette Color"), NULL, NULL,
150 151
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
152
  { "context-palette-background-next-skip", GIMP_ICON_PALETTE,
153
    NC_("context-action", "Background: Skip Forward Palette Color"), NULL, NULL,
154 155 156 157 158 159
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

static GimpEnumActionEntry context_colormap_foreground_actions[] =
{
160
  { "context-colormap-foreground-set", GIMP_ICON_COLORMAP,
161
    NC_("context-action", "Foreground: Set Color From Colormap"), NULL, NULL,
162 163
    GIMP_ACTION_SELECT_SET, FALSE,
    NULL },
164
  { "context-colormap-foreground-first", GIMP_ICON_COLORMAP,
165
    NC_("context-action", "Foreground: Use First Color From Colormap"), NULL, NULL,
166 167
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
168
  { "context-colormap-foreground-last", GIMP_ICON_COLORMAP,
169
    NC_("context-action", "Foreground: Use Last Color From Colormap"), NULL, NULL,
170 171
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
172
  { "context-colormap-foreground-previous", GIMP_ICON_COLORMAP,
173
    NC_("context-action", "Foreground: Use Previous Color From Colormap"), NULL, NULL,
174 175
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
176
  { "context-colormap-foreground-next", GIMP_ICON_COLORMAP,
177
    NC_("context-action", "Foreground: Use Next Color From Colormap"), NULL, NULL,
178 179
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
180
  { "context-colormap-foreground-previous-skip", GIMP_ICON_COLORMAP,
181
    NC_("context-action", "Foreground: Skip Back Color From Colormap"), NULL, NULL,
182 183
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
184
  { "context-colormap-foreground-next-skip", GIMP_ICON_COLORMAP,
185
    NC_("context-action", "Foreground: Skip Forward Color From Colormap"), NULL, NULL,
186 187 188 189 190 191
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

static GimpEnumActionEntry context_colormap_background_actions[] =
{
192
  { "context-colormap-background-set", GIMP_ICON_COLORMAP,
193
    NC_("context-action", "Background: Set Color From Colormap"), NULL, NULL,
194 195
    GIMP_ACTION_SELECT_SET, FALSE,
    NULL },
196
  { "context-colormap-background-first", GIMP_ICON_COLORMAP,
197
    NC_("context-action", "Background: Use First Color From Colormap"), NULL, NULL,
198 199
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
200
  { "context-colormap-background-last", GIMP_ICON_COLORMAP,
201
    NC_("context-action", "Background: Use Last Color From Colormap"), NULL, NULL,
202 203
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
204
  { "context-colormap-background-previous", GIMP_ICON_COLORMAP,
205
    NC_("context-action", "Background: Use Previous Color From Colormap"), NULL, NULL,
206 207
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
208
  { "context-colormap-background-next", GIMP_ICON_COLORMAP,
209
    NC_("context-action", "Background: Use Next Color From Colormap"), NULL, NULL,
210 211
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
212
  { "context-colormap-background-previous-skip", GIMP_ICON_COLORMAP,
213
    NC_("context-action", "Background: Skip Back Color From Colormap"), NULL, NULL,
214 215
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
216
  { "context-colormap-background-next-skip", GIMP_ICON_COLORMAP,
217
    NC_("context-action", "Background: Skip Forward Color From Colormap"), NULL, NULL,
218 219 220 221 222 223
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

static GimpEnumActionEntry context_swatch_foreground_actions[] =
{
224
  { "context-swatch-foreground-set", GIMP_ICON_PALETTE,
225
    NC_("context-action", "Foreground: Set Color From Swatch"), NULL, NULL,
226 227
    GIMP_ACTION_SELECT_SET, FALSE,
    NULL },
228
  { "context-swatch-foreground-first", GIMP_ICON_PALETTE,
229
    NC_("context-action", "Foreground: Use First Color From Swatch"), NULL, NULL,
230 231
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
232
  { "context-swatch-foreground-last", GIMP_ICON_PALETTE,
233
    NC_("context-action", "Foreground: Use Last Color From Swatch"), NULL, NULL,
234 235
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
236
  { "context-swatch-foreground-previous", GIMP_ICON_PALETTE,
237
    NC_("context-action", "Foreground: Use Previous Color From Swatch"), "9", NULL,
238 239
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
240
  { "context-swatch-foreground-next", GIMP_ICON_PALETTE,
241
    NC_("context-action", "Foreground: Use Next Color From Swatch"), "0", NULL,
242 243
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
244
  { "context-swatch-foreground-previous-skip", GIMP_ICON_PALETTE,
245
    NC_("context-action", "Foreground: Skip Back Color From Swatch"), NULL, NULL,
246 247
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
248
  { "context-swatch-foreground-next-skip", GIMP_ICON_PALETTE,
249
    NC_("context-action", "Foreground: Skip Forward Color From Swatch"), NULL, NULL,
250 251 252 253 254 255
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

static GimpEnumActionEntry context_swatch_background_actions[] =
{
256
  { "context-swatch-background-set", GIMP_ICON_PALETTE,
257
    NC_("context-action", "Background: Set Color From Swatch"), NULL, NULL,
258 259
    GIMP_ACTION_SELECT_SET, FALSE,
    NULL },
260
  { "context-swatch-background-first", GIMP_ICON_PALETTE,
261
    NC_("context-action", "Background: Use First Color From Swatch"), NULL, NULL,
262 263
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
264
  { "context-swatch-background-last", GIMP_ICON_PALETTE,
265
    NC_("context-action", "Background: Use Last Color From Swatch"), NULL, NULL,
266 267
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
268
  { "context-swatch-background-previous", GIMP_ICON_PALETTE,
269
    NC_("context-action", "Background: Use Previous Color From Swatch"), NULL, NULL,
270 271
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
272
  { "context-swatch-background-next", GIMP_ICON_PALETTE,
273
    NC_("context-action", "Background: Use Next Color From Swatch"), NULL, NULL,
274 275
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
276
  { "context-swatch-background-previous-skip", GIMP_ICON_PALETTE,
277
    NC_("context-action", "Background: Skip Color Back From Swatch"), NULL, NULL,
278 279
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
280
  { "context-swatch-background-next-skip", GIMP_ICON_PALETTE,
281
    NC_("context-action", "Background: Skip Color Forward From Swatch"), NULL, NULL,
282 283 284 285
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

286
static const GimpEnumActionEntry context_foreground_red_actions[] =
287
{
288
  { "context-foreground-red-set", GIMP_ICON_CHANNEL_RED,
289
    NC_("context-action", "Foreground Red: Set"), NULL, NULL,
290
    GIMP_ACTION_SELECT_SET, TRUE,
291
    NULL },
292
  { "context-foreground-red-minimum", GIMP_ICON_CHANNEL_RED,
293
    NC_("context-action", "Foreground Red: Set to Minimum"), NULL, NULL,
294
    GIMP_ACTION_SELECT_FIRST, FALSE,
295
    NULL },
296
  { "context-foreground-red-maximum", GIMP_ICON_CHANNEL_RED,
297
    NC_("context-action", "Foreground Red: Set to Maximum"), NULL, NULL,
298
    GIMP_ACTION_SELECT_LAST, FALSE,
299
    NULL },
300
  { "context-foreground-red-decrease", GIMP_ICON_CHANNEL_RED,
301
    NC_("context-action", "Foreground Red: Decrease by 1%"), NULL, NULL,
302
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
303
    NULL },
304
  { "context-foreground-red-increase", GIMP_ICON_CHANNEL_RED,
305
    NC_("context-action", "Foreground Red: Increase by 1%"), NULL, NULL,
306
    GIMP_ACTION_SELECT_NEXT, FALSE,
307
    NULL },
308
  { "context-foreground-red-decrease-skip", GIMP_ICON_CHANNEL_RED,
309
    NC_("context-action", "Foreground Red: Decrease by 10%"), NULL, NULL,
310
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
311
    NULL },
312
  { "context-foreground-red-increase-skip", GIMP_ICON_CHANNEL_RED,
313
    NC_("context-action", "Foreground Red: Increase by 10%"), NULL, NULL,
314
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
315 316 317
    NULL }
};

318
static const GimpEnumActionEntry context_foreground_green_actions[] =
319
{
320
  { "context-foreground-green-set", GIMP_ICON_CHANNEL_GREEN,
321
    NC_("context-action", "Foreground Green: Set"), NULL, NULL,
322
    GIMP_ACTION_SELECT_SET, TRUE,
323
    NULL },
324
  { "context-foreground-green-minimum", GIMP_ICON_CHANNEL_GREEN,
325
    NC_("context-action", "Foreground Green: Set to Minimum"), NULL, NULL,
326
    GIMP_ACTION_SELECT_FIRST, FALSE,
327
    NULL },
328
  { "context-foreground-green-maximum", GIMP_ICON_CHANNEL_GREEN,
329
    NC_("context-action", "Foreground Green: Set to Maximum"), NULL, NULL,
330
    GIMP_ACTION_SELECT_LAST, FALSE,
331
    NULL },
332
  { "context-foreground-green-decrease", GIMP_ICON_CHANNEL_GREEN,
333
    NC_("context-action", "Foreground Green: Decrease by 1%"), NULL, NULL,
334
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
335
    NULL },
336
  { "context-foreground-green-increase", GIMP_ICON_CHANNEL_GREEN,
337
    NC_("context-action", "Foreground Green: Increase by 1%"), NULL, NULL,
338
    GIMP_ACTION_SELECT_NEXT, FALSE,
339
    NULL },
340
  { "context-foreground-green-decrease-skip", GIMP_ICON_CHANNEL_GREEN,
341
    NC_("context-action", "Foreground Green: Decrease by 10%"), NULL, NULL,
342
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
343
    NULL },
344
  { "context-foreground-green-increase-skip", GIMP_ICON_CHANNEL_GREEN,
345
    NC_("context-action", "Foreground Green: Increase by 10%"), NULL, NULL,
346
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
347 348 349
    NULL }
};

350
static const GimpEnumActionEntry context_foreground_blue_actions[] =
351
{
352
  { "context-foreground-blue-set", GIMP_ICON_CHANNEL_BLUE,
353
    NC_("context-action", "Foreground Blue: Set"), NULL, NULL,
354
    GIMP_ACTION_SELECT_SET, TRUE,
355
    NULL },
356
  { "context-foreground-blue-minimum", GIMP_ICON_CHANNEL_BLUE,
357
    NC_("context-action", "Foreground Blue: Set to Minimum"), NULL, NULL,
358
    GIMP_ACTION_SELECT_FIRST, FALSE,
359
    NULL },
360
  { "context-foreground-blue-maximum", GIMP_ICON_CHANNEL_BLUE,
361
    NC_("context-action", "Foreground Blue: Set to Maximum"), NULL, NULL,
362
    GIMP_ACTION_SELECT_LAST, FALSE,
363
    NULL },
364
  { "context-foreground-blue-decrease", GIMP_ICON_CHANNEL_BLUE,
365
    NC_("context-action", "Foreground Blue: Decrease by 1%"), NULL, NULL,
366
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
367
    NULL },
368
  { "context-foreground-blue-increase", GIMP_ICON_CHANNEL_BLUE,
369
    NC_("context-action", "Foreground Blue: Increase by 1%"), NULL, NULL,
370
    GIMP_ACTION_SELECT_NEXT, FALSE,
371
    NULL },
372
  { "context-foreground-blue-decrease-skip", GIMP_ICON_CHANNEL_BLUE,
373
    NC_("context-action", "Foreground Blue: Decrease by 10%"), NULL, NULL,
374
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
375
    NULL },
376
  { "context-foreground-blue-increase-skip", GIMP_ICON_CHANNEL_BLUE,
377
    NC_("context-action", "Foreground Blue: Increase by 10%"), NULL, NULL,
378
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
379 380 381
    NULL }
};

382
static const GimpEnumActionEntry context_background_red_actions[] =
383
{
384
  { "context-background-red-set", GIMP_ICON_CHANNEL_RED,
385
    NC_("context-action", "Background Red: Set"), NULL, NULL,
386
    GIMP_ACTION_SELECT_SET, TRUE,
387
    NULL },
388
  { "context-background-red-minimum", GIMP_ICON_CHANNEL_RED,
389
    NC_("context-action", "Background Red: Set to Minimum"), NULL, NULL,
390
    GIMP_ACTION_SELECT_FIRST, FALSE,
391
    NULL },
392
  { "context-background-red-maximum", GIMP_ICON_CHANNEL_RED,
393
    NC_("context-action", "Background Red: Set to Maximum"), NULL, NULL,
394
    GIMP_ACTION_SELECT_LAST, FALSE,
395
    NULL },
396
  { "context-background-red-decrease", GIMP_ICON_CHANNEL_RED,
397
    NC_("context-action", "Background Red: Decrease by 1%"), NULL, NULL,
398
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
399
    NULL },
400
  { "context-background-red-increase", GIMP_ICON_CHANNEL_RED,
401
    NC_("context-action", "Background Red: Increase by 1%"), NULL, NULL,
402
    GIMP_ACTION_SELECT_NEXT, FALSE,
403
    NULL },
404
  { "context-background-red-decrease-skip", GIMP_ICON_CHANNEL_RED,
405
    NC_("context-action", "Background Red: Decrease by 10%"), NULL, NULL,
406
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
407
    NULL },
408
  { "context-background-red-increase-skip", GIMP_ICON_CHANNEL_RED,
409
    NC_("context-action", "Background Red: Increase by 10%"), NULL, NULL,
410
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
411 412 413
    NULL }
};

414
static const GimpEnumActionEntry context_background_green_actions[] =
415
{
416
  { "context-background-green-set", GIMP_ICON_CHANNEL_GREEN,
417
    NC_("context-action", "Background Green: Set"), NULL, NULL,
418
    GIMP_ACTION_SELECT_SET, TRUE,
419
    NULL },
420
  { "context-background-green-minimum", GIMP_ICON_CHANNEL_GREEN,
421
    NC_("context-action", "Background Green: Set to Minimum"), NULL, NULL,
422
    GIMP_ACTION_SELECT_FIRST, FALSE,
423
    NULL },
424
  { "context-background-green-maximum", GIMP_ICON_CHANNEL_GREEN,
425
    NC_("context-action", "Background Green: Set to Maximum"), NULL, NULL,
426
    GIMP_ACTION_SELECT_LAST, FALSE,
427
    NULL },
428
  { "context-background-green-decrease", GIMP_ICON_CHANNEL_GREEN,
429
    NC_("context-action", "Background Green: Decrease by 1%"), NULL, NULL,
430
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
431
    NULL },
432
  { "context-background-green-increase", GIMP_ICON_CHANNEL_GREEN,
433
    NC_("context-action", "Background Green: Increase by 1%"), NULL, NULL,
434
    GIMP_ACTION_SELECT_NEXT, FALSE,
435
    NULL },
436
  { "context-background-green-decrease-skip", GIMP_ICON_CHANNEL_GREEN,
437
    NC_("context-action", "Background Green: Decrease by 10%"), NULL, NULL,
438
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
439
    NULL },
440
  { "context-background-green-increase-skip", GIMP_ICON_CHANNEL_GREEN,
441
    NC_("context-action", "Background Green: Increase by 10%"), NULL, NULL,
442
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
443 444 445
    NULL }
};

446
static const GimpEnumActionEntry context_background_blue_actions[] =
447
{
448
  { "context-background-blue-set", GIMP_ICON_CHANNEL_BLUE,
449
    NC_("context-action", "Background Blue: Set"), NULL, NULL,
450
    GIMP_ACTION_SELECT_SET, TRUE,
451
    NULL },
452
  { "context-background-blue-minimum", GIMP_ICON_CHANNEL_BLUE,
453
    NC_("context-action", "Background Blue: Set to Minimum"), NULL, NULL,
454
    GIMP_ACTION_SELECT_FIRST, FALSE,
455
    NULL },
456
  { "context-background-blue-maximum", GIMP_ICON_CHANNEL_BLUE,
457
    NC_("context-action", "Background Blue: Set to Maximum"), NULL, NULL,
458
    GIMP_ACTION_SELECT_LAST, FALSE,
459
    NULL },
460
  { "context-background-blue-decrease", GIMP_ICON_CHANNEL_BLUE,
461
    NC_("context-action", "Background Blue: Decrease by 1%"), NULL, NULL,
462
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
463
    NULL },
464
  { "context-background-blue-increase", GIMP_ICON_CHANNEL_BLUE,
465
    NC_("context-action", "Background Blue: Increase by 1%"), NULL, NULL,
466
    GIMP_ACTION_SELECT_NEXT, FALSE,
467
    NULL },
468
  { "context-background-blue-decrease-skip", GIMP_ICON_CHANNEL_BLUE,
469
    NC_("context-action", "Background Blue: Decrease by 10%"), NULL, NULL,
470
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
471
    NULL },
472
  { "context-background-blue-increase-skip", GIMP_ICON_CHANNEL_BLUE,
473
    NC_("context-action", "Background Blue: Increase by 10%"), NULL, NULL,
474
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
475 476 477
    NULL }
};

478
static const GimpEnumActionEntry context_foreground_hue_actions[] =
479
{
480
  { "context-foreground-hue-set", GIMP_ICON_TOOL_HUE_SATURATION,
481
    NC_("context-action", "Foreground Hue: Set"), NULL, NULL,
482 483
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
484
  { "context-foreground-hue-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
485
    NC_("context-action", "Foreground Hue: Set to Minimum"), NULL, NULL,
486 487
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
488
  { "context-foreground-hue-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
489
    NC_("context-action", "Foreground Hue: Set to Maximum"), NULL, NULL,
490 491
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
492
  { "context-foreground-hue-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
493
    NC_("context-action", "Foreground Hue: Decrease by 1%"), NULL, NULL,
494 495
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
496
  { "context-foreground-hue-increase", GIMP_ICON_TOOL_HUE_SATURATION,
497
    NC_("context-action", "Foreground Hue: Increase by 1%"), NULL, NULL,
498 499
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
500
  { "context-foreground-hue-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
501
    NC_("context-action", "Foreground Hue: Decrease by 10%"), NULL, NULL,
502 503
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
504
  { "context-foreground-hue-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
505
    NC_("context-action", "Foreground Hue: Increase by 10%"), NULL, NULL,
506 507 508 509
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

510
static const GimpEnumActionEntry context_foreground_saturation_actions[] =
511
{
512
  { "context-foreground-saturation-set", GIMP_ICON_TOOL_HUE_SATURATION,
513
    NC_("context-action", "Foreground Saturation: Set"), NULL, NULL,
514 515
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
516
  { "context-foreground-saturation-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
517
    NC_("context-action", "Foreground Saturation: Set to Minimum"), NULL, NULL,
518 519
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
520
  { "context-foreground-saturation-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
521
    NC_("context-action", "Foreground Saturation: Set to Maximum"), NULL, NULL,
522 523
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
524
  { "context-foreground-saturation-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
525
    NC_("context-action", "Foreground Saturation: Decrease by 1%"), NULL, NULL,
526 527
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
528
  { "context-foreground-saturation-increase", GIMP_ICON_TOOL_HUE_SATURATION,
529
    NC_("context-action", "Foreground Saturation: Increase by 1%"), NULL, NULL,
530 531
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
532
  { "context-foreground-saturation-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
533
    NC_("context-action", "Foreground Saturation: Decrease by 10%"), NULL, NULL,
534 535
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
536
  { "context-foreground-saturation-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
537
    NC_("context-action", "Foreground Saturation: Increase by 10%"), NULL, NULL,
538 539 540 541
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

542
static const GimpEnumActionEntry context_foreground_value_actions[] =
543
{
544
  { "context-foreground-value-set", GIMP_ICON_TOOL_HUE_SATURATION,
545
    NC_("context-action", "Foreground Value: Set"), NULL, NULL,
546 547
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
548
  { "context-foreground-value-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
549
    NC_("context-action", "Foreground Value: Set to Minimum"), NULL, NULL,
550 551
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
552
  { "context-foreground-value-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
553
    NC_("context-action", "Foreground Value: Set to Maximum"), NULL, NULL,
554 555
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
556
  { "context-foreground-value-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
557
    NC_("context-action", "Foreground Value: Decrease by 1%"), NULL, NULL,
558 559
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
560
  { "context-foreground-value-increase", GIMP_ICON_TOOL_HUE_SATURATION,
561
    NC_("context-action", "Foreground Value: Increase by 1%"), NULL, NULL,
562 563
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
564
  { "context-foreground-value-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
565
    NC_("context-action", "Foreground Value: Decrease by 10%"), NULL, NULL,
566 567
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
568
  { "context-foreground-value-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
569
    NC_("context-action", "Foreground Value: Increase by 10%"), NULL, NULL,
570 571 572 573
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

574
static const GimpEnumActionEntry context_background_hue_actions[] =
575
{
576
  { "context-background-hue-set", GIMP_ICON_TOOL_HUE_SATURATION,
577
    NC_("context-action", "Background Hue: Set"), NULL, NULL,
578 579
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
580
  { "context-background-hue-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
581
    NC_("context-action", "Background Hue: Set to Minimum"), NULL, NULL,
582 583
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
584
  { "context-background-hue-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
585
    NC_("context-action", "Background Hue: Set to Maximum"), NULL, NULL,
586 587
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
588
  { "context-background-hue-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
589
    NC_("context-action", "Background Hue: Decrease by 1%"), NULL, NULL,
590 591
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
592
  { "context-background-hue-increase", GIMP_ICON_TOOL_HUE_SATURATION,
593
    NC_("context-action", "Background Hue: Increase by 1%"), NULL, NULL,
594 595
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
596
  { "context-background-hue-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
597
    NC_("context-action", "Background Hue: Decrease by 10%"), NULL, NULL,
598 599
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
600
  { "context-background-hue-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
601
    NC_("context-action", "Background Hue: Increase by 10%"), NULL, NULL,
602 603 604 605
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

606
static const GimpEnumActionEntry context_background_saturation_actions[] =
607
{
608
  { "context-background-saturation-set", GIMP_ICON_TOOL_HUE_SATURATION,
609
    NC_("context-action", "Background Saturation: Set"), NULL, NULL,
610 611
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
612
  { "context-background-saturation-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
613
    NC_("context-action", "Background Saturation: Set to Minimum"), NULL, NULL,
614 615
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
616
  { "context-background-saturation-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
617
    NC_("context-action", "Background Saturation: Set to Maximum"), NULL, NULL,
618 619
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
620
  { "context-background-saturation-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
621
    NC_("context-action", "Background Saturation: Decrease by 1%"), NULL, NULL,
622 623
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
624
  { "context-background-saturation-increase", GIMP_ICON_TOOL_HUE_SATURATION,
625
    NC_("context-action", "Background Saturation: Increase by 1%"), NULL, NULL,
626 627
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
628
  { "context-background-saturation-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
Marco Ciampa's avatar
Marco Ciampa committed
629
    NC_("context-action", "Background Saturation: Decrease by 10%"), NULL, NULL,
630 631
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
632
  { "context-background-saturation-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
633
    NC_("context-action", "Background Saturation: Increase by 10%"), NULL, NULL,
634 635 636 637
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

638
static const GimpEnumActionEntry context_background_value_actions[] =
639
{
640
  { "context-background-value-set", GIMP_ICON_TOOL_HUE_SATURATION,
641
    NC_("context-action", "Background Value: Set"), NULL, NULL,
642 643
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
644
  { "context-background-value-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
645
    NC_("context-action", "Background Value: Set to Minimum"), NULL, NULL,
646 647
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
648
  { "context-background-value-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
649
    NC_("context-action", "Background Value: Set to Maximum"), NULL, NULL,
650 651
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
652
  { "context-background-value-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
653
    NC_("context-action", "Background Value: Decrease by 1%"), NULL, NULL,
654 655
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
656
  { "context-background-value-increase", GIMP_ICON_TOOL_HUE_SATURATION,
657
    NC_("context-action", "Background Value: Increase by 1%"), NULL, NULL,
658 659
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
660
  { "context-background-value-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
661
    NC_("context-action", "Background Value: Decrease by 10%"), NULL, NULL,
662 663
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
664
  { "context-background-value-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
665
    NC_("context-action", "Background Value: Increase by 10%"), NULL, NULL,
666 667 668 669
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

670
static const GimpEnumActionEntry context_opacity_actions[] =
671
{
672
  { "context-opacity-set", GIMP_ICON_TRANSPARENCY,
673
    NC_("context-action", "Tool Opacity: Set Transparency"), NULL, NULL,
674
    GIMP_ACTION_SELECT_SET, TRUE,
675
    NULL },
676
  { "context-opacity-transparent", GIMP_ICON_TRANSPARENCY,
677
    NC_("context-action", "Tool Opacity: Make Completely Transparent"), NULL, NULL,
678
    GIMP_ACTION_SELECT_FIRST, FALSE,
679
    NULL },
680
  { "context-opacity-opaque", GIMP_ICON_TRANSPARENCY,
681
    NC_("context-action", "Tool Opacity: Make Completely Opaque"), NULL, NULL,
682
    GIMP_ACTION_SELECT_LAST, FALSE,
683
    NULL },
684
  { "context-opacity-decrease", GIMP_ICON_TRANSPARENCY,
685
    NC_("context-action", "Tool Opacity: Make 1% More Transparent"), NULL, NULL,
686
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
687
    NULL },
688
  { "context-opacity-increase", GIMP_ICON_TRANSPARENCY,
689
    NC_("context-action", "Tool Opacity: Make 1% More Opaque"), NULL, NULL,
690
    GIMP_ACTION_SELECT_NEXT, FALSE,
691
    NULL },
692
  { "context-opacity-decrease-skip", GIMP_ICON_TRANSPARENCY,
693
    NC_("context-action", "Tool Opacity: Make 10% More Transparent"), NULL, NULL,
694
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
695
    NULL },
696
  { "context-opacity-increase-skip", GIMP_ICON_TRANSPARENCY,
697
    NC_("context-action", "Tool Opacity: Make 10% More Opaque"), NULL, NULL,
698
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
699 700 701
    NULL }
};

702
static const GimpEnumActionEntry context_paint_mode_actions[] =
703
{
704
  { "context-paint-mode-first", GIMP_ICON_TOOL_PENCIL,
705
    NC_("context-action", "Tool Paint Mode: Select First"), NULL, NULL,
706
    GIMP_ACTION_SELECT_FIRST, FALSE,
707
    NULL },
708
  { "context-paint-mode-last", GIMP_ICON_TOOL_PENCIL,
709
    NC_("context-action", "Tool Paint Mode: Select Last"), NULL, NULL,
710
    GIMP_ACTION_SELECT_LAST, FALSE,
711
    NULL },
712
  { "context-paint-mode-previous", GIMP_ICON_TOOL_PENCIL,
713
    NC_("context-action", "Tool Paint Mode: Select Previous"), NULL, NULL,
714
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
715
    NULL },
716
  { "context-paint-mode-next", GIMP_ICON_TOOL_PENCIL,
717
    NC_("context-action", "Tool Paint Mode: Select Next"), NULL, NULL,
718
    GIMP_ACTION_SELECT_NEXT, FALSE,
719 720 721
    NULL }
};

722
static const GimpEnumActionEntry context_tool_select_actions[] =
723
{
724
  { "context-tool-select-set", GIMP_ICON_DIALOG_TOOLS,
725
    NC_("context-action", "Tool Selection: Choose by Index"), NULL, NULL,
726 727
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
728
  { "context-tool-select-first", GIMP_ICON_DIALOG_TOOLS,
729
    NC_("context-action", "Tool Selection: Switch to First"), NULL, NULL,
730
    GIMP_ACTION_SELECT_FIRST, FALSE,
731
    NULL },
732
  { "context-tool-select-last", GIMP_ICON_DIALOG_TOOLS,
733
    NC_("context-action", "Tool Selection: Switch to Last"), NULL, NULL,
734
    GIMP_ACTION_SELECT_LAST, FALSE,
735
    NULL },
736
  { "context-tool-select-previous", GIMP_ICON_DIALOG_TOOLS,
737
    NC_("context-action", "Tool Selection: Switch to Previous"), NULL, NULL,
738
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
739
    NULL },
740
  { "context-tool-select-next", GIMP_ICON_DIALOG_TOOLS,
741
    NC_("context-action", "Tool Selection: Switch to Next"), NULL, NULL,
742
    GIMP_ACTION_SELECT_NEXT, FALSE,
743 744 745
    NULL }
};

746
static const GimpEnumActionEntry context_brush_select_actions[] =
747
{
748
  { "context-brush-select-set", GIMP_ICON_BRUSH,
749
    NC_("context-action", "Brush Selection: Select by Index"), NULL, NULL,
750 751
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
752
  { "context-brush-select-first", GIMP_ICON_BRUSH,
753
    NC_("context-action", "Brush Selection: Switch to First"), NULL, NULL,
754
    GIMP_ACTION_SELECT_FIRST, FALSE,
755
    NULL },
756
  { "context-brush-select-last", GIMP_ICON_BRUSH,
757
    NC_("context-action", "Brush Selection: Switch to Last"), NULL, NULL,
758
    GIMP_ACTION_SELECT_LAST, FALSE,
759
    NULL },
760
  { "context-brush-select-previous", GIMP_ICON_BRUSH,
761
    NC_("context-action", "Brush Selection: Switch to Previous"), NULL, NULL,
762
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
763
    NULL },
764
  { "context-brush-select-next", GIMP_ICON_BRUSH,
765
    NC_("context-action", "Brush Selection: Switch to Next"), NULL, NULL,
766
    GIMP_ACTION_SELECT_NEXT, FALSE,
767 768 769
    NULL }
};

770
static const GimpEnumActionEntry context_pattern_select_actions[] =
771
{
772
  { "context-pattern-select-set", GIMP_ICON_PATTERN,
773
    NC_("context-action", "Pattern Selection: Select by Index"), NULL, NULL,
774 775
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
776
  { "context-pattern-select-first", GIMP_ICON_PATTERN,
777
    NC_("context-action", "Pattern Selection: Switch to First"), NULL, NULL,
778
    GIMP_ACTION_SELECT_FIRST, FALSE,
779
    NULL },
780
  { "context-pattern-select-last", GIMP_ICON_PATTERN,
781
    NC_("context-action", "Pattern Selection: Switch to Last"), NULL, NULL,
782
    GIMP_ACTION_SELECT_LAST, FALSE,
783
    NULL },
784
  { "context-pattern-select-previous", GIMP_ICON_PATTERN,
785
    NC_("context-action", "Pattern Selection: Switch to Previous"), NULL, NULL,
786
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
787
    NULL },
788
  { "context-pattern-select-next", GIMP_ICON_PATTERN,
789
    NC_("context-action", "Pattern Selection: Switch to Next"), NULL, NULL,
790
    GIMP_ACTION_SELECT_NEXT, FALSE,
791 792 793
    NULL }
};

794
static const GimpEnumActionEntry context_palette_select_actions[] =
795
{
796
  { "context-palette-select-set", GIMP_ICON_PALETTE,
797
    NC_("context-action", "Palette Selection: Select by Index"), NULL, NULL,
798 799
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
800
  { "context-palette-select-first", GIMP_ICON_PALETTE,
801
    NC_("context-action", "Palette Selection: Switch to First"), NULL, NULL,
802
    GIMP_ACTION_SELECT_FIRST, FALSE,
803
    NULL },
804
  { "context-palette-select-last", GIMP_ICON_PALETTE,
805
    NC_("context-action", "Palette Selection: Switch to Last"), NULL, NULL,
806
    GIMP_ACTION_SELECT_LAST, FALSE,
807
    NULL },
808
  { "context-palette-select-previous", GIMP_ICON_PALETTE,
809
    NC_("context-action", "Palette Selection: Switch to Previous"), NULL, NULL,
810
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
811
    NULL },
812
  { "context-palette-select-next", GIMP_ICON_PALETTE,
813
    NC_("context-action", "Palette Selection: Switch to Next"), NULL, NULL,
814
    GIMP_ACTION_SELECT_NEXT, FALSE,
815 816 817
    NULL }
};

818
static const GimpEnumActionEntry context_gradient_select_actions[] =
819
{
820
  { "context-gradient-select-set", GIMP_ICON_GRADIENT,
821
    NC_("context-action", "Gradient Selection: Select by Index"), NULL, NULL,
822 823
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
824
  { "context-gradient-select-first", GIMP_ICON_GRADIENT,
825
    NC_("context-action", "Gradient Selection: Switch to First"), NULL, NULL,
826
    GIMP_ACTION_SELECT_FIRST, FALSE,
827
    NULL },
828
  { "context-gradient-select-last", GIMP_ICON_GRADIENT,
829
    NC_("context-action", "Gradient Selection: Switch to Last"), NULL, NULL,
830
    GIMP_ACTION_SELECT_LAST, FALSE,
831
    NULL },
832
  { "context-gradient-select-previous", GIMP_ICON_GRADIENT,
833
    NC_("context-action", "Gradient Selection: Switch to Previous"), NULL, NULL,
834
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
835
    NULL },
836
  { "context-gradient-select-next", GIMP_ICON_GRADIENT,
837
    NC_("context-action", "Gradient Selection: Switch to Next"), NULL