X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ab75332894d55b557102c5a287727ca635cb1ff..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/gtk/tglbtn.cpp?ds=inline diff --git a/src/gtk/tglbtn.cpp b/src/gtk/tglbtn.cpp index 1ad831108f..7673bca04a 100644 --- a/src/gtk/tglbtn.cpp +++ b/src/gtk/tglbtn.cpp @@ -33,14 +33,14 @@ static void gtk_togglebutton_clicked_callback(GtkWidget *WXUNUSED(widget), wxTog return; // Generate a wx event. - wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, cb->GetId()); + wxCommandEvent event(wxEVT_TOGGLEBUTTON, cb->GetId()); event.SetInt(cb->GetValue()); event.SetEventObject(cb); cb->HandleWindowEvent(event); } } -wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent ); +wxDEFINE_EVENT( wxEVT_TOGGLEBUTTON, wxCommandEvent ); // ------------------------------------------------------------------------ // wxBitmapToggleButton @@ -235,7 +235,7 @@ wxSize wxToggleButton::DoGetBestSize() const wxVisualAttributes wxToggleButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) { - return GetDefaultAttributesFromGTKWidget(gtk_toggle_button_new); + return GetDefaultAttributesFromGTKWidget(gtk_toggle_button_new()); } #endif // wxUSE_TOGGLEBTN