[gtkmm] ToolItemGroup: Wrap child properties



commit 3e6ebfef29a14e19e613559f7c4669f116a025e0
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Mon Jul 28 20:11:54 2014 +0200

    ToolItemGroup: Wrap child properties
    
        * gtk/src/gtk_signals.defs: Add definitions for "homogeneous",
        "expand", "fill", "new-row", and "position" child properties.
        * gtk/src/toolitemgroup.hg: Add wrappers for the aforementioned
        child properties.
        * See https://bugzilla.gnome.org/show_bug.cgi?id=140515

 gtk/src/gtk_signals.defs |   45 +++++++++++++++++++++++++++++++++++++++++++++
 gtk/src/toolitemgroup.hg |    6 ++++++
 2 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 6970e89..ba61cd8 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12837,6 +12837,51 @@
   (construct-only #f)
 )
 
+(define-child-property homogeneous
+  (of-object "GtkToolItemGroup")
+  (prop-type "GParamBoolean")
+  (docs "Whether the item should be the same size as other homogeneous items")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property expand
+  (of-object "GtkToolItemGroup")
+  (prop-type "GParamBoolean")
+  (docs "Whether the item should receive extra space when the group grows")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property fill
+  (of-object "GtkToolItemGroup")
+  (prop-type "GParamBoolean")
+  (docs "Whether the item should fill the available space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property new-row
+  (of-object "GtkToolItemGroup")
+  (prop-type "GParamBoolean")
+  (docs "Whether the item should start a new row")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property position
+  (of-object "GtkToolItemGroup")
+  (prop-type "GParamInt")
+  (docs "Position of the item within this group")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 (define-child-property exclusive
   (of-object "GtkToolPalette")
   (prop-type "GParamBoolean")
diff --git a/gtk/src/toolitemgroup.hg b/gtk/src/toolitemgroup.hg
index 39ebabb..8a6811e 100644
--- a/gtk/src/toolitemgroup.hg
+++ b/gtk/src/toolitemgroup.hg
@@ -81,6 +81,12 @@ public:
   _WRAP_PROPERTY("collapsed", bool)
   _WRAP_PROPERTY("ellipsize", Pango::EllipsizeMode)
   _WRAP_PROPERTY("header-relief", ReliefStyle)
+
+  _WRAP_CHILD_PROPERTY("homogeneous", bool)
+  _WRAP_CHILD_PROPERTY("expand", bool)
+  _WRAP_CHILD_PROPERTY("fill", bool)
+  _WRAP_CHILD_PROPERTY("new-row", bool)
+  _WRAP_CHILD_PROPERTY("position", int)
 };
 
 } // namespace Gtk


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