diff options
author | Thomas White <taw@physics.org> | 2020-03-27 17:24:12 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | ba77d15bc3b743dd506a943189c13c4e95f33760 (patch) | |
tree | c50c604ad5ddb4722a5a985413721ad477bf0521 /src/gui_index.c | |
parent | d80dec2c52ce8c7734506440f275467a1ee133cc (diff) |
Add info bar / progress bar
Diffstat (limited to 'src/gui_index.c')
-rw-r--r-- | src/gui_index.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index a09b4c27..46728716 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -58,8 +58,13 @@ static void unitcell_response_sig(GtkWidget *dialog, gint resp, return; } - proj->backend->run_unitcell(proj, algo); - proj->unitcell_combo = NULL; + if ( proj->backend->run_unitcell(proj, algo) == 0 ) { + proj->unitcell_combo = NULL; + + gtk_progress_bar_set_text(GTK_PROGRESS_BAR(proj->progressbar), + "Indexing (determine unit cell parameters)"); + gtk_info_bar_set_revealed(GTK_INFO_BAR(proj->info_bar), TRUE); + } } |