[goocanvasmm/goocanvasmm-1.0] Use non-deprecated Gtk::ALIGN_* for default parameters.



commit 227c609d3b388fa8893e8a2f9de39382d603834f
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 18 14:07:12 2010 +0200

    Use non-deprecated Gtk::ALIGN_* for default parameters.
    
    * goocanvas/src/table.hg:
    * goocanvas/src/tablemodel.hg: Replace ALIGN_LEFT/TOP with ALIGN_START.

 ChangeLog                   |    7 +++++++
 goocanvas/src/table.hg      |    3 +--
 goocanvas/src/tablemodel.hg |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 080cb09..b8b8a12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-10-18  Murray Cumming  <murrayc murrayc com>
 
+	Use non-deprecated Gtk::ALIGN_* for default parameters.
+
+	* goocanvas/src/table.hg:
+	* goocanvas/src/tablemodel.hg: Replace ALIGN_LEFT/TOP with ALIGN_START.
+
+2010-10-18  Murray Cumming  <murrayc murrayc com>
+
 	Fix the build with fatal warnings with gtkmm 2.22.
 
 	* goocanvas/src/bounds.hg:
diff --git a/goocanvas/src/table.hg b/goocanvas/src/table.hg
index 6742e51..95e6375 100644
--- a/goocanvas/src/table.hg
+++ b/goocanvas/src/table.hg
@@ -55,7 +55,7 @@ public:
   // TODO: We should get rid of this overload with the next gtkmm API/ABI break.
   // See http://bugzilla.gnome.org/show_bug.cgi?id=142849.
   void set_align(const Glib::RefPtr<Item>& child, double xalign = 0.0, double yalign = 0.0);
-  void set_align(const Glib::RefPtr<Item>& child, Gtk::AlignmentEnum xalign = Gtk::ALIGN_LEFT, Gtk::AlignmentEnum yalign = Gtk::ALIGN_TOP);
+  void set_align(const Glib::RefPtr<Item>& child, Gtk::AlignmentEnum xalign = Gtk::ALIGN_START, Gtk::AlignmentEnum yalign = Gtk::ALIGN_START);
 
   //We put these in item.hg instead.
   //See the comment there.
@@ -74,4 +74,3 @@ public:
 };
 
 } //namespace Goocanvas
-
diff --git a/goocanvas/src/tablemodel.hg b/goocanvas/src/tablemodel.hg
index 4312738..e7d8db7 100644
--- a/goocanvas/src/tablemodel.hg
+++ b/goocanvas/src/tablemodel.hg
@@ -38,7 +38,7 @@ public:
   void attach(const Glib::RefPtr<ItemModel>& item, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, Gtk::AttachOptions xoptions = Gtk::FILL | Gtk::EXPAND, Gtk::AttachOptions yoptions = Gtk::FILL | Gtk::EXPAND, double left_padding = 0.0, double right_padding = 0.0, double top_padding = 0.0, double bottom_padding = 0.0);
 
   void set_align(const Glib::RefPtr<ItemModel>& child, double xalign = 0.0, double yalign = 0.0);
-  void set_align(const Glib::RefPtr<ItemModel>& child, Gtk::AlignmentEnum xalign = Gtk::ALIGN_LEFT, Gtk::AlignmentEnum yalign = Gtk::ALIGN_TOP);
+  void set_align(const Glib::RefPtr<ItemModel>& child, Gtk::AlignmentEnum xalign = Gtk::ALIGN_START, Gtk::AlignmentEnum yalign = Gtk::ALIGN_START);
 
   //We put these in item.hg instead.
   //See the comment there.



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