X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17665a2b5c3e86e081963f9d40d45149a7aaa83e..5a41989248f5af10f67bcd526970968c0ba7439d:/src/gtk/textctrl.cpp diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index bde02f7faa..65f7951813 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -80,7 +80,6 @@ gtk_scrollbar_changed_callback( GtkWidget *WXUNUSED(widget), wxTextCtrl *win ) // "focus_in_event" //----------------------------------------------------------------------------- -wxWindow *FindFocusedChild(wxWindow *win); extern wxWindow *g_focusWindow; extern bool g_blockEventsOnDrag; // extern bool g_isIdle; @@ -152,7 +151,7 @@ static gint gtk_text_focus_out_callback( GtkWidget *widget, GdkEvent *WXUNUSED(e g_sendActivateEvent = 0; #endif - wxWindow *winFocus = FindFocusedChild(win); + wxWindow *winFocus = wxFindFocusedChild(win); if ( winFocus ) win = winFocus; @@ -926,27 +925,6 @@ void wxTextCtrl::Paste() #endif } -bool wxTextCtrl::CanCopy() const -{ - // Can copy if there's a selection - long from, to; - GetSelection(& from, & to); - return (from != to) ; -} - -bool wxTextCtrl::CanCut() const -{ - // Can cut if there's a selection - long from, to; - GetSelection(& from, & to); - return (from != to) && (IsEditable()); -} - -bool wxTextCtrl::CanPaste() const -{ - return IsEditable() ; -} - // Undo/redo void wxTextCtrl::Undo() {