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



commit 053c7964a6f3b592c2d7378c7db5da9ea4290a06
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Mar 7 15:06:59 2015 +0100

    Revert part of "Replace use of (deprecated) GtkLabel alignment."
    
    This reverts part of d8730c4174ac3a27e8aac4ed13a6855445c4fbd6.
    
    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

 glom/mode_data/datawidget/entry.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/mode_data/datawidget/entry.cc b/glom/mode_data/datawidget/entry.cc
index de9c24e..0f2505f 100644
--- a/glom/mode_data/datawidget/entry.cc
+++ b/glom/mode_data/datawidget/entry.cc
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]