[gtkmm] Stack: Wrap child properties
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Stack: Wrap child properties
- Date: Sun, 13 Jul 2014 11:23:26 +0000 (UTC)
commit 33e3b69d0d0595c5d9472abd47156f96cfce3d96
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sun Jul 13 13:20:23 2014 +0200
Stack: Wrap child properties
* gtk/src/gtk_signals.defs: Add definitions for "name", "title",
"icon-name", "position", and "needs-attention".
* gtk/src/stack.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/stack.hg | 6 ++++++
2 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 6ac91bb..857e4ce 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12755,3 +12755,48 @@
(writable #t)
(construct-only #f)
)
+
+(define-child-property name
+ (of-object "GtkStack")
+ (prop-type "GParamString")
+ (docs "The name of the child page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property title
+ (of-object "GtkStack")
+ (prop-type "GParamString")
+ (docs "The title of the child page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property icon-name
+ (of-object "GtkStack")
+ (prop-type "GParamString")
+ (docs "The icon name of the child page")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property position
+ (of-object "GtkStack")
+ (prop-type "GParamInt")
+ (docs "The index of the child in the parent")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property needs-attention
+ (of-object "GtkStack")
+ (prop-type "GParamBoolean")
+ (docs "Whether this page needs attention")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
diff --git a/gtk/src/stack.hg b/gtk/src/stack.hg
index d49d8ee..ad26925 100644
--- a/gtk/src/stack.hg
+++ b/gtk/src/stack.hg
@@ -76,6 +76,12 @@ public:
_WRAP_PROPERTY("transition-type", StackTransitionType)
_WRAP_PROPERTY("visible-child", Widget*)
_WRAP_PROPERTY("visible-child-name", Glib::ustring)
+
+ _WRAP_CHILD_PROPERTY("name", Glib::ustring)
+ _WRAP_CHILD_PROPERTY("title", Glib::ustring)
+ _WRAP_CHILD_PROPERTY("icon-name", Glib::ustring)
+ _WRAP_CHILD_PROPERTY("position", int)
+ _WRAP_CHILD_PROPERTY("needs-attention", bool)
};
} //namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]