[gtkmm] HeaderBar: Wrap child properties



commit cf33572add01ca1362a408af040be9e69cbf398d
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Tue Jul 29 20:34:43 2014 +0200

    HeaderBar: Wrap child properties
    
        * gtk/src/gtk_signals.defs: Add definitions for "pack-type", and
        "position" child properties.
        * gtk/src/headerbar.hg: Add wrappers for the aforementioned
        child properties.
        * See https://bugzilla.gnome.org/show_bug.cgi?id=140515

 gtk/src/gtk_signals.defs |   18 ++++++++++++++++++
 gtk/src/headerbar.hg     |    3 +++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index e4c0c20..b65609c 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12792,6 +12792,24 @@
   (construct-only #f)
 )
 
+(define-child-property pack-type
+  (of-object "GtkHeaderBar")
+  (prop-type "GParamEnum")
+  (docs "A GtkPackType indicating whether the child is packed with reference to the start or end of the 
parent")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property position
+  (of-object "GtkHeaderBar")
+  (prop-type "GParamInt")
+  (docs "The index of the child in the parent")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
 (define-child-property x
   (of-object "GtkLayout")
   (prop-type "GParamInt")
diff --git a/gtk/src/headerbar.hg b/gtk/src/headerbar.hg
index b533fe8..be39813 100644
--- a/gtk/src/headerbar.hg
+++ b/gtk/src/headerbar.hg
@@ -83,6 +83,9 @@ public:
   _WRAP_PROPERTY("decoration-layout-set", bool)
   _WRAP_PROPERTY("has-subtitle", bool)
 
+  _WRAP_CHILD_PROPERTY("pack-type", PackType)
+  _WRAP_CHILD_PROPERTY("position", int)
+
   // Gtk::HeaderBar has no signals nor vfuncs as of 3.12.
 };
 


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