Commit 3c1b7fe6 authored by Simon Budig's avatar Simon Budig Committed by Simon Budig
Browse files

renamed the "arrow_key" member to "key_press", since it is now no longer

2004-06-12  Simon Budig  <simon@gimp.org>

	* app/tools/gimptool.[ch]: renamed the "arrow_key" member
	to "key_press", since it is now no longer about just the arrow
	keys.

	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpeditselectiontool.h
	* app/tools/gimpmovetool.c
	* app/tools/gimppainttool.c
	* app/tools/gimpselectiontool.c
	* app/tools/gimptexttool.c
	* app/tools/gimpvectortool.c
	* app/tools/tool_manager.c: Changed accordingly.
parent a458622e
2004-06-12 Simon Budig <simon@gimp.org>
* app/tools/gimptool.[ch]: renamed the "arrow_key" member
to "key_press", since it is now no longer about just the arrow
keys.
* app/tools/gimpcroptool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpeditselectiontool.h
* app/tools/gimpmovetool.c
* app/tools/gimppainttool.c
* app/tools/gimpselectiontool.c
* app/tools/gimptexttool.c
* app/tools/gimpvectortool.c
* app/tools/tool_manager.c: Changed accordingly.
2004-06-12 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_init): add
......
......@@ -86,7 +86,7 @@ static void gimp_paint_tool_motion (GimpTool *tool,
guint32 time,
GdkModifierType state,
GimpDisplay *gdisp);
static void gimp_paint_tool_arrow_key (GimpTool *tool,
static void gimp_paint_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
static void gimp_paint_tool_modifier_key (GimpTool *tool,
......@@ -163,7 +163,7 @@ gimp_paint_tool_class_init (GimpPaintToolClass *klass)
tool_class->button_press = gimp_paint_tool_button_press;
tool_class->button_release = gimp_paint_tool_button_release;
tool_class->motion = gimp_paint_tool_motion;
tool_class->arrow_key = gimp_paint_tool_arrow_key;
tool_class->key_press = gimp_paint_tool_key_press;
tool_class->modifier_key = gimp_paint_tool_modifier_key;
tool_class->oper_update = gimp_paint_tool_oper_update;
tool_class->cursor_update = gimp_paint_tool_cursor_update;
......@@ -546,7 +546,7 @@ gimp_paint_tool_motion (GimpTool *tool,
}
static void
gimp_paint_tool_arrow_key (GimpTool *tool,
gimp_paint_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......
......@@ -93,7 +93,7 @@ static void gimp_crop_tool_motion (GimpTool *tool,
guint32 time,
GdkModifierType state,
GimpDisplay *gdisp);
static void gimp_crop_tool_arrow_key (GimpTool *tool,
static void gimp_crop_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
static void gimp_crop_tool_modifier_key (GimpTool *tool,
......@@ -210,7 +210,7 @@ gimp_crop_tool_class_init (GimpCropToolClass *klass)
tool_class->button_press = gimp_crop_tool_button_press;
tool_class->button_release = gimp_crop_tool_button_release;
tool_class->motion = gimp_crop_tool_motion;
tool_class->arrow_key = gimp_crop_tool_arrow_key;
tool_class->key_press = gimp_crop_tool_key_press;
tool_class->modifier_key = gimp_crop_tool_modifier_key;
tool_class->oper_update = gimp_crop_tool_oper_update;
tool_class->cursor_update = gimp_crop_tool_cursor_update;
......@@ -515,7 +515,7 @@ gimp_crop_tool_motion (GimpTool *tool,
}
static void
gimp_crop_tool_arrow_key (GimpTool *tool,
gimp_crop_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......
......@@ -113,7 +113,7 @@ static void gimp_edit_selection_tool_motion (GimpTool *tool,
guint32 time,
GdkModifierType state,
GimpDisplay *gdisp);
void gimp_edit_selection_tool_arrow_key (GimpTool *tool,
void gimp_edit_selection_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
......@@ -1052,7 +1052,7 @@ process_event_queue_keys (GdkEventKey *kevent,
}
void
gimp_edit_selection_tool_arrow_key (GimpTool *tool,
gimp_edit_selection_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......
......@@ -39,7 +39,7 @@ void init_edit_selection (GimpTool *tool,
EditType edit_type);
void gimp_edit_selection_tool_arrow_key (GimpTool *tool,
void gimp_edit_selection_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
......
......@@ -154,7 +154,7 @@ gimp_move_tool_class_init (GimpMoveToolClass *klass)
tool_class->button_press = gimp_move_tool_button_press;
tool_class->button_release = gimp_move_tool_button_release;
tool_class->motion = gimp_move_tool_motion;
tool_class->arrow_key = gimp_edit_selection_tool_arrow_key;
tool_class->key_press = gimp_edit_selection_tool_key_press;
tool_class->modifier_key = gimp_move_tool_modifier_key;
tool_class->oper_update = gimp_move_tool_oper_update;
tool_class->cursor_update = gimp_move_tool_cursor_update;
......
......@@ -86,7 +86,7 @@ static void gimp_paint_tool_motion (GimpTool *tool,
guint32 time,
GdkModifierType state,
GimpDisplay *gdisp);
static void gimp_paint_tool_arrow_key (GimpTool *tool,
static void gimp_paint_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
static void gimp_paint_tool_modifier_key (GimpTool *tool,
......@@ -163,7 +163,7 @@ gimp_paint_tool_class_init (GimpPaintToolClass *klass)
tool_class->button_press = gimp_paint_tool_button_press;
tool_class->button_release = gimp_paint_tool_button_release;
tool_class->motion = gimp_paint_tool_motion;
tool_class->arrow_key = gimp_paint_tool_arrow_key;
tool_class->key_press = gimp_paint_tool_key_press;
tool_class->modifier_key = gimp_paint_tool_modifier_key;
tool_class->oper_update = gimp_paint_tool_oper_update;
tool_class->cursor_update = gimp_paint_tool_cursor_update;
......@@ -546,7 +546,7 @@ gimp_paint_tool_motion (GimpTool *tool,
}
static void
gimp_paint_tool_arrow_key (GimpTool *tool,
gimp_paint_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......
......@@ -94,7 +94,7 @@ gimp_selection_tool_class_init (GimpSelectionToolClass *klass)
parent_class = g_type_class_peek_parent (klass);
tool_class->modifier_key = gimp_selection_tool_modifier_key;
tool_class->arrow_key = gimp_edit_selection_tool_arrow_key;
tool_class->key_press = gimp_edit_selection_tool_key_press;
tool_class->oper_update = gimp_selection_tool_oper_update;
tool_class->cursor_update = gimp_selection_tool_cursor_update;
}
......
......@@ -192,7 +192,7 @@ gimp_text_tool_class_init (GimpTextToolClass *klass)
tool_class->control = gimp_text_tool_control;
tool_class->button_press = gimp_text_tool_button_press;
tool_class->arrow_key = gimp_edit_selection_tool_arrow_key;
tool_class->key_press = gimp_edit_selection_tool_key_press;
tool_class->cursor_update = gimp_text_tool_cursor_update;
}
......
......@@ -74,7 +74,7 @@ static void gimp_tool_real_motion (GimpTool *tool,
guint32 time,
GdkModifierType state,
GimpDisplay *gdisp);
static void gimp_tool_real_arrow_key (GimpTool *tool,
static void gimp_tool_real_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
static void gimp_tool_real_modifier_key (GimpTool *tool,
......@@ -141,7 +141,7 @@ gimp_tool_class_init (GimpToolClass *klass)
klass->button_press = gimp_tool_real_button_press;
klass->button_release = gimp_tool_real_button_release;
klass->motion = gimp_tool_real_motion;
klass->arrow_key = gimp_tool_real_arrow_key;
klass->key_press = gimp_tool_real_key_press;
klass->modifier_key = gimp_tool_real_modifier_key;
klass->oper_update = gimp_tool_real_oper_update;
klass->cursor_update = gimp_tool_real_cursor_update;
......@@ -277,7 +277,7 @@ gimp_tool_real_motion (GimpTool *tool,
}
static void
gimp_tool_real_arrow_key (GimpTool *tool,
gimp_tool_real_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......@@ -443,7 +443,7 @@ gimp_tool_set_focus_display (GimpTool *tool,
}
void
gimp_tool_arrow_key (GimpTool *tool,
gimp_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......@@ -451,7 +451,7 @@ gimp_tool_arrow_key (GimpTool *tool,
g_return_if_fail (GIMP_IS_DISPLAY (gdisp));
g_return_if_fail (gdisp == tool->focus_display);
GIMP_TOOL_GET_CLASS (tool)->arrow_key (tool, kevent, gdisp);
GIMP_TOOL_GET_CLASS (tool)->key_press (tool, kevent, gdisp);
}
static void
......
......@@ -82,7 +82,7 @@ struct _GimpToolClass
GdkModifierType state,
GimpDisplay *gdisp);
void (* arrow_key) (GimpTool *tool,
void (* key_press) (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
void (* modifier_key) (GimpTool *tool,
......@@ -126,7 +126,7 @@ void gimp_tool_motion (GimpTool *tool,
GdkModifierType state,
GimpDisplay *gdisp);
void gimp_tool_arrow_key (GimpTool *tool,
void gimp_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
......
......@@ -92,7 +92,7 @@ static void gimp_vector_tool_motion (GimpTool *tool,
guint32 time,
GdkModifierType state,
GimpDisplay *gdisp);
static void gimp_vector_tool_arrow_key (GimpTool *tool,
static void gimp_vector_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp);
static void gimp_vector_tool_modifier_key (GimpTool *tool,
......@@ -210,7 +210,7 @@ gimp_vector_tool_class_init (GimpVectorToolClass *klass)
tool_class->button_press = gimp_vector_tool_button_press;
tool_class->button_release = gimp_vector_tool_button_release;
tool_class->motion = gimp_vector_tool_motion;
tool_class->arrow_key = gimp_vector_tool_arrow_key;
tool_class->key_press = gimp_vector_tool_key_press;
tool_class->modifier_key = gimp_vector_tool_modifier_key;
tool_class->oper_update = gimp_vector_tool_oper_update;
tool_class->cursor_update = gimp_vector_tool_cursor_update;
......@@ -784,7 +784,7 @@ gimp_vector_tool_motion (GimpTool *tool,
}
static void
gimp_vector_tool_arrow_key (GimpTool *tool,
gimp_vector_tool_key_press (GimpTool *tool,
GdkEventKey *kevent,
GimpDisplay *gdisp)
{
......
......@@ -341,7 +341,7 @@ tool_manager_key_press_active (Gimp *gimp,
if (tool_manager->active_tool)
{
gimp_tool_arrow_key (tool_manager->active_tool,
gimp_tool_key_press (tool_manager->active_tool,
kevent,
gdisp);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment