How can I get the variable from gpointer so I can use it.
void
right_y (GtkButton *button, gpointer on)
{
right(on);
}
Here is the callback part The line with char on = "y"; gives warning: initialization makes integer from pointer without a cast [-Wint-conversion]
The gsignal line gives warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
char on = "y";
button = gtk_button_new_with_label ("Led On");
g_signal_connect (button, "clicked", G_CALLBACK (right_y), (gpointer) on);
Ive tried this a few different ways and still cant get it.
Thanks.