[gtkmm] ToolPalette: Wrap child properties



commit 015acf48dc8c3a9f00e1537556ac4e0fe82b7d60
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Mon Jul 28 19:45:22 2014 +0200

    ToolPalette: Wrap child properties
    
        * gtk/src/gtk_signals.defs: Add definitions for "exclusive" and "expand"
        properties.
        * gtk/src/toolpalette.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/toolpalette.hg   |    3 +++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 75827e2..6970e89 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12836,3 +12836,21 @@
   (writable #t)
   (construct-only #f)
 )
+
+(define-child-property exclusive
+  (of-object "GtkToolPalette")
+  (prop-type "GParamBoolean")
+  (docs "Whether the item group should be the only expanded at a given time")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property expand
+  (of-object "GtkToolPalette")
+  (prop-type "GParamBoolean")
+  (docs "Whether the item group should receive extra space when the palette grows")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
diff --git a/gtk/src/toolpalette.hg b/gtk/src/toolpalette.hg
index 77e1b0d..0ddf306 100644
--- a/gtk/src/toolpalette.hg
+++ b/gtk/src/toolpalette.hg
@@ -103,6 +103,9 @@ public:
   _WRAP_PROPERTY("icon-size", IconSize)
   _WRAP_PROPERTY("icon-size-set", bool)
   _WRAP_PROPERTY("toolbar-style", ToolbarStyle)
+
+  _WRAP_CHILD_PROPERTY("exclusive", bool)
+  _WRAP_CHILD_PROPERTY("expand", bool)
 };
 
 } // namespace Gtk


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