aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crystfel_gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index 87a34936..3603064b 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -540,7 +540,12 @@ static void add_task_buttons(GtkWidget *vbox, struct crystfelproject *proj)
static void add_gui_message(enum log_msg_type type, const char *msg,
void *vp)
{
- printf("message '%s'\n", msg);
+ GtkTextBuffer *buf;
+ GtkTextIter iter;
+ struct crystfelproject *proj = vp;
+ buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(proj->report));
+ gtk_text_buffer_get_end_iter(buf, &iter);
+ gtk_text_buffer_insert(buf, &iter, msg, -1);
}