13
0
livetrax/gtk2_ardour/gui_thread.h
Taybin Rutkin e493b2b7c4 Fly my pretties!
git-svn-id: svn://localhost/trunk/ardour2@28 d708f5d6-7413-0410-9779-e7cbd77b26cf
2005-09-25 20:33:00 +00:00

11 lines
286 B
C

#ifndef __ardour_gtk_gui_thread_h__
#define __ardour_gtk_gui_thread_h__
#define ENSURE_GUI_THREAD(slot) \
if (!Gtkmm2ext::UI::instance()->caller_is_gui_thread()) {\
Gtkmm2ext::UI::instance()->call_slot ((slot));\
return;\
}
#endif /* __ardour_gtk_gui_thread_h__ */