[gtkmm] Grid: Wrap child properties



commit 195c759c455b303b8d0e4525a0587aa9131575d8
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Tue Jul 29 20:17:18 2014 +0200

    Grid: Wrap child properties
    
        * gtk/src/gtk_signals.defs: Add definitions for "left-attach",
        "top-attach", "width", and "height" child properties.
        * gtk/src/grid.hg: Add wrappers for the aforementioned child
        properties.
        * See https://bugzilla.gnome.org/show_bug.cgi?id=140515

 gtk/src/grid.hg          |    5 +++++
 gtk/src/gtk_signals.defs |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/grid.hg b/gtk/src/grid.hg
index ef8d5b1..d216c59 100644
--- a/gtk/src/grid.hg
+++ b/gtk/src/grid.hg
@@ -85,6 +85,11 @@ public:
   _WRAP_PROPERTY("row-homogeneous", bool)
   _WRAP_PROPERTY("column-homogeneous", bool)
   _WRAP_PROPERTY("baseline-row", int)
+
+  _WRAP_CHILD_PROPERTY("left-attach", int)
+  _WRAP_CHILD_PROPERTY("top-attach", int)
+  _WRAP_CHILD_PROPERTY("width", int)
+  _WRAP_CHILD_PROPERTY("height", int)
 };
 
 } // namespace Gtk
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 44a2e16..e4c0c20 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12756,6 +12756,42 @@
   (construct-only #f)
 )
 
+(define-child-property left-attach
+  (of-object "GtkGrid")
+  (prop-type "GParamInt")
+  (docs "The column number to attach the left side of the child to")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property top-attach
+  (of-object "GtkGrid")
+  (prop-type "GParamInt")
+  (docs "The row number to attach the top side of a child widget to")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property width
+  (of-object "GtkGrid")
+  (prop-type "GParamInt")
+  (docs "The number of columns that a child spans")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property height
+  (of-object "GtkGrid")
+  (prop-type "GParamInt")
+  (docs "The number of rows that a child spans")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 (define-child-property x
   (of-object "GtkLayout")
   (prop-type "GParamInt")


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