context-actions.c 51 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (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
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#include "config.h"

#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_STOCK_DEFAULT_COLORS, NC_("context-action",
                                                              "_Colors")     },
  { "context-opacity-menu",    GIMP_STOCK_TRANSPARENCY,   NC_("context-action",
                                                              "_Opacity")    },
  { "context-paint-mode-menu", GIMP_STOCK_TOOL_PENCIL,    NC_("context-action",
                                                              "Paint _Mode") },
  { "context-tool-menu",       GIMP_STOCK_TOOLS,          NC_("context-action",
                                                              "_Tool")       },
  { "context-brush-menu",      GIMP_STOCK_BRUSH,          NC_("context-action",
                                                              "_Brush")      },
  { "context-pattern-menu",    GIMP_STOCK_PATTERN,        NC_("context-action",
                                                              "_Pattern")    },
  { "context-palette-menu",    GIMP_STOCK_PALETTE,        NC_("context-action",
                                                              "_Palette")    },
  { "context-gradient-menu",   GIMP_STOCK_GRADIENT,       NC_("context-action",
                                                              "_Gradient")   },
  { "context-font-menu",       GIMP_STOCK_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")     },
  { "context-brush-angle-menu",    NULL,                  NC_("context-action",
                                                              "A_ngle")      },
79

80
  { "context-colors-default", GIMP_STOCK_DEFAULT_COLORS,
81
    NC_("context-action", "_Default Colors"), "D",
Sven Neumann's avatar
Sven Neumann committed
82
    N_("Set foreground color to black, background color to white"),
83 84 85 86
    G_CALLBACK (context_colors_default_cmd_callback),
    GIMP_HELP_TOOLBOX_DEFAULT_COLORS },

  { "context-colors-swap", GIMP_STOCK_SWAP_COLORS,
87
    NC_("context-action", "S_wap Colors"), "X",
Sven Neumann's avatar
Sven Neumann committed
88
    N_("Exchange foreground and background colors"),
89 90 91 92
    G_CALLBACK (context_colors_swap_cmd_callback),
    GIMP_HELP_TOOLBOX_SWAP_COLORS }
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

817
static const GimpEnumActionEntry context_gradient_select_actions[] =
818
{
819 820 821 822
  { "context-gradient-select-set", GIMP_STOCK_GRADIENT,
    "Select Gradient by Index", NULL, NULL,
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
823
  { "context-gradient-select-first", GIMP_STOCK_GRADIENT,
824
    "First Gradient", NULL, NULL,
825
    GIMP_ACTION_SELECT_FIRST, FALSE,
826
    NULL },
827
  { "context-gradient-select-last", GIMP_STOCK_GRADIENT,
828
    "Last Gradient", NULL, NULL,
829
    GIMP_ACTION_SELECT_LAST, FALSE,
830
    NULL },
831
  { "context-gradient-select-previous", GIMP_STOCK_GRADIENT,
832
    "Previous Gradient", NULL, NULL,
833
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
834
    NULL },
835
  { "context-gradient-select-next", GIMP_STOCK_GRADIENT,
836
    "Next Gradient", NULL, NULL,
837
    GIMP_ACTION_SELECT_NEXT, FALSE,
838 839 840
    NULL }
};

841
static const GimpEnumActionEntry context_font_select_actions[] =
842
{
843 844 845 846
  { "context-font-select-set", GIMP_STOCK_FONT,
    "Select Font by Index", NULL, NULL,
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
847
  { "context-font-select-first", GIMP_STOCK_FONT,
848
    "First Font", NULL, NULL,
849
    GIMP_ACTION_SELECT_FIRST, FALSE,
850
    NULL },
851
  { "context-font-select-last", GIMP_STOCK_FONT,
852
    "Last Font", NULL, NULL,
853
    GIMP_ACTION_SELECT_LAST, FALSE,
854
    NULL },
855
  { "context-font-select-previous", GIMP_STOCK_FONT,
856
    "Previous Font", NULL, NULL,
857
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
858
    NULL },
859
  { "context-font-select-next", GIMP_STOCK_FONT,
860
    "Next Font", NULL, NULL,
861
    GIMP_ACTION_SELECT_NEXT, FALSE,
862 863 864
    NULL }
};

865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896
static const GimpEnumActionEntry context_brush_spacing_actions[] =
{
  { "context-brush-spacing-set", GIMP_STOCK_BRUSH,
    "Set Brush Spacing", NULL, NULL,
    GIMP_ACTION_SELECT_SET, TRUE,
    NULL },
  { "context-brush-spacing-minimum", GIMP_STOCK_BRUSH,
    "Minimum Spacing", NULL, NULL,
    GIMP_ACTION_SELECT_FIRST, FALSE,
    NULL },
  { "context-brush-spacing-maximum", GIMP_STOCK_BRUSH,
    "Maximum Spacing", NULL, NULL,
    GIMP_ACTION_SELECT_LAST, FALSE,
    NULL },
  { "context-brush-spacing-decrease", GIMP_STOCK_BRUSH,
    "Decrease Spacing", NULL, NULL,
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
    NULL },
  { "context-brush-spacing-increase", GIMP_STOCK_BRUSH,
    "Increase Spacing", NULL, NULL,
    GIMP_ACTION_SELECT_NEXT, FALSE,
    NULL },
  { "context-brush-spacing-decrease-skip", GIMP_STOCK_BRUSH,
    "Decrease Spacing More", NULL, NULL,
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
    NULL },
  { "context-brush-spacing-increase-skip", GIMP_STOCK_BRUSH,
    "Increase Spacing More", NULL, NULL,
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
    NULL }
};

897
static const GimpEnumActionEntry context_brush_shape_actions[] =
898
{
899 900
  { "context-brush-shape-circle", GIMP_STOCK_BRUSH,
    "Circular Brush", NULL, NULL,
901
    GIMP_BRUSH_GENERATED_CIRCLE, FALSE,
902
    NULL },
903 904
  { "context-brush-shape-square", GIMP_STOCK_BRUSH,
    "Square Brush", NULL, NULL,
905
    GIMP_BRUSH_GENERATED_SQUARE, FALSE,
906
    NULL },
907 908
  { "context-brush-shape-diamond", GIMP_STOCK_BRUSH,
    "Diamond Brush", NULL, NULL,
909
    GIMP_BRUSH_GENERATED_DIAMOND, FALSE,
910 911 912
    NULL }
};

913
static const GimpEnumActionEntry context_brush_radius_actions[] =
914
{
915
  { "context-brush-radius-set", GIMP_STOCK_BRUSH,
916
    "Set Brush Radius", NULL, NULL,
917
    GIMP_ACTION_SELECT_SET, TRUE,
918
    NULL },
919
  { "context-brush-radius-minimum", GIMP_STOCK_BRUSH,
920
    "Minimum Radius", NULL, NULL,
921
    GIMP_ACTION_SELECT_FIRST, FALSE,
922
    NULL },
923
  { "context-brush-radius-maximum", GIMP_STOCK_BRUSH,
924
    "Maximum Radius", NULL, NULL,
925
    GIMP_ACTION_SELECT_LAST, FALSE,
926
    NULL },
927 928 929 930 931 932 933 934
  { "context-brush-radius-decrease-less", GIMP_STOCK_BRUSH,
    "Decrease Radius Less", NULL, NULL,
    GIMP_ACTION_SELECT_SMALL_PREVIOUS, FALSE,
    NULL },
  { "context-brush-radius-increase-less", GIMP_STOCK_BRUSH,
    "Increase Radius Less", NULL, NULL,
    GIMP_ACTION_SELECT_SMALL_NEXT, FALSE,
    NULL },
935
  { "context-brush-radius-decrease", GIMP_STOCK_BRUSH,
936
    "Decrease Radius", NULL, NULL,
937
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
938
    NULL },
939
  { "context-brush-radius-increase", GIMP_STOCK_BRUSH,
940
    "Increase Radius", NULL, NULL,
941
    GIMP_ACTION_SELECT_NEXT, FALSE,
942
    NULL },
943
  { "context-brush-radius-decrease-skip", GIMP_STOCK_BRUSH,
944
    "Decrease Radius More", NULL, NULL,
945
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
946
    NULL },
947
  { "context-brush-radius-increase-skip", GIMP_STOCK_BRUSH,
948
    "Increase Radius More", NULL, NULL,
949
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
950
    NULL },
951 952 953 954 955 956 957 958
  { "context-brush-radius-decrease-percent", GIMP_STOCK_BRUSH,
    "Decrease Radius Relative", NULL, NULL,
    GIMP_ACTION_SELECT_PERCENT_PREVIOUS, FALSE,
    NULL },
  { "context-brush-radius-increase-percent", GIMP_STOCK_BRUSH,
    "Increase Radius Relative", NULL, NULL,
    GIMP_ACTION_SELECT_PERCENT_NEXT, FALSE,
    NULL }
959 960
};

961
static const GimpEnumActionEntry context_brush_spikes_actions[] =
962
{
963
  { "context-brush-spikes-set", GIMP_STOCK_BRUSH,
964
    "Set Brush Spikes", NULL, NULL,
965
    GIMP_ACTION_SELECT_SET, TRUE,
966
    NULL },
967
  { "context-brush-spikes-minimum", GIMP_STOCK_BRUSH,
968
    "Minimum Spikes", NULL, NULL,
969
    GIMP_ACTION_SELECT_FIRST, FALSE,
970
    NULL },
971
  { "context-brush-spikes-maximum", GIMP_STOCK_BRUSH,
972
    "Maximum Spikes", NULL, NULL,
973
    GIMP_ACTION_SELECT_LAST, FALSE,
974
    NULL },
975
  { "context-brush-spikes-decrease", GIMP_STOCK_BRUSH,
976
    "Decrease Spikes", NULL, NULL,
977
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
978
    NULL },
979
  { "context-brush-spikes-increase", GIMP_STOCK_BRUSH,
980
    "Increase Spikes", NULL, NULL,
981
    GIMP_ACTION_SELECT_NEXT, FALSE,
982
    NULL },
983
  { "context-brush-spikes-decrease-skip", GIMP_STOCK_BRUSH,
984
    "Decrease Spikes More", NULL, NULL,
985
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
986
    NULL },
987
  { "context-brush-spikes-increase-skip", GIMP_STOCK_BRUSH,
988
    "Increase Spikes More", NULL, NULL,
989
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
990
    NULL }
991 992
};

993
static const GimpEnumActionEntry context_brush_hardness_actions[] =
994
{
995
  { "context-brush-hardness-set", GIMP_STOCK_BRUSH,
996
    "Set Brush Hardness", NULL, NULL,
997
    GIMP_ACTION_SELECT_SET, TRUE,
998
    NULL },
999
  { "context-brush-hardness-minimum", GIMP_STOCK_BRUSH,
1000
    "Minimum Hardness", NULL, NULL,
1001
    GIMP_ACTION_SELECT_FIRST, FALSE,
1002
    NULL },
1003
  { "context-brush-hardness-maximum", GIMP_STOCK_BRUSH,
1004
    "Maximum Hardness", NULL, NULL,
1005
    GIMP_ACTION_SELECT_LAST, FALSE,
1006
    NULL },
1007
  { "context-brush-hardness-decrease", GIMP_STOCK_BRUSH,
1008
    "Decrease Hardness", NULL, NULL,
1009
    GIMP_ACTION_SELECT_PREVIOUS, FALSE,
1010
    NULL },
1011
  { "context-brush-hardness-increase", GIMP_STOCK_BRUSH,
1012
    "Increase Hardness", NULL, NULL,
1013
    GIMP_ACTION_SELECT_NEXT, FALSE,
1014
    NULL },
1015
  { "context-brush-hardness-decrease-skip", GIMP_STOCK_BRUSH,
1016
    "Decrease Hardness More", NULL, NULL,
1017
    GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
1018
    NULL },
1019
  { "context-brush-hardness-increase-skip", GIMP_STOCK_BRUSH,
1020
    "Increase Hardness More", NULL, NULL,
1021
    GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
1022
    NULL }
1023 1024
};

1025
static const GimpEnumActionEntry context_brush_aspect_actions[] =
1026
{
1027
  { "context-brush-aspect-set", GIMP_STOCK_BRUSH,
1028
    "Set Brush Aspect", NULL, NULL,
1029
    GIMP_ACTION_SELECT_SET, TRUE,
1030
    NULL },
1031
  { "context-brush-aspect-minimum", GIMP_STOCK_BRUSH,
1032
    "Minimum Aspect", NULL, NULL,
1033
    GIMP_ACTION_SELECT_FIRST, FALSE,
1034
    NULL },
1035
  { "context-brush-aspect-maximum", GIMP_STOCK_BRUSH,
1036
    "Maximum Aspect", NULL, NULL,
1037
    GIMP_ACTION_SELECT_LAST, FALSE,
1038
    NULL },
1039
  { "context-brush-aspect-decrease", GIMP_STOCK_BRUSH,
1040
    "Decrease Aspect", NULL,