[cluttermm] Added homogeneous property and related methods to BoxLayout.



commit 2ac378f7747204ab2a1a03a0821b2fd8dcdea57a
Author: Chris Kühl <chrisk openismus com>
Date:   Fri Jan 14 11:00:49 2011 +0100

    Added homogeneous property and related methods to BoxLayout.
    
    * clutter/src/box-layout.hg: Added homogeneous property and related methods to
    BoxLayout.
    * clutter/src/clutter_signals.defs: Added BoxLayout's homogeneous property.

 ChangeLog                        |    9 +++++++++
 clutter/src/box-layout.hg        |    7 +++----
 clutter/src/clutter_signals.defs |   17 ++++++++---------
 3 files changed, 20 insertions(+), 13 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e37cbee..8cc78ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-01-14  Chris Kühl  <chrisk openismus com>
 
+	Added homogeneous property and related methods to BoxLayout.
+
+	* clutter/src/box-layout.hg: Added homogeneous property and related
+	methods to BoxLayout.
+	* clutter/src/clutter_signals.defs: Added BoxLayout's homogeneous
+	property.
+
+2011-01-14  Chris Kühl  <chrisk openismus com>
+
 	Initial wrapping of ClutterFlowLayout.
 
 	* clutter/cluttermm.h: Added header file for new class.
diff --git a/clutter/src/box-layout.hg b/clutter/src/box-layout.hg
index c4a7266..d055ad2 100644
--- a/clutter/src/box-layout.hg
+++ b/clutter/src/box-layout.hg
@@ -42,9 +42,8 @@ public:
   _WRAP_METHOD(guint get_spacing(), 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)
-  // 1.4
-  // _WRAP_METHOD(void set_homogeneous(bool homogeneous), clutter_box_layout_set_homogeneous)
-  // _WRAP_METHOD(bool get_homogeneous(), clutter_box_layout_get_homogeneous)
+  _WRAP_METHOD(void set_homogeneous(bool homogeneous), clutter_box_layout_set_homogeneous)
+  _WRAP_METHOD(bool get_homogeneous(), 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)
 
@@ -65,7 +64,7 @@ public:
 
   _WRAP_PROPERTY("easing-duration", unsigned int)
   _WRAP_PROPERTY("easing-mode", unsigned long)
-  // 1.4 _WRAP_PROPERTY("homogeneous", bool)
+  _WRAP_PROPERTY("homogeneous", bool)
   _WRAP_PROPERTY("pack-start", bool)
   _WRAP_PROPERTY("spacing", unsigned int)
   _WRAP_PROPERTY("use-animations", bool)
diff --git a/clutter/src/clutter_signals.defs b/clutter/src/clutter_signals.defs
index 312144d..53547fd 100644
--- a/clutter/src/clutter_signals.defs
+++ b/clutter/src/clutter_signals.defs
@@ -1105,15 +1105,14 @@
   (construct-only #f)
 )
 
-;; 1.4
-;; (define-property homogeneous
-;;   (of-object "ClutterBoxLayout")
-;;   (prop-type "GParamBoolean")
-;;   (docs "Whether the layout should be homogeneous, i.e. all children get the same size")
-;;   (readable #t)
-;;   (writable #t)
-;;   (construct-only #f)
-;; )
+(define-property homogeneous
+  (of-object "ClutterBoxLayout")
+  (prop-type "GParamBoolean")
+  (docs "Whether the layout should be homogeneous, i.e. all children get the same size")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
 
 (define-property pack-start
   (of-object "ClutterBoxLayout")



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