summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gui_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/gui_thread.h')
-rw-r--r--gtk2_ardour/gui_thread.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk2_ardour/gui_thread.h b/gtk2_ardour/gui_thread.h
index 388902fa28..f9e5165a03 100644
--- a/gtk2_ardour/gui_thread.h
+++ b/gtk2_ardour/gui_thread.h
@@ -21,16 +21,11 @@
#define __ardour_gtk_gui_thread_h__
#include <gtkmm2ext/gtk_ui.h>
-#include "pbd/crossthread.h"
#define ENSURE_GUI_THREAD(slot) \
- if (!Gtkmm2ext::UI::instance()->caller_is_ui_thread()) {\
+ if (!Gtkmm2ext::UI::instance()->caller_is_self()) { \
Gtkmm2ext::UI::instance()->call_slot ((slot));\
return;\
}
-#define GTK_SAFE(theSlot) crossthread_safe (Gtkmm2ext::UI::instance()->thread_id(),\
- *Gtkmm2ext::UI::instance(), \
- (theSlot))
-
#endif /* __ardour_gtk_gui_thread_h__ */