X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32ac755d4a48496ecea17a50c216d44078f8dc8b..d78b3d64143f165857922e1e695ba4164d61869f:/src/gtk/button.cpp diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index 62e357c733..ad9b36f8da 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/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( "" ); @@ -120,6 +120,12 @@ void wxButton::SetDefault(void) SetSize( m_x, m_y, m_width, m_height ); } +/* static */ +wxSize wxButton::GetDefaultSize() +{ + return wxSize(80,26); +} + void wxButton::SetLabel( const wxString &label ) { wxCHECK_RET( m_widget != NULL, _T("invalid button") );