int foo(gpointer kitty)
{
g_print(kitty);
}
int main(int argc, char* argv[])
{
gtk_init(&argc, &argv);
gtk_timeout_add(1000, foo, (gpointer)"1");
gtk_main();
}
How would I go about stopping the timeout?
int foo(gpointer kitty)
{
g_print(kitty);
}
int main(int argc, char* argv[])
{
gtk_init(&argc, &argv);
gtk_timeout_add(1000, foo, (gpointer)"1");
gtk_main();
}
How would I go about stopping the timeout?
Well you could check to see if there is a way built-in to let you do that, otherwise it just may not be possible.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.