aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_local.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-27 17:24:12 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commitba77d15bc3b743dd506a943189c13c4e95f33760 (patch)
treec50c604ad5ddb4722a5a985413721ad477bf0521 /src/gui_backend_local.c
parentd80dec2c52ce8c7734506440f275467a1ee133cc (diff)
Add info bar / progress bar
Diffstat (limited to 'src/gui_backend_local.c')
-rw-r--r--src/gui_backend_local.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c
index 7ef059ab..80057a03 100644
--- a/src/gui_backend_local.c
+++ b/src/gui_backend_local.c
@@ -39,6 +39,7 @@ static gboolean index_readable(GIOChannel *source, GIOCondition cond,
GError *err = NULL;
struct crystfelproject *proj = vp;
gchar *line;
+ double frac = 0.1;
r = g_io_channel_read_line(source, &line, NULL, NULL, &err);
if ( r == G_IO_STATUS_EOF ) {
@@ -52,6 +53,9 @@ static gboolean index_readable(GIOChannel *source, GIOCondition cond,
chomp(line);
STATUS("Got line '%s'\n", line);
+ gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(proj->progressbar),
+ frac);
+
g_free(line);
return TRUE;