Include gtkmm2ext/gtk_ui.h
[ardour.git] / gtk2_ardour / gui_thread.h
1 #ifndef __ardour_gtk_gui_thread_h__
2 #define __ardour_gtk_gui_thread_h__
3
4 #include <gtkmm2ext/gtk_ui.h>
5
6 #define ENSURE_GUI_THREAD(slot) \
7      if (!Gtkmm2ext::UI::instance()->caller_is_gui_thread()) {\
8         Gtkmm2ext::UI::instance()->call_slot ((slot));\
9         return;\
10      }
11
12 #endif /* __ardour_gtk_gui_thread_h__ */