X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32ac755d4a48496ecea17a50c216d44078f8dc8b..acbd3e518a8bf2ec24e57bdc57e7844f4aefaffe:/src/gtk1/button.cpp?ds=sidebyside diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 62e357c733..613aab8a05 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -47,8 +47,6 @@ static void gtk_button_clicked_callback( GtkWidget *WXUNUSED(widget), wxButton * if (!button->m_hasVMT) return; if (g_blockEventsOnDrag) return; - printf( "clicked: %s.\n", button->GetLabel().c_str() ); - wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, button->GetId()); event.SetEventObject(button); button->GetEventHandler()->ProcessEvent(event); @@ -81,7 +79,9 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label, PreCreation( parent, id, pos, newSize, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif // wxUSE_VALIDATORS m_widget = gtk_button_new_with_label( "" );