diff options
| author | nyamatongwe <devnull@localhost> | 2001-12-20 22:44:04 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-12-20 22:44:04 +0000 | 
| commit | 5cd80a8dce1c7f35546567b0e2af6bed3e1116d8 (patch) | |
| tree | 93db982c27915669db06b442c2042f8e692103f2 /include/Platform.h | |
| parent | d679ceff1769acfd5abffd4f2a43076bb68cc311 (diff) | |
| download | scintilla-mirror-5cd80a8dce1c7f35546567b0e2af6bed3e1116d8.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;  };  /** | 
