Skip to content

Commit 8691350

Browse files
committed
Some small fixes
1 parent 1509ab7 commit 8691350

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

include/lsp-plug.in/tk/widgets/specific/AudioEnvelope.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace lsp
169169
size_t nBufCapacity; // Drawing buffer capacity in floats
170170

171171
protected:
172-
static status_t slot_on_submit(Widget *sender, void *ptr, void *data);
172+
static status_t slot_on_change(Widget *sender, void *ptr, void *data);
173173

174174
protected:
175175
void do_destroy();
@@ -251,7 +251,7 @@ namespace lsp
251251
virtual status_t on_mouse_scroll(const ws::event_t *e) override;
252252

253253
public:
254-
virtual status_t on_submit();
254+
virtual status_t on_change();
255255
};
256256
} /* namespace tk */
257257
} /* namespace lsp */

src/main/widgets/specific/AudioEnvelope.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ namespace lsp
284284
sIPadding.bind("ipadding", &sStyle);
285285

286286
// Add slots
287-
handler_id_t id = sSlots.add(SLOT_SUBMIT, slot_on_submit, self());
287+
handler_id_t id = sSlots.add(SLOT_CHANGE, slot_on_change, self());
288288

289289
return (id >= 0) ? STATUS_OK : -id;
290290
}
@@ -551,7 +551,7 @@ namespace lsp
551551
p->nX = ox + dx * x;
552552
p->nY = oy + dy * y;
553553

554-
lsp_trace("this=%p point[%d] = {%d, %d}", this, int(i), int(p->nX), int(p->nY));
554+
// lsp_trace("this=%p point[%d] = {%d, %d}", this, int(i), int(p->nX), int(p->nY));
555555
}
556556

557557
// Draw points
@@ -646,7 +646,7 @@ namespace lsp
646646
s->clip_end();
647647
}
648648

649-
status_t AudioEnvelope::on_submit()
649+
status_t AudioEnvelope::on_change()
650650
{
651651
return STATUS_OK;
652652
}
@@ -659,7 +659,7 @@ namespace lsp
659659

660660
pHandler = point;
661661
query_draw();
662-
lsp_trace("this=%p handler set to %p", this, pHandler);
662+
// lsp_trace("this=%p handler set to %p", this, pHandler);
663663
}
664664

665665
status_t AudioEnvelope::on_mouse_in(const ws::event_t *e)
@@ -674,7 +674,7 @@ namespace lsp
674674
{
675675
pHandler = NULL;
676676
query_draw();
677-
lsp_trace("this=%p handler set to %p", this, pHandler);
677+
// lsp_trace("this=%p handler set to %p", this, pHandler);
678678
}
679679
return STATUS_OK;
680680
}
@@ -703,7 +703,7 @@ namespace lsp
703703

704704
status_t AudioEnvelope::on_mouse_move(const ws::event_t *e)
705705
{
706-
lsp_trace("x=%d, y=%d", int(e->nLeft), int(e->nTop));
706+
// lsp_trace("x=%d, y=%d", int(e->nLeft), int(e->nTop));
707707

708708
if (nBMask == 0)
709709
{
@@ -754,7 +754,7 @@ namespace lsp
754754

755755
if (changed)
756756
{
757-
sSlots.slot(SLOT_SUBMIT)->execute(this, NULL);
757+
sSlots.slot(SLOT_CHANGE)->execute(this, NULL);
758758
query_draw();
759759
}
760760

@@ -791,10 +791,10 @@ namespace lsp
791791
return STATUS_OK;
792792
}
793793

794-
status_t AudioEnvelope::slot_on_submit(Widget *sender, void *ptr, void *data)
794+
status_t AudioEnvelope::slot_on_change(Widget *sender, void *ptr, void *data)
795795
{
796796
AudioEnvelope *self = widget_ptrcast<AudioEnvelope>(ptr);
797-
return (self != NULL) ? self->on_submit() : STATUS_BAD_ARGUMENTS;
797+
return (self != NULL) ? self->on_change() : STATUS_BAD_ARGUMENTS;
798798
}
799799

800800
void AudioEnvelope::set_curve_function(curve_function_t function, void *data)

0 commit comments

Comments
 (0)