--- src/gtk--/base.h.orig Tue Nov 14 21:23:11 2000 +++ src/gtk--/base.h Wed Oct 13 05:01:59 2004 @@ -99,12 +99,10 @@ /* Translating API */ -/* // used to give error on unwrapped types; connect Gtk-- crew -template struct NotWrapped; +template struct NotWrapped {typedef void Type;}; // hook for C => C++ translation template struct Wrap {typedef typename NotWrapped::Type CppType;}; -*/ class Object; class ObjectClass; @@ -118,19 +116,19 @@ // Request a specific wrapper for an object. template -Cpp* wrap_new(typename Cpp::BaseObjectType* o) +inline Cpp* wrap_new(typename Cpp::BaseObjectType* o) { return (typename Cpp::CppClassType::wrap_new(o)); } // interface to gtk-- -/* + template -typename Wrap::CppType* wrap(C* o) +inline typename Wrap::CppType* wrap(C* o) { return dynamic_cast::CppType*>(wrap_auto((GtkObject*)(o))); } -*/ + /********************************************************************/