From b3f8ad3eea245921d7a44b0ade7fb3d511e7fd65 Mon Sep 17 00:00:00 2001 From: Jacob Boerema Date: Mon, 22 Apr 2024 13:26:29 -0400 Subject: [PATCH] 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. --- libgimp/gimpexportproceduredialog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgimp/gimpexportproceduredialog.c b/libgimp/gimpexportproceduredialog.c index cadcae115b..49df8cc952 100644 --- a/libgimp/gimpexportproceduredialog.c +++ b/libgimp/gimpexportproceduredialog.c @@ -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);