Better fit for some report option widgets in options dialog.

Replaces https://github.com/Gnucash/gnucash/pull/1975
This commit is contained in:
Robert Fewell 2024-08-01 16:22:19 -07:00 committed by John Ralls
parent 6b87388987
commit a626e944a3
2 changed files with 7 additions and 1 deletions

View File

@ -217,7 +217,8 @@ create_options_box(GtkBox* content_box)
gtk_grid_set_column_homogeneous (GTK_GRID(options_box), FALSE);
gtk_grid_set_row_spacing (GTK_GRID(options_box), 6);
gtk_grid_set_column_spacing (GTK_GRID(options_box), 6);
git_widget_set_halign (GTK_WIDGET(options_box), GTK_ALIGN_START);
gtk_container_set_border_width(GTK_CONTAINER(options_box), 0);
gtk_container_add (GTK_CONTAINER(options_scrolled_win),
GTK_WIDGET(options_box));

View File

@ -20,6 +20,7 @@
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#include <__nullptr>
#include <gnc-option.hpp>
#include <gnc-option-impl.hpp>
#include "gnc-option-gtk-ui.hpp"
@ -1104,6 +1105,10 @@ create_option_widget<GncOptionUIType::ACCOUNT_SEL> (GncOption& option,
g_signal_connect(widget, "account_sel_changed",
G_CALLBACK(gnc_option_changed_widget_cb), &option);
wrap_widget(option, widget, page_box, row);
// wrap_widget sets the parent so this comes after.
gtk_container_child_set(GTK_CONTAINER(gtk_widget_get_parent(widget)),
widget, "fill", TRUE, "expand", TRUE,
nullptr);
}
static void