projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make wxGenericDataViewCtrl::SetFont() really work.
[wxWidgets.git]
/
src
/
motif
/
cursor.cpp
diff --git
a/src/motif/cursor.cpp
b/src/motif/cursor.cpp
index 4500e6ebc21eca1a20f0dc80df3ee8307ee255b2..56b1b840ca59f6f85436ed0b8fe5fc883cddc5ae 100644
(file)
--- a/
src/motif/cursor.cpp
+++ b/
src/motif/cursor.cpp
@@
-59,6
+59,11
@@
public:
wxXCursorList m_cursors; // wxXCursor objects, one per display
wxStockCursor m_cursorId; // wxWidgets standard cursor id
wxXCursorList m_cursors; // wxXCursor objects, one per display
wxStockCursor m_cursorId; // wxWidgets standard cursor id
+private:
+ // There is no way to copy m_cursor so we can't implement a copy ctor
+ // properly.
+ wxDECLARE_NO_COPY_CLASS(wxCursorRefData);
+
friend class wxCursor;
};
friend class wxCursor;
};
@@
-304,9
+309,12
@@
wxGDIRefData *wxCursor::CreateGDIRefData() const
return new wxCursorRefData;
}
return new wxCursorRefData;
}
-wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
+wxGDIRefData *
+wxCursor::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const
{
{
- return new wxCursorRefData(*static_cast<const wxCursorRefData *>(data));
+ wxFAIL_MSG( wxS("Cloning cursors is not implemented in wxMotif.") );
+
+ return new wxCursorRefData;
}
// Motif-specific: create/get a cursor for the current display
}
// Motif-specific: create/get a cursor for the current display
@@
-458,7
+466,7
@@
wxXSetBusyCursor (wxWindow * win, const wxCursor * cursor)
else
{
// Restore old cursor
else
{
// Restore old cursor
- if (win->GetCursor().Ok())
+ if (win->GetCursor().
Is
Ok())
attrs.cursor = (Cursor) win->GetCursor().GetXCursor(display);
else
attrs.cursor = None;
attrs.cursor = (Cursor) win->GetCursor().GetXCursor(display);
else
attrs.cursor = None;