13
0

'libs/gtkmm2ext' - DLL visibility stuff and associated changes needed for building with MSVC. Currently includes debugging information and things that are just commented out until we have known compatibility with the other platforms (i.e. contains stuff to be removed at a later date)

This commit is contained in:
John Emmas 2014-01-20 17:01:58 +00:00
parent eb023b7496
commit b5e9e7c04c
4 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@
namespace Gtkmm2ext { namespace Gtkmm2ext {
template<class DataType> template<class DataType>
struct LIBGTKMM2EXT_API SerializedObjectPointers { struct /*LIBGTKMM2EXT_API*/ SerializedObjectPointers {
uint32_t size; uint32_t size;
uint32_t cnt; uint32_t cnt;
char type[32]; char type[32];
@ -89,7 +89,7 @@ class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView
}; };
template<class DataType> template<class DataType>
class LIBGTKMM2EXT_API DnDTreeView : public DnDTreeViewBase class /*LIBGTKMM2EXT_API*/ DnDTreeView : public DnDTreeViewBase
{ {
public: public:
DnDTreeView() {} DnDTreeView() {}

View File

@ -25,7 +25,7 @@
namespace Gtkmm2ext { namespace Gtkmm2ext {
/** Parent class for children of a DnDVBox */ /** Parent class for children of a DnDVBox */
class LIBGTKMM2EXT_API DnDVBoxChild class /*LIBGTKMM2EXT_API*/ DnDVBoxChild
{ {
public: public:
virtual ~DnDVBoxChild () {} virtual ~DnDVBoxChild () {}
@ -45,7 +45,7 @@ public:
/** A VBox whose contents can be dragged and dropped */ /** A VBox whose contents can be dragged and dropped */
template <class T> template <class T>
class LIBGTKMM2EXT_API DnDVBox : public Gtk::EventBox class /*LIBGTKMM2EXT_API*/ DnDVBox : public Gtk::EventBox
{ {
public: public:
DnDVBox () : _active (0), _drag_icon (0), _expecting_unwanted_button_event (false), _placeholder (0) DnDVBox () : _active (0), _drag_icon (0), _expecting_unwanted_button_event (false), _placeholder (0)

View File

@ -30,11 +30,11 @@
/* XXX g++ 2.95 can't compile this as pair of member function templates */ /* XXX g++ 2.95 can't compile this as pair of member function templates */
template<typename T> LIBGTKMM2EXT_API gint idle_delete (T *obj) { delete obj; return FALSE; } template<typename T> /*LIBGTKMM2EXT_API*/ gint idle_delete (T *obj) { delete obj; return FALSE; }
template<typename T> LIBGTKMM2EXT_API void delete_when_idle (T *obj) { template<typename T> /*LIBGTKMM2EXT_API*/ void delete_when_idle (T *obj) {
Glib::signal_idle().connect (sigc::bind (sigc::ptr_fun (idle_delete<T>), obj)); Glib::signal_idle().connect (sigc::bind (sigc::ptr_fun (idle_delete<T>), obj));
} }
template<typename T> LIBGTKMM2EXT_API gint delete_on_unmap (GdkEventAny *ignored, T *obj) { template<typename T> /*LIBGTKMM2EXT_API*/ gint delete_on_unmap (GdkEventAny *ignored, T *obj) {
Glib::signal_idle().connect (sigc::bind (sigc::ptr_fun (idle_delete<T>), obj)); Glib::signal_idle().connect (sigc::bind (sigc::ptr_fun (idle_delete<T>), obj));
return FALSE; return FALSE;
} }

View File

@ -75,7 +75,7 @@ namespace Gtkmm2ext {
LIBGTKMM2EXT_API void set_popdown_strings (Gtk::ComboBoxText&, LIBGTKMM2EXT_API void set_popdown_strings (Gtk::ComboBoxText&,
const std::vector<std::string>&); const std::vector<std::string>&);
template<class T> LIBGTKMM2EXT_API void deferred_delete (void *ptr) { template<class T> /*LIBGTKMM2EXT_API*/ void deferred_delete (void *ptr) {
delete static_cast<T *> (ptr); delete static_cast<T *> (ptr);
} }