X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68567a967bc8afd37a40cb9a7ee5021b9ee6cd96..4c410aa14e7818b946351842fed2905239c15592:/src/gtk/button.cpp diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index 2fd0db643d..5a05a8db2e 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -155,11 +155,13 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label, if (style & wxNO_BORDER) gtk_button_set_relief( GTK_BUTTON(m_widget), GTK_RELIEF_NONE ); - gtk_signal_connect_after( GTK_OBJECT(m_widget), "clicked", - GTK_SIGNAL_FUNC(gtk_button_clicked_callback), (gpointer*)this ); + g_signal_connect_after (m_widget, "clicked", + G_CALLBACK (gtk_button_clicked_callback), + this); - gtk_signal_connect_after( GTK_OBJECT(m_widget), "style_set", - GTK_SIGNAL_FUNC(gtk_button_style_set_callback), (gpointer*) this ); + g_signal_connect_after (m_widget, "style_set", + G_CALLBACK (gtk_button_style_set_callback), + this); m_parent->DoAddChild( this );