aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-12-04 17:53:28 +0100
committerThomas White <taw@physics.org>2020-12-04 17:53:28 +0100
commit34d12161785e2bfd165ed8c5f9b471fe48a32e57 (patch)
treec03e8c6bc802d14204018bf2d10e6762df52f3ea /src
parent43718811339924d1c9fe94b09986486874237118 (diff)
GUI: Set wrap mode for "notes" box
Diffstat (limited to 'src')
-rw-r--r--src/gui_index.c2
-rw-r--r--src/gui_merge.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index 367332bd..91d1f15a 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -272,6 +272,8 @@ static GtkWidget *make_job_opts(struct crystfelproject *proj,
gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(label),
FALSE, FALSE, 0);
njp->job_notes_text = gtk_text_view_new();
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(njp->job_notes_text),
+ GTK_WRAP_WORD_CHAR);
scroll = gtk_scrolled_window_new(NULL, NULL);
gtk_container_add(GTK_CONTAINER(scroll), njp->job_notes_text);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scroll),
diff --git a/src/gui_merge.c b/src/gui_merge.c
index a27934cb..4e7b776e 100644
--- a/src/gui_merge.c
+++ b/src/gui_merge.c
@@ -222,6 +222,8 @@ static GtkWidget *make_merging_job_opts(struct crystfelproject *proj,
gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(label),
FALSE, FALSE, 0);
njp->job_notes_text = gtk_text_view_new();
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(njp->job_notes_text),
+ GTK_WRAP_WORD_CHAR);
scroll = gtk_scrolled_window_new(NULL, NULL);
gtk_container_add(GTK_CONTAINER(scroll), njp->job_notes_text);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scroll),