[gtkmm] Demos: Adapt to ALIGN_* rename.



commit 79790e4a10545392783d3f2f3543dbab97653ba5
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Sep 15 12:03:52 2010 +0200

    Demos: Adapt to ALIGN_* rename.
    
    * demos/gtk-demo/example_colorsel.cc:
    * demos/gtk-demo/example_sizegroup.cc:
    * demos/gtk-demo/example_stockbrowser.cc: Fix the build.

 ChangeLog                              |    8 ++++++++
 demos/gtk-demo/example_colorsel.cc     |    2 +-
 demos/gtk-demo/example_sizegroup.cc    |    2 +-
 demos/gtk-demo/example_stockbrowser.cc |    2 +-
 4 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d4c36e4..16fbabd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-09-15  Murray Cumming  <murrayc murrayc com>
 
+	Demos: Adapt to ALIGN_* rename.
+
+	* demos/gtk-demo/example_colorsel.cc:
+	* demos/gtk-demo/example_sizegroup.cc:
+	* demos/gtk-demo/example_stockbrowser.cc: Fix the build.
+
+2010-09-15  Murray Cumming  <murrayc murrayc com>
+
 	WrapBox: Adapt to C API change.
 
 	* gtk/src/wrapbox.[hg|ccg]: insert_child(): Remove the padding parameters
diff --git a/demos/gtk-demo/example_colorsel.cc b/demos/gtk-demo/example_colorsel.cc
index 5e8a65d..db67a69 100644
--- a/demos/gtk-demo/example_colorsel.cc
+++ b/demos/gtk-demo/example_colorsel.cc
@@ -35,7 +35,7 @@ Gtk::Window* do_colorsel()
 Example_ColorSel::Example_ColorSel()
 : m_VBox(false, 8),
   m_Button("_Change the above color", true),
-  m_Alignment(Gtk::ALIGN_RIGHT, Gtk::ALIGN_BOTTOM, 0.0, 0.0)
+  m_Alignment(Gtk::ALIGN_END, Gtk::ALIGN_END, 0.0, 0.0)
 {
   set_title("Color Selection");
   set_border_width(8);
diff --git a/demos/gtk-demo/example_sizegroup.cc b/demos/gtk-demo/example_sizegroup.cc
index 1f15370..c980a99 100644
--- a/demos/gtk-demo/example_sizegroup.cc
+++ b/demos/gtk-demo/example_sizegroup.cc
@@ -134,7 +134,7 @@ void Example_SizeGroup::add_row(Gtk::Table& table, int row,
                                 const std::list<Glib::ustring>& options)
 {
   Gtk::Label* pLabel = Gtk::manage(new Gtk::Label(label_text, true));
-  pLabel->set_alignment(Gtk::ALIGN_LEFT, Gtk::ALIGN_BOTTOM);
+  pLabel->set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_END);
 
   table.attach(*pLabel, 0, 1, row, row + 1, Gtk::EXPAND|Gtk::FILL, Gtk::AttachOptions(0));
 
diff --git a/demos/gtk-demo/example_stockbrowser.cc b/demos/gtk-demo/example_stockbrowser.cc
index fa2722d..532e817 100644
--- a/demos/gtk-demo/example_stockbrowser.cc
+++ b/demos/gtk-demo/example_stockbrowser.cc
@@ -66,7 +66,7 @@ Example_StockBrowser::Example_StockBrowser()
   m_Frame("Selected Item"),
   m_VBox(false, 8),
   m_HBox(false, 8),
-  m_Alignment(Gtk::ALIGN_CENTER, Gtk::ALIGN_TOP, 0.0, 0.0)
+  m_Alignment(Gtk::ALIGN_CENTER, Gtk::ALIGN_START, 0.0, 0.0)
 {
   set_title("Stock Icons and Items");
   set_default_size(-1, 500);



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