Commit d88f23dd authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

removed enum GimpContextSelectType.

2004-06-23  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-commands.h: removed enum GimpContextSelectType.

	* app/actions/actions-types.h: added enum GimpActionSelectType.

	* app/actions/actions.[ch]: added utility functions
	action_select_value() and action_select_object().

	* app/actions/context-actions.c
	* app/actions/context-commands.c: changed accordingly.

	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]: merged the layer select
	callbacks into one using the GimpActionSelectType functions. Added
	actions and callbacks for modifying the active layer's opacity.

	* app/menus/menus-types.h: #incude "actions/action-types.h".

	* app/gui/gui-types.h: #incude "menus/menus-types.h".

	* app/gui/preferences-dialog.c: allow to enable/disable input
	controllers.
parent 546359f9
2004-06-23 Michael Natterer <mitch@gimp.org>
* app/actions/context-commands.h: removed enum GimpContextSelectType.
* app/actions/actions-types.h: added enum GimpActionSelectType.
* app/actions/actions.[ch]: added utility functions
action_select_value() and action_select_object().
* app/actions/context-actions.c
* app/actions/context-commands.c: changed accordingly.
* app/actions/layers-actions.c
* app/actions/layers-commands.[ch]: merged the layer select
callbacks into one using the GimpActionSelectType functions. Added
actions and callbacks for modifying the active layer's opacity.
* app/menus/menus-types.h: #incude "actions/action-types.h".
* app/gui/gui-types.h: #incude "menus/menus-types.h".
* app/gui/preferences-dialog.c: allow to enable/disable input
controllers.
2004-06-22 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpcurvestool.c: try again to revert.
......
......@@ -23,4 +23,16 @@
#include "gui/gui-types.h"
typedef enum
{
GIMP_ACTION_SELECT_SET = 0,
GIMP_ACTION_SELECT_FIRST = -1,
GIMP_ACTION_SELECT_LAST = -2,
GIMP_ACTION_SELECT_PREVIOUS = -3,
GIMP_ACTION_SELECT_NEXT = -4,
GIMP_ACTION_SELECT_SKIP_PREVIOUS = -5,
GIMP_ACTION_SELECT_SKIP_NEXT = -6
} GimpActionSelectType;
#endif /* __ACTIONS_TYPES_H__ */
......@@ -25,6 +25,7 @@
#include "actions-types.h"
#include "core/gimp.h"
#include "core/gimpcontainer.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
......@@ -322,3 +323,117 @@ action_data_get_widget (gpointer data)
return NULL;
}
gdouble
action_select_value (GimpActionSelectType select_type,
gdouble value,
gdouble min,
gdouble max,
gdouble inc,
gdouble skip_inc,
gboolean wrap)
{
switch (select_type)
{
case GIMP_ACTION_SELECT_FIRST:
value = min;
break;
case GIMP_ACTION_SELECT_LAST:
value = max;
break;
case GIMP_ACTION_SELECT_PREVIOUS:
value -= inc;
break;
case GIMP_ACTION_SELECT_NEXT:
value += inc;
break;
case GIMP_ACTION_SELECT_SKIP_PREVIOUS:
value -= skip_inc;
break;
case GIMP_ACTION_SELECT_SKIP_NEXT:
value += skip_inc;
break;
default:
if (value >= 0)
value = (gdouble) select_type * (max - min) / 1000.0 + min;
else
g_return_val_if_reached (value);
break;
}
if (wrap)
{
while (value < min)
value = max - (min - value);
while (value > max)
value = min + (max - value);
}
else
{
value = CLAMP (value, min, max);
}
return value;
}
GimpObject *
action_select_object (GimpActionSelectType select_type,
GimpContainer *container,
GimpObject *current)
{
gint select_index;
gint n_children;
g_return_val_if_fail (GIMP_IS_CONTAINER (container), NULL);
g_return_val_if_fail (current == NULL || GIMP_IS_OBJECT (current), NULL);
if (! current)
return NULL;
n_children = gimp_container_num_children (container);
if (n_children == 0)
return;
switch (select_type)
{
case GIMP_ACTION_SELECT_FIRST:
select_index = 0;
break;
case GIMP_ACTION_SELECT_LAST:
select_index = n_children - 1;
break;
case GIMP_ACTION_SELECT_PREVIOUS:
select_index = gimp_container_get_child_index (container, current) - 1;
break;
case GIMP_ACTION_SELECT_NEXT:
select_index = gimp_container_get_child_index (container, current) + 1;
break;
case GIMP_ACTION_SELECT_SKIP_PREVIOUS:
select_index = gimp_container_get_child_index (container, current) - 10;
break;
case GIMP_ACTION_SELECT_SKIP_NEXT:
select_index = gimp_container_get_child_index (container, current) + 10;
break;
default:
g_return_val_if_reached (current);
break;
}
select_index = CLAMP (select_index, 0, n_children - 1);
return gimp_container_get_child_by_index (container, select_index);
}
......@@ -23,14 +23,25 @@
extern GimpActionFactory *global_action_factory;
void actions_init (Gimp *gimp);
void actions_exit (Gimp *gimp);
Gimp * action_data_get_gimp (gpointer data);
GimpContext * action_data_get_context (gpointer data);
GimpImage * action_data_get_image (gpointer data);
GimpDisplay * action_data_get_display (gpointer data);
GtkWidget * action_data_get_widget (gpointer data);
void actions_init (Gimp *gimp);
void actions_exit (Gimp *gimp);
Gimp * action_data_get_gimp (gpointer data);
GimpContext * action_data_get_context (gpointer data);
GimpImage * action_data_get_image (gpointer data);
GimpDisplay * action_data_get_display (gpointer data);
GtkWidget * action_data_get_widget (gpointer data);
gdouble action_select_value (GimpActionSelectType select_type,
gdouble value,
gdouble min,
gdouble max,
gdouble inc,
gdouble skip_inc,
gboolean wrap);
GimpObject * action_select_object (GimpActionSelectType select_type,
GimpContainer *container,
GimpObject *current);
#define return_if_no_gimp(gimp,data) \
......
......@@ -67,31 +67,31 @@ static GimpEnumActionEntry context_foreground_red_actions[] =
{
{ "context-foreground-red-set", NULL,
"Set Foreground Red", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-foreground-red-minimum", GTK_STOCK_GOTO_FIRST,
"Foreground Red Minimum", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-foreground-red-maximum", GTK_STOCK_GOTO_LAST,
"Foreground Red Maximum", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-foreground-red-decrease", GTK_STOCK_REMOVE,
"Foreground Red Decrease", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-foreground-red-increase", GTK_STOCK_ADD,
"Foreground Red Increase", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-foreground-red-decrease-skip", GTK_STOCK_REMOVE,
"Foreground Red Decrease 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-foreground-red-increase-skip", GTK_STOCK_ADD,
"Foreground Red Increase 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -99,31 +99,31 @@ static GimpEnumActionEntry context_foreground_green_actions[] =
{
{ "context-foreground-green-set", NULL,
"Set Foreground Green", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-foreground-green-minimum", GTK_STOCK_GOTO_FIRST,
"Foreground Green Minimum", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-foreground-green-maximum", GTK_STOCK_GOTO_LAST,
"Foreground Green Maximum", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-foreground-green-decrease", GTK_STOCK_REMOVE,
"Foreground Green Decrease", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-foreground-green-increase", GTK_STOCK_ADD,
"Foreground Green Increase", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-foreground-green-decrease-skip", GTK_STOCK_REMOVE,
"Foreground Green Decrease 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-foreground-green-increase-skip", GTK_STOCK_ADD,
"Foreground Green Increase 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -131,31 +131,31 @@ static GimpEnumActionEntry context_foreground_blue_actions[] =
{
{ "context-foreground-blue-set", NULL,
"Set Foreground Blue", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-foreground-blue-minimum", GTK_STOCK_GOTO_FIRST,
"Foreground Blue Minimum", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-foreground-blue-maximum", GTK_STOCK_GOTO_LAST,
"Foreground Blue Maximum", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-foreground-blue-decrease", GTK_STOCK_REMOVE,
"Foreground Blue Decrease", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-foreground-blue-increase", GTK_STOCK_ADD,
"Foreground Blue Increase", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-foreground-blue-decrease-skip", GTK_STOCK_REMOVE,
"Foreground Blue Decrease 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-foreground-blue-increase-skip", GTK_STOCK_ADD,
"Foreground Blue Increase 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -163,31 +163,31 @@ static GimpEnumActionEntry context_background_red_actions[] =
{
{ "context-background-red-set", NULL,
"Set Background Red", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-background-red-minimum", GTK_STOCK_GOTO_FIRST,
"Background Red Minimum", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-background-red-maximum", GTK_STOCK_GOTO_LAST,
"Background Red Maximum", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-background-red-decrease", GTK_STOCK_REMOVE,
"Background Red Decrease", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-background-red-increase", GTK_STOCK_ADD,
"Background Red Increase", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-background-red-decrease-skip", GTK_STOCK_REMOVE,
"Background Red Decrease 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-background-red-increase-skip", GTK_STOCK_ADD,
"Background Red Increase 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -195,31 +195,31 @@ static GimpEnumActionEntry context_background_green_actions[] =
{
{ "context-background-green-set", NULL,
"Set Background Green", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-background-green-minimum", GTK_STOCK_GOTO_FIRST,
"Background Green Minimum", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-background-green-maximum", GTK_STOCK_GOTO_LAST,
"Background Green Maximum", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-background-green-decrease", GTK_STOCK_REMOVE,
"Background Green Decrease", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-background-green-increase", GTK_STOCK_ADD,
"Background Green Increase", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-background-green-decrease-skip", GTK_STOCK_REMOVE,
"Background Green Decrease 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-background-green-increase-skip", GTK_STOCK_ADD,
"Background Green Increase 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -227,31 +227,31 @@ static GimpEnumActionEntry context_background_blue_actions[] =
{
{ "context-background-blue-set", NULL,
"Set Background Blue", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-background-blue-minimum", GTK_STOCK_GOTO_FIRST,
"Background Blue Minimum", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-background-blue-maximum", GTK_STOCK_GOTO_LAST,
"Background Blue Maximum", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-background-blue-decrease", GTK_STOCK_REMOVE,
"Background Blue Decrease", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-background-blue-increase", GTK_STOCK_ADD,
"Background Blue Increase", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-background-blue-decrease-skip", GTK_STOCK_REMOVE,
"Background Blue Decrease 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-background-blue-increase-skip", GTK_STOCK_ADD,
"Background Blue Increase 10%", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -259,31 +259,31 @@ static GimpEnumActionEntry context_opacity_actions[] =
{
{ "context-opacity-set", NULL,
"Set Transparency", NULL, NULL,
GIMP_CONTEXT_SELECT_SET,
GIMP_ACTION_SELECT_SET,
NULL },
{ "context-opacity-transparent", GTK_STOCK_GOTO_FIRST,
"Completely Transparent", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-opacity-opaque", GTK_STOCK_GOTO_LAST,
"Completely Opaque", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-opacity-decrease", GTK_STOCK_REMOVE,
"More Transparent", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-opacity-increase", GTK_STOCK_ADD,
"More Opaque", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-opacity-decrease-skip", GTK_STOCK_REMOVE,
"10% More Transparent", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-opacity-increase-skip", GTK_STOCK_ADD,
"10% More Opaque", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL }
};
......@@ -291,19 +291,19 @@ static GimpEnumActionEntry context_tool_select_actions[] =
{
{ "context-tool-first", GTK_STOCK_GOTO_FIRST,
"First Tool", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-tool-last", GTK_STOCK_GOTO_LAST,
"Last Tool", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-tool-previous", GTK_STOCK_GO_BACK,
"Previous Tool", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-tool-next", GTK_STOCK_GO_FORWARD,
"Next Tool", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL }
};
......@@ -311,19 +311,19 @@ static GimpEnumActionEntry context_brush_select_actions[] =
{
{ "context-brush-first", GTK_STOCK_GOTO_FIRST,
"First Brush", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-brush-last", GTK_STOCK_GOTO_LAST,
"Last Brush", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-brush-previous", GTK_STOCK_GO_BACK,
"Previous Brush", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-brush-next", GTK_STOCK_GO_FORWARD,
"Next Brush", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL }
};
......@@ -331,19 +331,19 @@ static GimpEnumActionEntry context_pattern_select_actions[] =
{
{ "context-pattern-first", GTK_STOCK_GOTO_FIRST,
"First Pattern", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-pattern-last", GTK_STOCK_GOTO_LAST,
"Last Pattern", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-pattern-previous", GTK_STOCK_GO_BACK,
"Previous Pattern", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-pattern-next", GTK_STOCK_GO_FORWARD,
"Next Pattern", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL }
};
......@@ -351,19 +351,19 @@ static GimpEnumActionEntry context_palette_select_actions[] =
{
{ "context-palette-first", GTK_STOCK_GOTO_FIRST,
"First Palette", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-palette-last", GTK_STOCK_GOTO_LAST,
"Last Palette", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-palette-previous", GTK_STOCK_GO_BACK,
"Previous Palette", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-palette-next", GTK_STOCK_GO_FORWARD,
"Next Palette", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL }
};
......@@ -371,19 +371,19 @@ static GimpEnumActionEntry context_gradient_select_actions[] =
{
{ "context-gradient-first", GTK_STOCK_GOTO_FIRST,
"First Gradient", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-gradient-last", GTK_STOCK_GOTO_LAST,
"Last Gradient", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-gradient-previous", GTK_STOCK_GO_BACK,
"Previous Gradient", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-gradient-next", GTK_STOCK_GO_FORWARD,
"Next Gradient", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL }
};
......@@ -391,19 +391,19 @@ static GimpEnumActionEntry context_font_select_actions[] =
{
{ "context-font-first", GTK_STOCK_GOTO_FIRST,
"First Font", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-font-last", GTK_STOCK_GOTO_LAST,
"Last Font", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-font-previous", GTK_STOCK_GO_BACK,
"Previous Font", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-font-next", GTK_STOCK_GO_FORWARD,
"Next Font", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL }
};
......@@ -411,27 +411,27 @@ static GimpEnumActionEntry context_brush_radius_actions[] =
{
{ "context-brush-radius-minimum", GTK_STOCK_GOTO_FIRST,
"Minumum Radius", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-brush-radius-maximum", GTK_STOCK_GOTO_LAST,
"Maximum Radius", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-brush-radius-decrease", GTK_STOCK_GO_BACK,
"Decrease Radius", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-brush-radius-increase", GTK_STOCK_GO_FORWARD,
"Increase Radius", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-brush-radius-decrease-skip", GTK_STOCK_GO_BACK,
"Decrease Radius More", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-brush-radius-increase-skip", GTK_STOCK_GO_FORWARD,
"Increase Radius More", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL },
};
......@@ -439,27 +439,27 @@ static GimpEnumActionEntry context_brush_hardness_actions[] =
{
{ "context-brush-hardness-minimum", GTK_STOCK_GOTO_FIRST,
"Minumum Hardness", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-brush-hardness-maximum", GTK_STOCK_GOTO_LAST,
"Maximum Hardness", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-brush-hardness-decrease", GTK_STOCK_GO_BACK,
"Decrease Hardness", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-brush-hardness-increase", GTK_STOCK_GO_FORWARD,
"Increase Hardness", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-brush-hardness-decrease-skip", GTK_STOCK_GO_BACK,
"Decrease Hardness More", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-brush-hardness-increase-skip", GTK_STOCK_GO_FORWARD,
"Increase Hardness More", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL },
};
......@@ -467,27 +467,27 @@ static GimpEnumActionEntry context_brush_aspect_actions[] =
{
{ "context-brush-aspect-minimum", GTK_STOCK_GOTO_FIRST,
"Minumum Aspect", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-brush-aspect-maximum", GTK_STOCK_GOTO_LAST,
"Maximum Aspect", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-brush-aspect-decrease", GTK_STOCK_GO_BACK,
"Decrease Aspect", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-brush-aspect-increase", GTK_STOCK_GO_FORWARD,
"Increase Aspect", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-brush-aspect-decrease-skip", GTK_STOCK_GO_BACK,
"Decrease Aspect More", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-brush-aspect-increase-skip", GTK_STOCK_GO_FORWARD,
"Increase Aspect More", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT,
NULL },
};
......@@ -495,27 +495,27 @@ static GimpEnumActionEntry context_brush_angle_actions[] =
{
{ "context-brush-angle-minimum", GIMP_STOCK_FLIP_HORIZONTAL,
"Horizontal", NULL, NULL,
GIMP_CONTEXT_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST,
NULL },
{ "context-brush-angle-maximum", GIMP_STOCK_FLIP_VERTICAL,
"Vertical", NULL, NULL,
GIMP_CONTEXT_SELECT_LAST,
GIMP_ACTION_SELECT_LAST,
NULL },
{ "context-brush-angle-decrease", GIMP_STOCK_ROTATE_90,
"Rotate Right", NULL, NULL,
GIMP_CONTEXT_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS,
NULL },
{ "context-brush-angle-increase", GIMP_STOCK_ROTATE_270,
"Rotate Left", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT,
NULL },
{ "context-brush-angle-decrease-skip", GIMP_STOCK_ROTATE_90,
"Rotate Right 15 degrees", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-brush-angle-increase-skip", GIMP_STOCK_ROTATE_270,
"Rotate Left 15 degrees", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,