Why is this?
int kitty(GtkWidget* widget, float* foo)
{
if(*foo != .5f)
std::cout << "this usually occurs" << std::endl;
}
int otherFunc(void)
{
float foo = .5f;
//assume widget has been created
g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(kitty), (gpointer)&foo);
}