Use g_signal* instead of deprecated gtk_signal*. Use proper casts for the arguments.
Worth norting from the GTK+ docs: "For future usage, direct use of the GSignal API is recommended, this avoids significant performance hits where GtkArg structures have to be converted into GValues." git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -83,9 +83,9 @@ bool wxToggleBitmapButton::Create(wxWindow *parent, wxWindowID id,
|
||||
OnSetBitmap();
|
||||
}
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(m_widget), "clicked",
|
||||
GTK_SIGNAL_FUNC(gtk_togglebutton_clicked_callback),
|
||||
(gpointer *)this);
|
||||
g_signal_connect (m_widget, "clicked",
|
||||
G_CALLBACK (gtk_togglebutton_clicked_callback),
|
||||
this);
|
||||
|
||||
m_parent->DoAddChild(this);
|
||||
|
||||
@@ -247,9 +247,9 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
|
||||
// Create the gtk widget.
|
||||
m_widget = gtk_toggle_button_new_with_label( wxGTK_CONV( m_label ) );
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(m_widget), "clicked",
|
||||
GTK_SIGNAL_FUNC(gtk_togglebutton_clicked_callback),
|
||||
(gpointer *)this);
|
||||
g_signal_connect (m_widget, "clicked",
|
||||
G_CALLBACK (gtk_togglebutton_clicked_callback),
|
||||
this);
|
||||
|
||||
m_parent->DoAddChild(this);
|
||||
|
||||
|
Reference in New Issue
Block a user