diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-21 18:23:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-21 18:23:07 +0000 |
commit | f450df300c9c057141a4caf79ff6dbfbf58492d9 (patch) | |
tree | 409f9c56056a337cade83d45ccff47ccdb06dd0c /gtk2_ardour/gui_thread.h | |
parent | 738387f9a417537e768d56d3fc4afcb9dc82d66b (diff) |
fully implement and deploy explicit x-thread signal connection syntax (testing comes next)
git-svn-id: svn://localhost/ardour2/branches/3.0@6379 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/gui_thread.h')
-rw-r--r-- | gtk2_ardour/gui_thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/gui_thread.h b/gtk2_ardour/gui_thread.h index f932c603ac..edea9b9d21 100644 --- a/gtk2_ardour/gui_thread.h +++ b/gtk2_ardour/gui_thread.h @@ -22,6 +22,7 @@ #include <gtkmm2ext/gtk_ui.h> #include <boost/bind.hpp> +#include <boost/bind/protect.hpp> #define ENSURE_GUI_THREAD(obj,method, ...) \ if (!Gtkmm2ext::UI::instance()->caller_is_self()) { \ @@ -29,4 +30,7 @@ return;\ } +#define gui_context() Gtkmm2ext::UI::instance() /* a UICallback-derived object that specifies the event loop for GUI signal handling */ +#define ui_bind(f, ...) boost::protect (boost::bind (f, __VA_ARGS__)) + #endif /* __ardour_gtk_gui_thread_h__ */ |