]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
Added #include wx/dcclient.h and wx/settings.h for Vadims new code under
[wxWidgets.git] / src / gtk / button.cpp
index 62e357c733284bc151a8a3e81a4a6018314b0648..613aab8a05068dbb9222ba0b19278b94f099ecbc 100644 (file)
@@ -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( "" );