aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-18 15:39:30 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit687d4d4d48dd6c98bb72dae4fb00765d942dad8b (patch)
tree5e79a0565a45279538d5d280c1995683906dc2a1
parent197d425f54fddf4162f81832f73cd2f0b0c20508 (diff)
Put report region in scrolled window
-rw-r--r--src/crystfel_gui.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index ed1e02bc..40821482 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -703,9 +703,15 @@ int main(int argc, char *argv[])
/* Report (text) region at bottom */
proj.report = gtk_text_view_new();
+ gtk_text_view_set_editable(GTK_TEXT_VIEW(proj.report), FALSE);
+ gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(proj.report), FALSE);
+ scroll = gtk_scrolled_window_new(NULL, NULL);
+ gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
frame = gtk_frame_new(NULL);
gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN);
- gtk_container_add(GTK_CONTAINER(frame), GTK_WIDGET(proj.report));
+ gtk_container_add(GTK_CONTAINER(frame), GTK_WIDGET(scroll));
+ gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(proj.report));
gtk_paned_pack2(GTK_PANED(vpaned), GTK_WIDGET(frame), FALSE, FALSE);
/* Send messages to report region */