[glom] Replace use of ALIGN_LEFT/RIGHT/TOP/BOTTOM with START/END.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Replace use of ALIGN_LEFT/RIGHT/TOP/BOTTOM with START/END.
- Date: Wed, 15 Sep 2010 21:56:23 +0000 (UTC)
commit 1024f9b34edeacb04c9fd359e0f0f3da8295eb79
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Sep 15 21:17:08 2010 +0200
Replace use of ALIGN_LEFT/RIGHT/TOP/BOTTOM with START/END.
* glom/mode_data/flowtablewithfields.cc:
* glom/print_layout/canvas_layout_item.cc: Use only the non-deprecated
enum values.
ChangeLog | 8 ++++++++
glom/mode_data/flowtablewithfields.cc | 14 +++++++-------
2 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9518834..9a29739 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-15 Murray Cumming <murrayc murrayc com>
+
+ Replace use of ALIGN_LEFT/RIGHT/TOP/BOTTOM with START/END.
+
+ * glom/mode_data/flowtablewithfields.cc:
+ * glom/print_layout/canvas_layout_item.cc: Use only the non-deprecated
+ enum values.
+
2010-09-11 Murray Cumming <murrayc murrayc com>
DbAddDel: Cleanup: Rename glom_db_treemodel.[h|cc] to treemodel_db.[h|cc].
diff --git a/glom/mode_data/flowtablewithfields.cc b/glom/mode_data/flowtablewithfields.cc
index 3a5460e..2cec814 100644
--- a/glom/mode_data/flowtablewithfields.cc
+++ b/glom/mode_data/flowtablewithfields.cc
@@ -529,7 +529,7 @@ void FlowTableWithFields::add_field_at_position(const sharedptr<LayoutItem_Field
info.m_first = label;
if(label && !label->get_text().empty())
{
- label->set_property("xalign", 0.0); //Equivalent to Gtk::ALIGN_LEFT, but we can't use that here.
+ label->set_property("xalign", 0.0); //Equivalent to Gtk::ALIGN_START, but we can't use that here.
label->set_property("yalign", 0.5); //Equivalent ot Gtk::ALIGN_CENTER, but we can't use that here.;
label->show();
@@ -543,12 +543,12 @@ void FlowTableWithFields::add_field_at_position(const sharedptr<LayoutItem_Field
{
expand_second = true;
if(label)
- label->set_property("yalign", 0.0); //Equivalent to Gtk::ALIGN_TOP. Center is neater next to entries, but center is silly next to multi-line text boxes.
+ label->set_property("yalign", 0.0); //Equivalent to Gtk::ALIGN_START. Center is neater next to entries, but center is silly next to multi-line text boxes.
}
else if(layoutitem_field->get_glom_type() == Field::TYPE_IMAGE)
{
if(label)
- label->set_property("yalign", 0.0); //Equivalent to Gtk::ALIGN_TOP. Center is neater next to entries, but center is silly next to large images.
+ label->set_property("yalign", 0.0); //Equivalent to Gtk::ALIGN_START. Center is neater next to entries, but center is silly next to large images.
}
Gtk::EventBox* eventbox = Gtk::manage(new Gtk::EventBox());
@@ -628,7 +628,7 @@ void FlowTableWithFields::add_textobject_at_position(const sharedptr<LayoutItem_
const FieldFormatting::HorizontalAlignment alignment =
layoutitem_text->get_formatting_used_horizontal_alignment();
- const Gtk::AlignmentEnum x_align = (alignment == FieldFormatting::HORIZONTAL_ALIGNMENT_LEFT ? Gtk::ALIGN_LEFT : Gtk::ALIGN_RIGHT);
+ const Gtk::Align x_align = (alignment == FieldFormatting::HORIZONTAL_ALIGNMENT_LEFT ? Gtk::ALIGN_START : Gtk::ALIGN_END);
Gtk::Alignment* alignment_label = Gtk::manage(new Gtk::Alignment());
alignment_label->set(x_align, Gtk::ALIGN_CENTER);
alignment_label->show();
@@ -655,7 +655,7 @@ void FlowTableWithFields::add_textobject_at_position(const sharedptr<LayoutItem_
else
{
Gtk::Alignment* alignment_title = Gtk::manage(new Gtk::Alignment());
- alignment_title->set(Gtk::ALIGN_RIGHT, Gtk::ALIGN_CENTER);
+ alignment_title->set(Gtk::ALIGN_END, Gtk::ALIGN_CENTER);
alignment_title->show();
DataWidgetChildren::Label* title_label = Gtk::manage(new DataWidgetChildren::Label(title, 0, 0, false));
@@ -683,7 +683,7 @@ void FlowTableWithFields::add_placeholder_at_position(const sharedptr<LayoutItem
//Add the widget:
m_placeholder = Gtk::manage(new Gtk::Alignment());
- m_placeholder->set(Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER);
+ m_placeholder->set(Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
m_placeholder->show();
PlaceholderGlom* preview = Gtk::manage(new PlaceholderGlom);
@@ -724,7 +724,7 @@ void FlowTableWithFields::add_imageobject_at_position(const sharedptr<LayoutItem
else
{
Gtk::Alignment* alignment_title = Gtk::manage(new Gtk::Alignment());
- alignment_title->set(Gtk::ALIGN_RIGHT, Gtk::ALIGN_CENTER);
+ alignment_title->set(Gtk::ALIGN_END, Gtk::ALIGN_CENTER);
alignment_title->show();
Gtk::Label* title_label = Gtk::manage(new Gtk::Label(title));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]