Don't put labels on checkboxes, they have their own.

This commit is contained in:
John Ralls 2021-08-19 11:13:29 -07:00
parent 62ab148a3e
commit 3935f1a91b

View File

@ -348,13 +348,15 @@ gnc_option_set_ui_widget(GncOption& option, GtkGrid *page_box, gint grid_row)
auto widget = GncOptionUIFactory::create(option, page_box, name_label,
documentation, &enclosing,
&packed);
/* attach the name label to the first column of the grid and
align to the end */
gtk_grid_attach (GTK_GRID(page_box), GTK_WIDGET(name_label),
0, grid_row, // left, top
1, 1); // width, height
gtk_widget_set_halign (GTK_WIDGET(name_label), GTK_ALIGN_END);
/* Attach the name label to the first column of the grid and
align to the end unless it's a check button, which has its own label. */
if (!GTK_IS_CHECK_BUTTON(widget))
{
gtk_grid_attach (GTK_GRID(page_box), GTK_WIDGET(name_label),
0, grid_row, // left, top
1, 1); // width, height
gtk_widget_set_halign (GTK_WIDGET(name_label), GTK_ALIGN_END);
}
if (!packed && (enclosing != NULL))
{
/* Pack option widget into an extra eventbox because otherwise the