[gtkmm/spread-table] SpreadTable: Add get_child_line().



commit edf0efe5b37ada358b3a7d527dafe73c0fdcbcca
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 11 16:50:55 2010 +0200

    SpreadTable: Add get_child_line().
    
    * gtk/src/gtk_methods.defs: Added the generated part for the new function.
    * gtk/src/spreadtable.hg: Added get_child_line().

 ChangeLog                |    7 +++++++
 gtk/src/gtk_methods.defs |   10 ++++++++++
 gtk/src/spreadtable.hg   |    8 +++++---
 3 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 22f06ba..b93c817 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-10-11  Murray Cumming  <murrayc murrayc com>
+
+	SpreadTable: Add get_child_line().
+
+	* gtk/src/gtk_methods.defs: Added the generated part for the new function.
+	* gtk/src/spreadtable.hg: Added get_child_line().
+
 2010-10-08  Murray Cumming  <murrayc murrayc com>
 
 	Add SpreadTable
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index f533d11..61ff77b 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -18634,6 +18634,16 @@
   )
 )
 
+(define-method get_child_line
+  (of-object "GtkSpreadTable")
+  (c-name "gtk_spread_table_get_child_line")
+  (return-type "guint")
+  (parameters
+    '("GtkWidget*" "child")
+    '("gint" "size")
+  )
+)
+
 (define-method set_lines
   (of-object "GtkSpreadTable")
   (c-name "gtk_spread_table_set_lines")
diff --git a/gtk/src/spreadtable.hg b/gtk/src/spreadtable.hg
index 4f9310e..28750da 100644
--- a/gtk/src/spreadtable.hg
+++ b/gtk/src/spreadtable.hg
@@ -40,6 +40,11 @@ public:
   _CTOR_DEFAULT()
   _WRAP_CTOR(SpreadTable(Orientation orientation, guint lines), gtk_spread_table_new)
 
+  //TODO: Is the default packing appropriate (and like the default for a Box::pack_start())?
+  _WRAP_METHOD(void insert_child(Widget& widget, int index), gtk_spread_table_insert_child)
+
+  _WRAP_METHOD(guint get_child_line(const Gtk::Widget& child, int size) const, gtk_spread_table_get_child_line)
+
   _WRAP_METHOD(void set_lines(guint lines), gtk_spread_table_set_lines)
   _WRAP_METHOD(guint get_lines() const, gtk_spread_table_get_lines)
 
@@ -49,9 +54,6 @@ public:
   _WRAP_METHOD(void set_horizontal_spacing(guint spacing), gtk_spread_table_set_horizontal_spacing)
   _WRAP_METHOD(guint get_horizontal_spacing() const, gtk_spread_table_get_horizontal_spacing)
 
-  //TODO: Is the default packing appropriate (and like the default for a Box::pack_start())?
-  _WRAP_METHOD(void insert_child(Widget& widget, int index), gtk_spread_table_insert_child)
-
   //TODO: Documentation
   void append_child(Widget& widget);
 



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