I'm using anjuta with glade and gtk+.
I'm trying to get the button in my app to change the window title:
void changetitle(GtkWidget *win)
{
gtk_window_set_title(GTK_WINDOW(win),"My Window");
FILE *fh = fopen("/tmp/output.txt", "w");
fclose(fh);
}
I'm trying to get the button to execute this action, but I seem to be failing with passing the window as an argument.
Here's what I've tried:
the second function (creating the file) seems to work.