diff options
author | Thomas White <taw@physics.org> | 2020-03-18 15:44:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 66702a29465ab23bf1b8dbe1ee8bf5ce14623a36 (patch) | |
tree | 2ed8102827f88e5d51338460d2ab46cc9d7e4656 | |
parent | 555d48431b13d7184c2e4f59aa95eebea12014cb (diff) |
Scroll to end of report with each new message
-rw-r--r-- | src/crystfel_gui.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 40821482..3b762cc5 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -546,6 +546,9 @@ static void add_gui_message(enum log_msg_type type, const char *msg, 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); + gtk_text_buffer_get_end_iter(buf, &iter); + gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(proj->report), + &iter, 0.0, FALSE, 0.0, 0.0); } |