1 #ifndef __ardour_gtk_gui_thread_h__
2 #define __ardour_gtk_gui_thread_h__
4 #include <gtkmm2ext/gtk_ui.h>
6 #define ENSURE_GUI_THREAD(slot) \
7 if (!Gtkmm2ext::UI::instance()->caller_is_gui_thread()) {\
8 Gtkmm2ext::UI::instance()->call_slot ((slot));\
12 #endif /* __ardour_gtk_gui_thread_h__ */