projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typo
[wxWidgets.git]
/
src
/
gtk1
/
cursor.cpp
diff --git
a/src/gtk1/cursor.cpp
b/src/gtk1/cursor.cpp
index bd1e6ca2bd6535d3f8820d88c665900fc46870e7..3b14510edbbe134402f11879372c9c67a798e749 100644
(file)
--- a/
src/gtk1/cursor.cpp
+++ b/
src/gtk1/cursor.cpp
@@
-31,10
+31,9
@@
extern bool g_isIdle;
// wxCursor
//-----------------------------------------------------------------------------
// wxCursor
//-----------------------------------------------------------------------------
-class wxCursorRefData
: public wxObject
RefData
+class wxCursorRefData
: public wxGDI
RefData
{
{
- public:
-
+public:
wxCursorRefData();
virtual ~wxCursorRefData();
wxCursorRefData();
virtual ~wxCursorRefData();
@@
-316,14
+315,19
@@
wxCursor::~wxCursor()
{
}
{
}
-
bool wxCursor::IsOk
() const
+
GdkCursor *wxCursor::GetCursor
() const
{
{
- return
(m_refData != NULL)
;
+ return
M_CURSORDATA->m_cursor
;
}
}
-
GdkCursor *wxCursor::GetCursor
() const
+
wxGDIRefData *wxCursor::CreateGDIRefData
() const
{
{
- return M_CURSORDATA->m_cursor;
+ return new wxCursorRefData;
+}
+
+wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
+{
+ return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data));
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------