From cdbb903edbbe71d3e7a8db61728164b88e8e9c45 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 28 Apr 2013 20:30:05 +0200 Subject: Fix gui crash on window close. Make drumkit and midimap file and status reshow in the gui. --- plugingui/plugingui.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugingui/plugingui.h') diff --git a/plugingui/plugingui.h b/plugingui/plugingui.h index 1f0bf57..ac0023b 100644 --- a/plugingui/plugingui.h +++ b/plugingui/plugingui.h @@ -51,17 +51,16 @@ public: ~PluginGUI(); void thread_main(); + void stopThread(); void init(); + void deinit(); void show(); void hide(); void processEvents(); void setWindowClosedCallback(void (*handler)(void *), void *ptr); - void setChangeMidimapCallback(void (*handler)(void *, const char *), - void *ptr); - //private: GUI::GlobalContext *gctx; GUI::Window *window; @@ -91,6 +90,7 @@ public: private: volatile bool running; + volatile bool closing; Semaphore sem; }; -- cgit v1.2.3