Im having a problem - i am coming back to C from about 4 years off and need some help figureing something out - i have a GTK button pressed rigged to run a subroutine that prints the data passed to it - however the sub routine isnt printing anything until i close the window, how can i solve this so it prints upon the button press?
int lastspin(char *number, char *rbg, char *evodd, char *hl)
{
printf("Number %s Colour %s Even/Odd %s High/Low %s", number, rbg, evodd, hl);
return 0;
}
void closeApp ( GtkWidget *window, gpointer data)
{
gtk_main_quit();
}
gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data)
{
return FALSE;
}
int button0_clicked(GtkWidget *button0, gpointer data)
{
lastspin("0","GREEN","EVEN","NA");
}
Thanks - its probably something small so sorry for bothering you :-)

New Topic/Question
Reply



MultiQuote




|