Commit 053c7964 authored by Murray Cumming's avatar Murray Cumming
Browse files

Revert part of "Replace use of (deprecated) GtkLabel alignment."

This reverts part of d8730c41.

It has mistakenly replaced Entry::set_alignment() with
Widget::set_halign() instead of only replacing Misc::set_alignment().

Now the fields take up their full widths again, so the extra buttons
(New, Find, ..., etc) are not far away.

Conflicts:
	glom/utility_widgets/layoutwidgetbase.cc
parent 723b72f0
......@@ -77,8 +77,8 @@ void Entry::set_layout_item(const sharedptr<LayoutItem>& layout_item, const Glib
if(layout_field)
alignment = layout_field->get_formatting_used_horizontal_alignment(true /* for details view */);
const Gtk::Align x_align = (alignment == Formatting::HORIZONTAL_ALIGNMENT_LEFT ? Gtk::ALIGN_START : Gtk::ALIGN_END);
set_halign(x_align);
const float x_align = (alignment == Formatting::HORIZONTAL_ALIGNMENT_LEFT ? 0.0 : 1.0);
set_alignment(x_align);
}
void Entry::set_glom_type(Field::glom_field_type glom_type)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment