app/actions/tools-actions.c removed unused rectangle tool actions.

2007-08-11  Michael Natterer  <mitch@gimp.org>

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]: removed unused rectangle tool
	actions.


svn path=/trunk/; revision=23220
This commit is contained in:
Michael Natterer 2007-08-11 21:38:43 +00:00 committed by Michael Natterer
parent 9b7db4c28d
commit 967c110e37
4 changed files with 6 additions and 83 deletions

View file

@ -1,3 +1,9 @@
2007-08-11 Michael Natterer <mitch@gimp.org>
* app/actions/tools-actions.c
* app/actions/tools-commands.[ch]: removed unused rectangle tool
actions.
2007-08-11 Sven Neumann <sven@gimp.org> 2007-08-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c: further work on the dialog. * plug-ins/common/lcms.c: further work on the dialog.

View file

@ -309,20 +309,6 @@ static const GimpEnumActionEntry tools_foreground_select_brush_size_actions[] =
NULL }, NULL },
}; };
static const GimpToggleActionEntry tools_rectangle_toggle_actions[] =
{
{ "tools-rectangle-toggle-fixed-aspect", GIMP_STOCK_TOOL_RECT_SELECT,
N_("Toggle Fixed-Aspect Option for Rectangle"), NULL, NULL,
G_CALLBACK (tools_rectangle_toggle_fixed_aspect),
TRUE,
NULL},
{ "tools-rectangle-toggle-fixed-center", GIMP_STOCK_TOOL_RECT_SELECT,
N_("Toggle Expand-From-Center Option for Rectangle"), NULL, NULL,
G_CALLBACK (tools_rectangle_toggle_fixed_center),
TRUE,
NULL}
};
static const GimpEnumActionEntry tools_value_1_actions[] = static const GimpEnumActionEntry tools_value_1_actions[] =
{ {
{ "tools-value-1-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-value-1-set", GIMP_STOCK_TOOL_OPTIONS,
@ -551,10 +537,6 @@ tools_actions_setup (GimpActionGroup *group)
G_N_ELEMENTS (tools_foreground_select_brush_size_actions), G_N_ELEMENTS (tools_foreground_select_brush_size_actions),
G_CALLBACK (tools_fg_select_brush_size_cmd_callback)); G_CALLBACK (tools_fg_select_brush_size_cmd_callback));
gimp_action_group_add_toggle_actions (group,
tools_rectangle_toggle_actions,
G_N_ELEMENTS (tools_rectangle_toggle_actions));
gimp_action_group_add_enum_actions (group, gimp_action_group_add_enum_actions (group,
tools_value_1_actions, tools_value_1_actions,
G_N_ELEMENTS (tools_value_1_actions), G_N_ELEMENTS (tools_value_1_actions),

View file

@ -371,66 +371,6 @@ tools_fg_select_brush_size_cmd_callback (GtkAction *action,
} }
} }
void
tools_rectangle_toggle_fixed_aspect (GtkAction *action,
gpointer data)
{
GimpContext *context;
GimpToolInfo *tool_info;
return_if_no_context (context, data);
tool_info = gimp_context_get_tool (context);
if (tool_info)
{
GimpToolOptions *options = tool_info->tool_options;
if (GIMP_IS_RECTANGLE_OPTIONS (options))
{
GimpRectangleOptions *rectangle_options = GIMP_RECTANGLE_OPTIONS (options);
gboolean fixed_aspect;
g_object_get (rectangle_options,
"fixed-aspect", &fixed_aspect,
NULL);
g_object_set (rectangle_options,
"fixed-aspect", ! fixed_aspect,
NULL);
}
}
}
void
tools_rectangle_toggle_fixed_center (GtkAction *action,
gpointer data)
{
GimpContext *context;
GimpToolInfo *tool_info;
return_if_no_context (context, data);
tool_info = gimp_context_get_tool (context);
if (tool_info)
{
GimpToolOptions *options = tool_info->tool_options;
if (GIMP_IS_RECTANGLE_OPTIONS (options))
{
GimpRectangleOptions *rectangle_options = GIMP_RECTANGLE_OPTIONS (options);
gboolean fixed_center;
g_object_get (rectangle_options,
"fixed-center", &fixed_center,
NULL);
g_object_set (rectangle_options,
"fixed-center", ! fixed_center,
NULL);
}
}
}
void void
tools_value_1_cmd_callback (GtkAction *action, tools_value_1_cmd_callback (GtkAction *action,
gint value, gint value,

View file

@ -60,11 +60,6 @@ void tools_fg_select_brush_size_cmd_callback (GtkAction *action,
gint value, gint value,
gpointer data); gpointer data);
void tools_rectangle_toggle_fixed_aspect (GtkAction *action,
gpointer data);
void tools_rectangle_toggle_fixed_center (GtkAction *action,
gpointer data);
void tools_value_1_cmd_callback (GtkAction *action, void tools_value_1_cmd_callback (GtkAction *action,
gint value, gint value,
gpointer data); gpointer data);