[gtkmm] Paned: Wrap child properties



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

    Paned: Wrap child properties
    
        * gtk/src/gtk_signals.defs: Add definitions for "resize", and
        "shrink" child properties.
        * gtk/src/paned.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/paned.hg         |    3 +++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index b65609c..007b7dc 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12810,6 +12810,24 @@
   (construct-only #f)
 )
 
+(define-child-property resize
+  (of-object "GtkPaned")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, the child expands and shrinks along with the paned widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property shrink
+  (of-object "GtkPaned")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, the child can be made smaller than its requisition")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 (define-child-property x
   (of-object "GtkLayout")
   (prop-type "GParamInt")
diff --git a/gtk/src/paned.hg b/gtk/src/paned.hg
index c87fd2f..71b0934 100644
--- a/gtk/src/paned.hg
+++ b/gtk/src/paned.hg
@@ -105,6 +105,9 @@ public:
   _WRAP_PROPERTY("position-set", bool)
   _WRAP_PROPERTY("min-position", int)
   _WRAP_PROPERTY("max-position", int)
+
+  _WRAP_CHILD_PROPERTY("resize", bool)
+  _WRAP_CHILD_PROPERTY("shrink", bool)
 };
 
 } // namespace Gtk


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