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.
pull/432/head
Robert Fewell 8 years ago committed by Geert Janssens
parent 3cc05792ca
commit eecc013724

@ -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);
}

Loading…
Cancel
Save