diff options
author | nyamatongwe <unknown> | 2001-12-20 22:44:04 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-12-20 22:44:04 +0000 |
commit | 3a04bd6d2957f283e90d5add5d03fc1882726669 (patch) | |
tree | 93db982c27915669db06b442c2042f8e692103f2 /include/Platform.h | |
parent | 2b672082c6806d274d11c27dd6f65ffee23d30a2 (diff) | |
download | scintilla-mirror-3a04bd6d2957f283e90d5add5d03fc1882726669.tar.gz |
Patch from stephan to avoid setting cursor to the same value multiple
times on GTK+ as it is retained by the window.
Minor cleanups.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/Platform.h b/include/Platform.h index 80f5af2e3..b3cfcfe66 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -310,8 +310,8 @@ class Window { protected: WindowID id; public: - Window() : id(0) {} - Window(const Window &source) : id(source.id) {} + Window() : id(0), cursorLast(cursorInvalid) {} + Window(const Window &source) : id(source.id), cursorLast(cursorInvalid) {} virtual ~Window(); Window &operator=(WindowID id_) { id = id_; @@ -329,9 +329,11 @@ public: void InvalidateAll(); void InvalidateRectangle(PRectangle rc); virtual void SetFont(Font &font); - enum Cursor { cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow }; + enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow }; void SetCursor(Cursor curs); void SetTitle(const char *s); +private: + Cursor cursorLast; }; /** |