[cluttermm] Added constness to *Layout accessor member functions.



commit d3640a9bea4515318f3b2557d94839cde042d956
Author: Chris Kühl <chrisk openismus com>
Date:   Sat Jan 15 02:52:19 2011 +0100

    Added constness to *Layout accessor member functions.
    
    * clutter/src/[bin|box|flow]-layout.hg: Added contness to member functions
    that I forgot earlier.

 ChangeLog                 |    7 +++++++
 clutter/src/bin-layout.hg |    2 +-
 clutter/src/box-layout.hg |   20 ++++++++++----------
 3 files changed, 18 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b73b0be..4838c04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-01-15  Chris Kühl  <chrisk openismus com>
 
+	Added constness to *Layout accessor member functions.
+
+	* clutter/src/[bin|box|flow]-layout.hg: Added contness to member
+	functions that I forgot earlier.
+
+2011-01-15  Chris Kühl  <chrisk openismus com>
+
 	Added missing properties to ClutterMedia.
 
 	* clutter/src/media.hg Added subtitle-font-name & subtitle-uri properties.
diff --git a/clutter/src/bin-layout.hg b/clutter/src/bin-layout.hg
index a3066d5..a39c4ca 100644
--- a/clutter/src/bin-layout.hg
+++ b/clutter/src/bin-layout.hg
@@ -37,7 +37,7 @@ public:
   _WRAP_CREATE(BinAlignment x_align, BinAlignment y_align)
 
   _WRAP_METHOD(void set_alignment(const Glib::RefPtr<Actor>& child, BinAlignment x_align, BinAlignment y_align), clutter_bin_layout_set_alignment)
-  _WRAP_METHOD(void get_alignment(const Glib::RefPtr<Actor>& child, BinAlignment &x_align, BinAlignment &y_align), clutter_bin_layout_get_alignment)
+  _WRAP_METHOD(void get_alignment(const Glib::RefPtr<Actor>& child, BinAlignment &x_align, BinAlignment &y_align) const, clutter_bin_layout_get_alignment)
   _WRAP_METHOD(void add(const Glib::RefPtr<Actor>& child, BinAlignment x_align, BinAlignment y_align), clutter_bin_layout_add)
 
   _WRAP_PROPERTY("x-align", BinAlignment)
diff --git a/clutter/src/box-layout.hg b/clutter/src/box-layout.hg
index d055ad2..5e92e1f 100644
--- a/clutter/src/box-layout.hg
+++ b/clutter/src/box-layout.hg
@@ -37,30 +37,30 @@ public:
   _WRAP_CREATE()
 
   _WRAP_METHOD(void set_pack_start(bool pack_start), clutter_box_layout_set_pack_start)
-  _WRAP_METHOD(bool get_pack_start(), clutter_box_layout_get_pack_start)
+  _WRAP_METHOD(bool get_pack_start() const, clutter_box_layout_get_pack_start)
   _WRAP_METHOD(void set_spacing(guint spacing), clutter_box_layout_set_spacing)
-  _WRAP_METHOD(guint get_spacing(), clutter_box_layout_get_spacing)
+  _WRAP_METHOD(guint get_spacing() const, clutter_box_layout_get_spacing)
   _WRAP_METHOD(void set_vertical(bool vertical), clutter_box_layout_set_vertical)
-  _WRAP_METHOD(bool get_vertical(), clutter_box_layout_get_vertical)
+  _WRAP_METHOD(bool get_vertical() const, clutter_box_layout_get_vertical)
   _WRAP_METHOD(void set_homogeneous(bool homogeneous), clutter_box_layout_set_homogeneous)
-  _WRAP_METHOD(bool get_homogeneous(), clutter_box_layout_get_homogeneous)
+  _WRAP_METHOD(bool get_homogeneous() const, clutter_box_layout_get_homogeneous)
 
   _WRAP_METHOD(void pack(const Glib::RefPtr<Actor>&, bool expand, bool x_fill, bool y_fill, BoxAlignment x_align, BoxAlignment y_align), clutter_box_layout_pack)
 
   _WRAP_METHOD(void set_alignment(const Glib::RefPtr<Actor>& child, BoxAlignment x_align, BoxAlignment y_align), clutter_box_layout_set_alignment)
-  _WRAP_METHOD(void get_alignment(const Glib::RefPtr<Actor>& child, BoxAlignment &x_align, BoxAlignment &y_align), clutter_box_layout_get_alignment)
+  _WRAP_METHOD(void get_alignment(const Glib::RefPtr<Actor>& child, BoxAlignment &x_align, BoxAlignment &y_align) const, clutter_box_layout_get_alignment)
   _WRAP_METHOD(void set_expand(const Glib::RefPtr<Actor>& child, bool expand), clutter_box_layout_set_expand)
-  _WRAP_METHOD(bool get_expand(const Glib::RefPtr<Actor>& child), clutter_box_layout_get_expand)
+  _WRAP_METHOD(bool get_expand(const Glib::RefPtr<Actor>& child) const, clutter_box_layout_get_expand)
   _WRAP_METHOD(void set_fill(const Glib::RefPtr<Actor>& child, bool x_fill, bool y_fill), clutter_box_layout_set_fill)
   #m4 _CONVERSION(`bool&',`gboolean*',`(($2) &($3))')
-  _WRAP_METHOD(void get_fill(const Glib::RefPtr<Actor>& child, bool &x_fill, bool &y_fill), clutter_box_layout_get_fill)
+  _WRAP_METHOD(void get_fill(const Glib::RefPtr<Actor>& child, bool &x_fill, bool &y_fill) const, clutter_box_layout_get_fill)
 
   _WRAP_METHOD(void set_use_animations(bool animate), set_use_animations)
-  _WRAP_METHOD(bool get_use_animations(), clutter_box_layout_get_use_animations)
+  _WRAP_METHOD(bool get_use_animations() const, clutter_box_layout_get_use_animations)
   _WRAP_METHOD(void set_easing_duration(guint msecs), clutter_box_layout_set_easing_duration)
-  _WRAP_METHOD(guint get_easing_duration(), clutter_box_layout_get_easing_duration)
+  _WRAP_METHOD(guint get_easing_duration() const, clutter_box_layout_get_easing_duration)
   _WRAP_METHOD(void set_easing_mode(gulong mode), clutter_box_layout_set_easing_mode)
-  _WRAP_METHOD(gulong get_easing_mode(), clutter_box_layout_get_easing_mode)
+  _WRAP_METHOD(gulong get_easing_mode() const, clutter_box_layout_get_easing_mode)
 
   _WRAP_PROPERTY("easing-duration", unsigned int)
   _WRAP_PROPERTY("easing-mode", unsigned long)



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