aboutsummaryrefslogtreecommitdiff
path: root/src/tool_select.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-10-09 22:28:24 +0200
committerThomas White <taw@bitwiz.org.uk>2011-10-09 22:28:24 +0200
commitddb327d0b2d6cbabb8a392445301b1e2448043c3 (patch)
tree183d2520ce5f4fb8c97de26fb21a766ca6fb7b0f /src/tool_select.c
parentfc8f986b76af09d4f2dea80854cceaf1f8fdd43f (diff)
Move rubber band box stuff to mainwindow
Diffstat (limited to 'src/tool_select.c')
-rw-r--r--src/tool_select.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/tool_select.c b/src/tool_select.c
index 39f4525..c03ebd1 100644
--- a/src/tool_select.c
+++ b/src/tool_select.c
@@ -85,24 +85,10 @@ static void drag_object(struct toolinfo *tip, struct presentation *p,
}
-static void start_drag_create(struct toolinfo *tip, struct presentation *p,
- double x, double y)
+static void create_region(struct toolinfo *tip, struct presentation *p,
+ double x1, double y1, double x2, double y2)
{
- /* Do nothing */
-}
-
-
-static void drag_create(struct toolinfo *tip, struct presentation *p,
- double x, double y)
-{
- /* Do nothing */
-}
-
-
-static void finish_drag_create(struct toolinfo *tip, struct presentation *p,
- double x, double y)
-{
- /* Do nothing */
+ printf("Create %5.2f %5.2f %5.2f %5.2f\n", x1, y1, x2, y2);
}
@@ -151,9 +137,7 @@ struct toolinfo *initialise_select_tool()
ti->base.select = select_object;
ti->base.deselect = deselect_object;
ti->base.drag_object = drag_object;
- ti->base.start_drag_create = start_drag_create;
- ti->base.drag_create = drag_create;
- ti->base.finish_drag_create = finish_drag_create;
+ ti->base.create_region = create_region;
ti->base.draw_editing_overlay = draw_overlay;
ti->base.key_pressed = key_pressed;
ti->base.im_commit = im_commit;