Browse Source

remove some log messages

master
Alexandros Theodotou 3 years ago
parent
commit
5c09a9b4a2
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 12
      src/zlfo_ui.c

12
src/zlfo_ui.c

@ -1816,7 +1816,6 @@ mid_region_bg_update_cb ( @@ -1816,7 +1816,6 @@ mid_region_bg_update_cb (
(float)
CLAMP (dy / GRID_HEIGHT, 0.0, 1.0));
self->dragging_node = self->num_nodes;
g_message ("double clicked on new dragging node %d", self->dragging_node);
num_nodes_setter (
self, self->num_nodes + 1);
}
@ -1830,7 +1829,6 @@ mid_region_bg_update_cb ( @@ -1830,7 +1829,6 @@ mid_region_bg_update_cb (
/* move currently dragged node */
if (self->dragging_node >= 0)
{
g_message ("moving %d", self->dragging_node);
node_pos_setter (
self,
(unsigned int) self->dragging_node,
@ -1899,25 +1897,27 @@ node_update_cb ( @@ -1899,25 +1897,27 @@ node_update_cb (
/* delete if right clicked */
if (w->state & ZTK_WIDGET_STATE_RIGHT_PRESSED)
{
g_message ("idx %d last delete %f last b tn press %f", data->idx, self->last_delete_click, w->last_btn_press);
if (data->idx != 0 &&
!math_doubles_equal (
self->last_delete_click,
w->last_btn_press))
{
g_message ("delete");
for (int i = data->idx; i < 15; i++)
{
self->nodes[i][0] =
self->nodes[i + 1][0];
self->nodes[i][1] =
self->nodes[i + 1][1];
node_pos_setter (
self, (unsigned int) i,
self->nodes[i + 1][0]);
node_val_setter (
self, (unsigned int) i,
self->nodes[i + 1][1]);
g_message ("index %d", i);
}
self->num_nodes--;
num_nodes_setter (
self, self->num_nodes - 1);
self, self->num_nodes);
self->last_delete_click =
w->last_btn_press;
}

Loading…
Cancel
Save