[gtkmm] Notebook: Wrap child properties



commit 1abb4d4027ef845ea9cf5b245f501d740a4e510d
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Sun Jul 13 12:56:52 2014 +0200

    Notebook: Wrap child properties
    
        * gtk/src/gtk_signals.defs: Add definitions for "tab-label",
        "menu-label", "position", "tab-expand", "tab-fill",
        "reorderable", and "detachable".
        * gtk/src/notebook.hg: Add wrappers for the aforementioned child
        properties.

 gtk/src/gtk_signals.defs |   62 ++++++++++++++++++++++++++++++++++++++++++++++
 gtk/src/notebook.hg      |    8 +++++-
 2 files changed, 69 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index bd3e0a8..6ac91bb 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12693,3 +12693,65 @@
   (construct-only #f)
 )
 
+(define-child-property tab-label
+  (of-object "GtkNotebook")
+  (prop-type "GParamString")
+  (docs "The string displayed on the child's tab label")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property menu-label
+  (of-object "GtkNotebook")
+  (prop-type "GParamString")
+  (docs "The string displayed in the child's menu entry")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property position
+  (of-object "GtkNotebook")
+  (prop-type "GParamInt")
+  (docs "The index of the child in the parent")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property tab-expand
+  (of-object "GtkNotebook")
+  (prop-type "GParamBoolean")
+  (docs "Whether to expand the child's tab")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property tab-fill
+  (of-object "GtkNotebook")
+  (prop-type "GParamBoolean")
+  (docs "Whether the child's tab should fill the allocated area")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property reorderable
+  (of-object "GtkNotebook")
+  (prop-type "GParamBoolean")
+  (docs "Whether the tab is reorderable by user action")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-child-property detachable
+  (of-object "GtkNotebook")
+  (prop-type "GParamBoolean")
+  (docs "Whether the tab is detachable")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
diff --git a/gtk/src/notebook.hg b/gtk/src/notebook.hg
index 0b26d9a..99a045a 100644
--- a/gtk/src/notebook.hg
+++ b/gtk/src/notebook.hg
@@ -168,7 +168,13 @@ public:
   _WRAP_PROPERTY("group-name", Glib::ustring)
   _WRAP_PROPERTY("enable-popup", bool)
 
-  //TODO: Wrap the child properties, such as tab-fill and tab-expand.
+  _WRAP_CHILD_PROPERTY("tab-label", Glib::ustring)
+  _WRAP_CHILD_PROPERTY("menu-label", Glib::ustring)
+  _WRAP_CHILD_PROPERTY("position", int)
+  _WRAP_CHILD_PROPERTY("tab-expand", bool)
+  _WRAP_CHILD_PROPERTY("tab-fill", bool)
+  _WRAP_CHILD_PROPERTY("reorderable", bool)
+  _WRAP_CHILD_PROPERTY("detachable", bool)
 };
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS


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