[gtkmm] Toolbar: Wrap child properties
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Toolbar: Wrap child properties
- Date: Sun, 13 Jul 2014 11:46:42 +0000 (UTC)
commit 7dfd98cb5b917fc0f42575a2ad9b2212e76f4dbf
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sun Jul 13 13:44:28 2014 +0200
Toolbar: Wrap child properties
* gtk/src/gtk_signals.defs: Add definitions for "expand", and
"homogeneous" properties.
* gtk/src/toolbar.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/toolbar.hg | 3 +++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 857e4ce..e4d287b 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12800,3 +12800,21 @@
(writable #t)
(construct-only #f)
)
+
+(define-child-property expand
+ (of-object "GtkToolbar")
+ (prop-type "GParamBoolean")
+ (docs "Whether the item should receive extra space when the toolbar grows")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property homogeneous
+ (of-object "GtkToolbar")
+ (prop-type "GParamBoolean")
+ (docs "Whether the item should be the same size as other homogeneous items")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
diff --git a/gtk/src/toolbar.hg b/gtk/src/toolbar.hg
index de19b3b..8f6f312 100644
--- a/gtk/src/toolbar.hg
+++ b/gtk/src/toolbar.hg
@@ -101,6 +101,9 @@ public:
_WRAP_PROPERTY("show_arrow", bool)
_WRAP_PROPERTY("icon-size", IconSize)
_WRAP_PROPERTY("icon-size-set", bool)
+
+ _WRAP_CHILD_PROPERTY("expand", bool)
+ _WRAP_CHILD_PROPERTY("homogeneous", bool)
};
} // namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]