add: EnableControls(FALSE);
context: static gboolean download_memory_confirmed(double_widget* d_w) {  GError* error = NULL;  const gchar *start_s, *length_s;  char* filename_malloc;//  unsigned long start, length;  GtkWidget* file_selection_dialog = NULL;  char saveto[STRINGSIZE];  char* malloced_string = NULL;  start_s = gtk_entry_get_text(GTK_ENTRY(d_w->a));  length_s = gtk_entry_get_text(GTK_ENTRY(d_w->b));    if (strlen(start_s) == 0 || strlen(length_s) == 0) {    Log("Either the start or length fields are empty; please fill them");    return FALSE;  }  start_global = atoi(start_s);  length_global = atoi(length_s);    filename_malloc = get_download_filename(NULL);    if (!g_thread_create((GThreadFunc)download_memory_start_thread, filename_malloc, FALSE, &error)) {    Log("%s",error->message);    return FALSE;  }  return TRUE;}