From eecc013724075656cc9bfcb7bca8cbb7511f777d Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Wed, 7 Nov 2018 09:14:43 +0000 Subject: [PATCH] Allow the text options widget to use all remaining space The text option widget used for report options has only about 3 lines visible currently and will not use any available space in the dialogue. Change the packing for this widget to expand and fill the remaining dialogue space. If there are more than one text option widget on a page then the available space will be shared equally. --- gnucash/gnome-utils/dialog-options.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnucash/gnome-utils/dialog-options.c b/gnucash/gnome-utils/dialog-options.c index 915bd6c437..66c0a1e142 100644 --- a/gnucash/gnome-utils/dialog-options.c +++ b/gnucash/gnome-utils/dialog-options.c @@ -1759,7 +1759,12 @@ gnc_option_set_ui_widget(GNCOption *option, GtkWidget *eventbox = gtk_event_box_new(); gtk_container_add (GTK_CONTAINER (eventbox), enclosing); - gtk_box_pack_start (page_box, eventbox, FALSE, FALSE, 0); + + /* Allow the text widget to expand and fill remaining space */ + if (g_strcmp0 (type, "text") == 0) + gtk_box_pack_start (page_box, eventbox, TRUE, TRUE, 0); + else + gtk_box_pack_start (page_box, eventbox, FALSE, FALSE, 0); gtk_widget_set_tooltip_text (eventbox, documentation); }