-#ifdef __WXGTK__
- // implement this to return the associated window, it will be used for
- // event generation
- virtual const wxWindow *GetEditableWindow() const { return NULL; }
-
- // implement this to return the associated GtkEntry or another widget
- // implementing GtkEditable
+#ifdef __WXMOTIF__
+ virtual WXWidget GetTextWidget() const { return NULL; }
+#endif
+#ifdef __WXGTK20__
+ virtual wxWindow *GetEditableWindow() { return this; }