[gtkmm] Layout: Wrap child properties
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Layout: Wrap child properties
- Date: Mon, 28 Jul 2014 18:28:23 +0000 (UTC)
commit 2618d8a270b2e2de0fbb5bc8353a5701539d26b6
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Mon Jul 28 20:17:37 2014 +0200
Layout: Wrap child properties
* gtk/src/gtk_signals.defs: Add definitions for "x" and "y"
child properties.
* gtk/src/layout.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/layout.hg | 3 +++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index ba61cd8..3370f01 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12711,6 +12711,24 @@
(construct-only #f)
)
+(define-child-property x
+ (of-object "GtkLayout")
+ (prop-type "GParamInt")
+ (docs "X position of child widget")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property y
+ (of-object "GtkLayout")
+ (prop-type "GParamInt")
+ (docs "Y position of child widget")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
(define-child-property tab-label
(of-object "GtkNotebook")
(prop-type "GParamString")
diff --git a/gtk/src/layout.hg b/gtk/src/layout.hg
index 0e77dac..a98e470 100644
--- a/gtk/src/layout.hg
+++ b/gtk/src/layout.hg
@@ -63,6 +63,9 @@ public:
_WRAP_PROPERTY("width", guint)
_WRAP_PROPERTY("height", guint)
+
+ _WRAP_CHILD_PROPERTY("x", int)
+ _WRAP_CHILD_PROPERTY("y", int)
};
} //namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]