[gtkmm] WrapBox: Adapt to C API change.



commit df4a90622e681901f5a5ac42bbc8834932e4ed4b
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Sep 15 12:01:59 2010 +0200

    WrapBox: Adapt to C API change.
    
    	* gtk/src/wrapbox.[hg|ccg]: insert_child(): Remove the padding parameters
      (now in Widget instead) to fix the build.

 ChangeLog           |    7 +++++++
 gtk/src/wrapbox.ccg |    5 ++---
 gtk/src/wrapbox.hg  |    4 ++--
 3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bbd9399..d4c36e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-09-15  Murray Cumming  <murrayc murrayc com>
 
+	WrapBox: Adapt to C API change.
+
+	* gtk/src/wrapbox.[hg|ccg]: insert_child(): Remove the padding parameters
+  (now in Widget instead) to fix the build.
+
+2010-09-15  Murray Cumming  <murrayc murrayc com>
+
 	Widget: Added align and margin methods and properties.
 
 	* gtk/src/enums.[hg|ccg]: Added Align enum, wrapping GtkAlign, removing
diff --git a/gtk/src/wrapbox.ccg b/gtk/src/wrapbox.ccg
index 9f6590e..d250ef3 100644
--- a/gtk/src/wrapbox.ccg
+++ b/gtk/src/wrapbox.ccg
@@ -26,10 +26,9 @@
 namespace Gtk
 {
 
-void WrapBox::append_child(Widget& widget, guint horizontal_padding, guint vertical_padding, WrapBoxPacking packing)
+void WrapBox::append_child(Widget& widget, WrapBoxPacking packing)
 {
-  insert_child(widget, -1, /* see the C documentation */
-    horizontal_padding, vertical_padding, packing);
+  insert_child(widget, -1 /* see the C documentation */, packing);
 }
 
 } // namespace Gtk
diff --git a/gtk/src/wrapbox.hg b/gtk/src/wrapbox.hg
index fe6dab5..adde698 100644
--- a/gtk/src/wrapbox.hg
+++ b/gtk/src/wrapbox.hg
@@ -65,10 +65,10 @@ public:
   _WRAP_METHOD(guint get_natural_line_children() const, gtk_wrap_box_get_natural_line_children)
 
   //TODO: Is the default packing appropriate (and like the default for a Box::pack_start())?
-  _WRAP_METHOD(void insert_child(Widget& widget, int index, guint horizontal_padding = 0, guint vertical_padding = 0, WrapBoxPacking packing = WrapBoxPacking(0)), gtk_wrap_box_insert_child_with_padding)
+  _WRAP_METHOD(void insert_child(Widget& widget, int index, WrapBoxPacking packing = WrapBoxPacking(0)), gtk_wrap_box_insert_child)
 
   //TODO: Documentation
-  void append_child(Widget& widget, guint horizontal_padding = 0, guint vertical_padding = 0, WrapBoxPacking packing = WrapBoxPacking(0));
+  void append_child(Widget& widget, WrapBoxPacking packing = WrapBoxPacking(0));
 
   _WRAP_METHOD(void reorder_child(Widget& widget, guint index), gtk_wrap_box_reorder_child)
 



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