diff --git a/src/widgets/palette_view.cpp b/src/widgets/palette_view.cpp index ccd58251a..19ff4eda3 100644 --- a/src/widgets/palette_view.cpp +++ b/src/widgets/palette_view.cpp @@ -533,7 +533,10 @@ bool PaletteView::onProcessMessage(JMessage msg) update_scroll(c); + // Emit signals jwidget_emit_signal(this, SIGNAL_PALETTE_EDITOR_CHANGE); + IndexChange(c); + c = 256; break; } diff --git a/src/widgets/palette_view.h b/src/widgets/palette_view.h index fbd66efeb..a193cedda 100644 --- a/src/widgets/palette_view.h +++ b/src/widgets/palette_view.h @@ -21,6 +21,7 @@ #include +#include "base/signal.h" #include "gui/widget.h" // TODO use some JI_SIGNAL_USER @@ -52,6 +53,9 @@ public: int get2ndColor(); void getSelectedEntries(bool array[256]); + // Signals + Signal1 IndexChange; + protected: bool onProcessMessage(JMessage msg);