X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47be989f6bee132748c4051577251e72c0b0c045..0c2f35dc94a4ae971cd2ed2a0c7464dc79cbc731:/src/motif/clipbrd.cpp diff --git a/src/motif/clipbrd.cpp b/src/motif/clipbrd.cpp index 9c09d7ff2b..275c02fd53 100644 --- a/src/motif/clipbrd.cpp +++ b/src/motif/clipbrd.cpp @@ -14,6 +14,15 @@ #pragma implementation "clipbrd.h" #endif +#ifdef __VMS +#include "wx/vms_x_fix.h" +#define XtWindow XTWINDOW +#define XtScreen XTSCREEN +#define XtParent XTPARENT +#define XtIsRealized XTISREALIZED +#define XtDisplay XTDISPLAY +#endif + #include "wx/defs.h" #if wxUSE_CLIPBOARD @@ -27,6 +36,7 @@ #ifdef __VMS__ #pragma message disable nosimpint + #endif #include #include @@ -163,9 +173,13 @@ struct wxDataIdToDataObject WX_DEFINE_LIST(wxDataObjectList); WX_DEFINE_LIST(wxDataIdToDataObjectList); +#if wxCHECK_LESSTIF() +static void wxClipboardCallback( Widget widget, int* data_id, + int* priv, int* reason ); +#else static void wxClipboardCallback( Widget widget, long* data_id, long* priv, int* reason ); - +#endif IMPLEMENT_DYNAMIC_CLASS(wxClipboard,wxObject) @@ -217,8 +231,13 @@ bool wxClipboard::SetData( wxDataObject *data ) wxDECLARE_SCOPED_ARRAY( wxDataFormat, wxDataFormatScopedArray ); wxDEFINE_SCOPED_ARRAY( wxDataFormat, wxDataFormatScopedArray ); +#if wxCHECK_LESSTIF() +void wxClipboardCallback( Widget xwidget, int* data_id, + int* priv, int* reason ) +#else void wxClipboardCallback( Widget xwidget, long* data_id, long* priv, int* reason ) +#endif { Display* xdisplay = XtDisplay( xwidget ); Window xwindow = XtWindow( xwidget );