From db6bf593e83f27ffb1e6f5c48ff0d2389466e275 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Sun, 24 Feb 2008 17:26:23 +0000 Subject: [PATCH] Further cleanup (left-over debugging message) --- src/object-edit.cpp | 62 ++++++--------------------------------------- 1 file changed, 8 insertions(+), 54 deletions(-) diff --git a/src/object-edit.cpp b/src/object-edit.cpp index 51ec2da10..f9d34b9d6 100644 --- a/src/object-edit.cpp +++ b/src/object-edit.cpp @@ -653,73 +653,27 @@ static NR::Point box3d_knot7_get(SPItem *item) return box3d_knot_get(item, 7); } -static void box3d_knot_click(SPItem */*item*/, guint /*state*/, guint id) -{ - g_print ("Corner %d was clicked\n", id); -} - -static void box3d_knot0_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 0); -} - -static void box3d_knot1_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 1); -} - -static void box3d_knot2_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 2); -} - -static void box3d_knot3_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 3); -} - -static void box3d_knot4_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 4); -} - -static void box3d_knot5_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 5); -} - -static void box3d_knot6_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 6); -} - -static void box3d_knot7_click(SPItem *item, guint state) -{ - box3d_knot_click(item, state, 7); -} - - SPKnotHolder * box3d_knot_holder(SPItem *item, SPDesktop *desktop) { g_assert(item != NULL); SPKnotHolder *knot_holder = sp_knot_holder_new(desktop, item, NULL); - sp_knot_holder_add(knot_holder, box3d_knot0_set, box3d_knot0_get, box3d_knot0_click, + sp_knot_holder_add(knot_holder, box3d_knot0_set, box3d_knot0_get, NULL, _("Resize box in X/Y direction; with Shift along the Z axis; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot1_set, box3d_knot1_get, box3d_knot1_click, + sp_knot_holder_add(knot_holder, box3d_knot1_set, box3d_knot1_get, NULL, _("Resize box in X/Y direction; with Shift along the Z axis; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot2_set, box3d_knot2_get, box3d_knot2_click, + sp_knot_holder_add(knot_holder, box3d_knot2_set, box3d_knot2_get, NULL, _("Resize box in X/Y direction; with Shift along the Z axis; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot3_set, box3d_knot3_get, box3d_knot3_click, + sp_knot_holder_add(knot_holder, box3d_knot3_set, box3d_knot3_get, NULL, _("Resize box in X/Y direction; with Shift along the Z axis; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot4_set, box3d_knot4_get, box3d_knot4_click, + sp_knot_holder_add(knot_holder, box3d_knot4_set, box3d_knot4_get, NULL, _("Resize box along the Z axis; with Shift in X/Y direction; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot5_set, box3d_knot5_get, box3d_knot5_click, + sp_knot_holder_add(knot_holder, box3d_knot5_set, box3d_knot5_get, NULL, _("Resize box along the Z axis; with Shift in X/Y direction; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot6_set, box3d_knot6_get, box3d_knot6_click, + sp_knot_holder_add(knot_holder, box3d_knot6_set, box3d_knot6_get, NULL, _("Resize box along the Z axis; with Shift in X/Y direction; with Ctrl to constrain to the directions of edges or diagonals")); - sp_knot_holder_add(knot_holder, box3d_knot7_set, box3d_knot7_get, box3d_knot7_click, + sp_knot_holder_add(knot_holder, box3d_knot7_set, box3d_knot7_get, NULL, _("Resize box along the Z axis; with Shift in X/Y direction; with Ctrl to constrain to the directions of edges or diagonals")); // center dragging -- 2.39.5