]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textentry.cpp
attempt to get the 'new focus' window parameter of a focus kill event set correctly
[wxWidgets.git] / src / gtk / textentry.cpp
index 1f38fa69c75b6665d61ed89e51110198aa78aa62..f8f9730d6d704afe78e76fd9b505035ae4602b6b 100644 (file)
@@ -117,21 +117,21 @@ static void
 wx_gtk_copy_clipboard_callback( GtkWidget *widget, wxWindow *win )
 {
     DoHandleClipboardCallback(
-        widget, win, wxEVT_COMMAND_TEXT_COPY, "copy-clipboard" );
+        widget, win, wxEVT_TEXT_COPY, "copy-clipboard" );
 }
 
 static void
 wx_gtk_cut_clipboard_callback( GtkWidget *widget, wxWindow *win )
 {
     DoHandleClipboardCallback(
-        widget, win, wxEVT_COMMAND_TEXT_CUT, "cut-clipboard" );
+        widget, win, wxEVT_TEXT_CUT, "cut-clipboard" );
 }
 
 static void
 wx_gtk_paste_clipboard_callback( GtkWidget *widget, wxWindow *win )
 {
     DoHandleClipboardCallback(
-        widget, win, wxEVT_COMMAND_TEXT_PASTE, "paste-clipboard" );
+        widget, win, wxEVT_TEXT_PASTE, "paste-clipboard" );
 }
 
 } // extern "C"
@@ -402,11 +402,11 @@ void wxTextEntry::SetMaxLength(unsigned long len)
 void wxTextEntry::SendMaxLenEvent()
 {
     // remember that the next changed signal is to be ignored to avoid
-    // generating a dummy wxEVT_COMMAND_TEXT_UPDATED event
+    // generating a dummy wxEVT_TEXT event
     //IgnoreNextTextUpdate();
 
     wxWindow * const win = GetEditableWindow();
-    wxCommandEvent event(wxEVT_COMMAND_TEXT_MAXLEN, win->GetId());
+    wxCommandEvent event(wxEVT_TEXT_MAXLEN, win->GetId());
     event.SetEventObject(win);
     event.SetString(GetValue());
     win->HandleWindowEvent(event);