[gtkmm] Box: Wrap new *_center_widget() symbols
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Box: Wrap new *_center_widget() symbols
- Date: Sat, 22 Feb 2014 14:47:33 +0000 (UTC)
commit 17defddf4989875a46bfc6743fea821577c0ed95
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Mon Feb 17 09:28:36 2014 +0100
Box: Wrap new *_center_widget() symbols
* Wrap gtk_box_set/get_center_widget object methods
* Create unset_center_widget() to allow NULL argument to
gtk_box_set_center_widget()
gtk/src/box.ccg | 4 ++++
gtk/src/box.hg | 9 +++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/box.ccg b/gtk/src/box.ccg
index 8ee435d..d1dfd4d 100644
--- a/gtk/src/box.ccg
+++ b/gtk/src/box.ccg
@@ -39,5 +39,9 @@ void Box::pack_end(Widget& child, PackOptions options, guint padding)
gtk_box_pack_end(gobj(), child.gobj(), (gboolean)expand, (gboolean)fill, padding);
}
+void Box::unset_center_widget()
+{
+ gtk_box_set_center_widget(gobj(), NULL);
+}
} //namespace Gtk
diff --git a/gtk/src/box.hg b/gtk/src/box.hg
index df6381f..9592659 100644
--- a/gtk/src/box.hg
+++ b/gtk/src/box.hg
@@ -119,6 +119,15 @@ public:
_WRAP_METHOD(void reorder_child(Widget& child, int position), gtk_box_reorder_child)
+ _WRAP_METHOD(void set_center_widget(Widget& widget), gtk_box_set_center_widget)
+
+ /** Unset the center_widget.
+ * See set_center_widget().
+ */
+ void unset_center_widget();
+ _WRAP_METHOD(Widget* get_center_widget(), gtk_box_get_center_widget) //transfer none
+ _WRAP_METHOD(const Widget* get_center_widget() const, gtk_box_get_center_widget, constversion) //transfer
none
+
_WRAP_PROPERTY("spacing", int)
_WRAP_PROPERTY("homogeneous", bool)
_WRAP_PROPERTY("baseline-position", BaselinePosition)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]