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:
@@ -117,14 +117,14 @@ void wxScrollHelperNative::DoAdjustScrollbar(GtkAdjustment *adj,
|
||||
else
|
||||
{
|
||||
// We need to actually scroll window
|
||||
gtk_signal_emit_by_name( GTK_OBJECT(adj), "value_changed" );
|
||||
g_signal_emit_by_name (adj, "value_changed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*lines = (int)(adj->upper + 0.5);
|
||||
*linesPerPage = (int)(adj->page_increment + 0.5);
|
||||
gtk_signal_emit_by_name( GTK_OBJECT(adj), "changed" );
|
||||
g_signal_emit_by_name (adj, "changed");
|
||||
}
|
||||
|
||||
void wxScrollHelperNative::AdjustScrollbars()
|
||||
|
||||
Reference in New Issue
Block a user