X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fgtkmm2ext%2Fdoi.h;h=4a9e58f920bf6598ce2307963759322931b12460;hb=b9c9777b9a2be6fab826fd1236820bb67859d292;hp=6ad1f7dd949ca6dbf3f306c4427fad05dc93a4f0;hpb=6edccc3070b813157ffcd4014ec8dd7fa6ed9ce7;p=ardour.git diff --git a/libs/gtkmm2ext/gtkmm2ext/doi.h b/libs/gtkmm2ext/gtkmm2ext/doi.h index 6ad1f7dd94..4a9e58f920 100644 --- a/libs/gtkmm2ext/gtkmm2ext/doi.h +++ b/libs/gtkmm2ext/gtkmm2ext/doi.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002 Paul Davis + Copyright (C) 2002 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 @@ -20,15 +20,22 @@ #ifndef __ardour_gtk_doi_h__ #define __ardour_gtk_doi_h__ -#include +#ifdef interface +#undef interface +#endif + +#include +#include + +#include "gtkmm2ext/visibility.h" /* XXX g++ 2.95 can't compile this as pair of member function templates */ -template gint idle_delete (T *obj) { delete obj; return FALSE; } -template void delete_when_idle (T *obj) { +template /*LIBGTKMM2EXT_API*/ gint idle_delete (T *obj) { delete obj; return FALSE; } +template /*LIBGTKMM2EXT_API*/ void delete_when_idle (T *obj) { Glib::signal_idle().connect (sigc::bind (sigc::ptr_fun (idle_delete), obj)); } -template gint delete_on_unmap (GdkEventAny *ignored, T *obj) { +template /*LIBGTKMM2EXT_API*/ gint delete_on_unmap (GdkEventAny *ignored, T *obj) { Glib::signal_idle().connect (sigc::bind (sigc::ptr_fun (idle_delete), obj)); return FALSE; }