libgimp: fix #11382 oversized export dialog with long comment

When there is a very long comment shown in the export dialog, the
dialog expands horizontally. Possibly making it wider than your screen
instead of wrapping the text.

Let's set word wrapping for the text view. That way the text will
wrap at a reasonable length and use the multiline text view instead
of just the first line.
This commit is contained in:
Jacob Boerema 2024-04-22 13:26:29 -04:00
parent 5569e40b8c
commit b3f8ad3eea

View file

@ -296,6 +296,7 @@ gimp_export_procedure_dialog_fill_list (GimpProcedureDialog *dialog,
gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (widget), 3);
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (widget), 3);
gtk_text_view_set_right_margin (GTK_TEXT_VIEW (widget), 3);
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (widget), GTK_WRAP_WORD);
g_object_unref (buffer);
tooltip = g_param_spec_get_blurb (pspec);