static void refresh_cb (GtkButton * button, GtkWidget * chooser) { char * path = gtk_file_chooser_get_filename ((GtkFileChooser *) chooser); begin_add (path); g_free (path); update_database (); }
// Help functions void add(cpu_task_func func, void* context) { end_add(begin_add(func, context)); }