implement GimpTool::key_press and delegate to the rectangle tool or the
2007-04-12 Sven Neumann <sven@gimp.org> * app/tools/gimprectangleselecttool.c: implement GimpTool::key_press and delegate to the rectangle tool or the edit selection tool. This resurrects positioning of floating selections with the cursor keys. svn path=/trunk/; revision=22244
This commit is contained in:

committed by
Sven Neumann

parent
4f6c5c7a24
commit
9870749e1a
@ -1,5 +1,12 @@
|
|||||||
2007-04-12 Sven Neumann <sven@gimp.org>
|
2007-04-12 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/tools/gimprectangleselecttool.c: implement
|
||||||
|
GimpTool::key_press and delegate to the rectangle tool or the edit
|
||||||
|
selection tool. This resurrects positioning of floating selections
|
||||||
|
with the cursor keys.
|
||||||
|
|
||||||
|
2007-04-12 Raphaël Quinet <raphael@gimp.org>
|
||||||
|
|
||||||
* tools/pdbgen/pdb/display.pdb (display_delete): added a note that
|
* tools/pdbgen/pdb/display.pdb (display_delete): added a note that
|
||||||
calling this function may cause data loss.
|
calling this function may cause data loss.
|
||||||
|
|
||||||
|
@ -80,6 +80,9 @@ static void gimp_rect_select_tool_active_modifier_key (GimpTool *to
|
|||||||
gboolean press,
|
gboolean press,
|
||||||
GdkModifierType state,
|
GdkModifierType state,
|
||||||
GimpDisplay *display);
|
GimpDisplay *display);
|
||||||
|
static gboolean gimp_rect_select_tool_key_press (GimpTool *tool,
|
||||||
|
GdkEventKey *kevent,
|
||||||
|
GimpDisplay *display);
|
||||||
static void gimp_rect_select_tool_oper_update (GimpTool *tool,
|
static void gimp_rect_select_tool_oper_update (GimpTool *tool,
|
||||||
GimpCoords *coords,
|
GimpCoords *coords,
|
||||||
GdkModifierType state,
|
GdkModifierType state,
|
||||||
@ -156,7 +159,7 @@ gimp_rect_select_tool_class_init (GimpRectSelectToolClass *klass)
|
|||||||
tool_class->button_press = gimp_rect_select_tool_button_press;
|
tool_class->button_press = gimp_rect_select_tool_button_press;
|
||||||
tool_class->button_release = gimp_rect_select_tool_button_release;
|
tool_class->button_release = gimp_rect_select_tool_button_release;
|
||||||
tool_class->motion = gimp_rectangle_tool_motion;
|
tool_class->motion = gimp_rectangle_tool_motion;
|
||||||
tool_class->key_press = gimp_rectangle_tool_key_press;
|
tool_class->key_press = gimp_rect_select_tool_key_press;
|
||||||
tool_class->active_modifier_key = gimp_rect_select_tool_active_modifier_key;
|
tool_class->active_modifier_key = gimp_rect_select_tool_active_modifier_key;
|
||||||
tool_class->oper_update = gimp_rect_select_tool_oper_update;
|
tool_class->oper_update = gimp_rect_select_tool_oper_update;
|
||||||
tool_class->cursor_update = gimp_rect_select_tool_cursor_update;
|
tool_class->cursor_update = gimp_rect_select_tool_cursor_update;
|
||||||
@ -444,6 +447,15 @@ gimp_rect_select_tool_active_modifier_key (GimpTool *tool,
|
|||||||
gimp_rectangle_tool_active_modifier_key (tool, key, press, state, display);
|
gimp_rectangle_tool_active_modifier_key (tool, key, press, state, display);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
gimp_rect_select_tool_key_press (GimpTool *tool,
|
||||||
|
GdkEventKey *kevent,
|
||||||
|
GimpDisplay *display)
|
||||||
|
{
|
||||||
|
return (gimp_rectangle_tool_key_press (tool, kevent, display) ||
|
||||||
|
gimp_edit_selection_tool_key_press (tool, kevent, display));
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gimp_rect_select_tool_oper_update (GimpTool *tool,
|
gimp_rect_select_tool_oper_update (GimpTool *tool,
|
||||||
GimpCoords *coords,
|
GimpCoords *coords,
|
||||||
|
Reference in New Issue
Block a user