]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed redundant GetEditableWindow on GTK+
authorJulian Smart <julian@anthemion.co.uk>
Mon, 4 Oct 2010 09:27:52 +0000 (09:27 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 4 Oct 2010 09:27:52 +0000 (09:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/richtext/richtextctrl.h

index bb34cdc9b7021c289a806ff7f5989bee49aa3b9d..f2d976a6dd880a27e7737e65f40e4254cc72a3ac 100644 (file)
@@ -201,9 +201,6 @@ public:
     virtual bool DoSaveFile(const wxString& file = wxEmptyString,
                             int fileType = wxRICHTEXT_TYPE_ANY);
 
-    // implement the wxTextEntry pure virtual method
-    virtual wxWindow *GetEditableWindow() { return this; }
-
     /// Set the handler flags, controlling loading and saving
     void SetHandlerFlags(int flags) { GetBuffer().SetHandlerFlags(flags); }
 
@@ -825,6 +822,9 @@ public:
      virtual wxString DoGetValue() const;
 
 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
      //        during run-time
 #ifndef __WXUNIVERSAL__
@@ -835,7 +835,6 @@ protected:
     virtual WXWidget GetTextWidget() const { return NULL; }
 #endif
 #ifdef __WXGTK20__
-    virtual wxWindow *GetEditableWindow() { return this; }
     virtual GtkEditable *GetEditable() const { return NULL; }
     virtual GtkEntry *GetEntry() const { return NULL; }
 #endif