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:
@@ -94,12 +94,9 @@ bool wxStaticText::Create(wxWindow *parent,
|
||||
// always shrinks to its minimal size for some reason and so no
|
||||
// alignment except the default left doesn't work (in fact it does,
|
||||
// but you don't see it)
|
||||
gtk_signal_disconnect_by_func
|
||||
(
|
||||
GTK_OBJECT(m_widget),
|
||||
GTK_SIGNAL_FUNC(wxgtk_window_size_request_callback),
|
||||
(gpointer) this
|
||||
);
|
||||
g_signal_handlers_disconnect_by_func (m_widget,
|
||||
(gpointer) wxgtk_window_size_request_callback,
|
||||
this);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Reference in New Issue
Block a user