Removed redundant GetEditableWindow on GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -201,9 +201,6 @@ public:
|
|||||||
virtual bool DoSaveFile(const wxString& file = wxEmptyString,
|
virtual bool DoSaveFile(const wxString& file = wxEmptyString,
|
||||||
int fileType = wxRICHTEXT_TYPE_ANY);
|
int fileType = wxRICHTEXT_TYPE_ANY);
|
||||||
|
|
||||||
// implement the wxTextEntry pure virtual method
|
|
||||||
virtual wxWindow *GetEditableWindow() { return this; }
|
|
||||||
|
|
||||||
/// Set the handler flags, controlling loading and saving
|
/// Set the handler flags, controlling loading and saving
|
||||||
void SetHandlerFlags(int flags) { GetBuffer().SetHandlerFlags(flags); }
|
void SetHandlerFlags(int flags) { GetBuffer().SetHandlerFlags(flags); }
|
||||||
|
|
||||||
@@ -825,6 +822,9 @@ public:
|
|||||||
virtual wxString DoGetValue() const;
|
virtual wxString DoGetValue() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
// implement the wxTextEntry pure virtual method
|
||||||
|
virtual wxWindow *GetEditableWindow() { return this; }
|
||||||
|
|
||||||
// FIXME: this does not work, it allows this code to compile but will fail
|
// FIXME: this does not work, it allows this code to compile but will fail
|
||||||
// during run-time
|
// during run-time
|
||||||
#ifndef __WXUNIVERSAL__
|
#ifndef __WXUNIVERSAL__
|
||||||
@@ -835,7 +835,6 @@ protected:
|
|||||||
virtual WXWidget GetTextWidget() const { return NULL; }
|
virtual WXWidget GetTextWidget() const { return NULL; }
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
virtual wxWindow *GetEditableWindow() { return this; }
|
|
||||||
virtual GtkEditable *GetEditable() const { return NULL; }
|
virtual GtkEditable *GetEditable() const { return NULL; }
|
||||||
virtual GtkEntry *GetEntry() const { return NULL; }
|
virtual GtkEntry *GetEntry() const { return NULL; }
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user