[glom/glom-1-28] Revert comments changes from "Replace use of (deprecated) GtkLabel alignment."



commit 1bc680fbb64147a8ee36566458dbd91095377c1a
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Mar 7 15:14:46 2015 +0100

    Revert comments changes from "Replace use of (deprecated) GtkLabel alignment."
    
    This reverts part of d8730c4174ac3a27e8aac4ed13a6855445c4fbd6.
    
    The commented-out changes would have been wrong because they
    were method calls on Entries, not Labels.

 glom/mode_data/datawidget/combo.cc                 |    2 +-
 .../mode_data/datawidget/combo_as_radio_buttons.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/mode_data/datawidget/combo.cc b/glom/mode_data/datawidget/combo.cc
index 503c559..1423f1c 100644
--- a/glom/mode_data/datawidget/combo.cc
+++ b/glom/mode_data/datawidget/combo.cc
@@ -52,7 +52,7 @@ ComboGlom::ComboGlom(bool has_entry)
 #endif // !GLOM_ENABLE_CLIENT_ONLY
 
   //if(m_glom_type == Field::TYPE_NUMERIC)
-   // get_entry()->set_halign(Gtk::ALIGN_END); //Align numbers to the right.
+   // get_entry()->set_alignment(1.0); //Align numbers to the right.
 
   //Let the combo be big enough:
   set_popup_fixed_width(false);
diff --git a/glom/mode_data/datawidget/combo_as_radio_buttons.cc 
b/glom/mode_data/datawidget/combo_as_radio_buttons.cc
index c580cdb..60174cd 100644
--- a/glom/mode_data/datawidget/combo_as_radio_buttons.cc
+++ b/glom/mode_data/datawidget/combo_as_radio_buttons.cc
@@ -49,7 +49,7 @@ ComboAsRadioButtons::ComboAsRadioButtons()
 void ComboAsRadioButtons::init()
 {
   //if(m_glom_type == Field::TYPE_NUMERIC)
-   // get_entry()->set_halign(Gtk::ALIGN_END); //Align numbers to the right.
+   // get_entry()->set_alignment(1.0); //Align numbers to the right.
 }
 
 void ComboAsRadioButtons::set_choices_with_second(const type_list_values_with_second& list_values)


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