X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fgui_thread.h;h=76295a499f68c7941cc0a26cca846b4c8e3f1b94;hb=78f749ef65e725eee82938df76f24c2b6811a519;hp=388902fa28be8c315fa4504e31423ca9567208e4;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/gtk2_ardour/gui_thread.h b/gtk2_ardour/gui_thread.h index 388902fa28..76295a499f 100644 --- a/gtk2_ardour/gui_thread.h +++ b/gtk2_ardour/gui_thread.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2012 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,20 +17,4 @@ */ -#ifndef __ardour_gtk_gui_thread_h__ -#define __ardour_gtk_gui_thread_h__ - -#include -#include "pbd/crossthread.h" - -#define ENSURE_GUI_THREAD(slot) \ - if (!Gtkmm2ext::UI::instance()->caller_is_ui_thread()) {\ - 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__ */ +#include "gtkmm2ext/gui_thread.h"