[gtkmm: 2/3] Gtk: Update for latest gtk4 (changes in Grid)




commit cfbf49d39cdf88861e18c2c4be95010418a191f2
Author: Andreas Persson <andreasp56 outlook com>
Date:   Mon Aug 3 09:02:50 2020 +0200

    Gtk: Update for latest gtk4 (changes in Grid)
    
    Renamed properties in GridLayoutChild.

 gtk/src/grid.hg            |  8 ++++----
 gtk/src/gridlayoutchild.hg | 12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/src/grid.hg b/gtk/src/grid.hg
index f75a1dec..33ba5578 100644
--- a/gtk/src/grid.hg
+++ b/gtk/src/grid.hg
@@ -54,7 +54,7 @@ public:
   //TODO: Add a Grid(Orientation orientation = Orientation::HORIZONTAL) constructor to match the Paned and 
Box ones?
   //Probably not, because a vertical GtkGrid is not very useful. murrayc.
 
-  _WRAP_METHOD(void attach(Widget& child, int left, int top, int width = 1, int height = 1), gtk_grid_attach)
+  _WRAP_METHOD(void attach(Widget& child, int column, int row, int width = 1, int height = 1), 
gtk_grid_attach)
 
   /** Adds a widget to the grid.
    *
@@ -75,8 +75,8 @@ public:
    */
   _WRAP_METHOD(void attach_next_to(Widget& child, Widget& sibling{?}, PositionType side, int width = 1, int 
height = 1), gtk_grid_attach_next_to)
 
-  _WRAP_METHOD(Widget* get_child_at(int left, int top), gtk_grid_get_child_at)
-  _WRAP_METHOD(const Widget* get_child_at(int left, int top) const, gtk_grid_get_child_at)
+  _WRAP_METHOD(Widget* get_child_at(int column, int row), gtk_grid_get_child_at)
+  _WRAP_METHOD(const Widget* get_child_at(int column, int row) const, gtk_grid_get_child_at)
   _WRAP_METHOD(void remove(Widget& child), gtk_grid_remove)
   _WRAP_METHOD(void insert_row(int position), gtk_grid_insert_row)
   _WRAP_METHOD(void insert_column(int position), gtk_grid_insert_column)
@@ -97,7 +97,7 @@ public:
   _WRAP_METHOD(void set_baseline_row(int row), gtk_grid_set_baseline_row)
   _WRAP_METHOD(int get_baseline_row() const, gtk_grid_get_baseline_row)
   _WRAP_METHOD(void query_child(const Widget& child,
-    int& left, int& top, int& width, int& height) const, gtk_grid_query_child)
+    int& column, int& row, int& width, int& height) const, gtk_grid_query_child)
 
   _WRAP_PROPERTY("row-spacing", guint)
   _WRAP_PROPERTY("column-spacing", guint)
diff --git a/gtk/src/gridlayoutchild.hg b/gtk/src/gridlayoutchild.hg
index f6ce8ce4..86cb768b 100644
--- a/gtk/src/gridlayoutchild.hg
+++ b/gtk/src/gridlayoutchild.hg
@@ -56,17 +56,17 @@ protected:
 public:
   // No create() method. Use Gtk::LayoutManager::get_layout_child().
 
-  _WRAP_METHOD(void set_top_attach(int attach), gtk_grid_layout_child_set_top_attach)
-  _WRAP_METHOD(int get_top_attach() const, gtk_grid_layout_child_get_top_attach)
-  _WRAP_METHOD(void set_left_attach(int attach), gtk_grid_layout_child_set_left_attach)
-  _WRAP_METHOD(int get_left_attach() const, gtk_grid_layout_child_get_left_attach)
+  _WRAP_METHOD(void set_row(int row), gtk_grid_layout_child_set_row)
+  _WRAP_METHOD(int get_row() const, gtk_grid_layout_child_get_row)
+  _WRAP_METHOD(void set_column(int column), gtk_grid_layout_child_set_column)
+  _WRAP_METHOD(int get_column() const, gtk_grid_layout_child_get_column)
   _WRAP_METHOD(void set_column_span(int span), gtk_grid_layout_child_set_column_span)
   _WRAP_METHOD(int get_column_span() const, gtk_grid_layout_child_get_column_span)
   _WRAP_METHOD(void set_row_span(int span), gtk_grid_layout_child_set_row_span)
   _WRAP_METHOD(int get_row_span() const, gtk_grid_layout_child_get_row_span)
 
-  _WRAP_PROPERTY("left-attach", int)
-  _WRAP_PROPERTY("top-attach", int)
+  _WRAP_PROPERTY("column", int)
+  _WRAP_PROPERTY("row", int)
   _WRAP_PROPERTY("column-span", int)
   _WRAP_PROPERTY("row-span", int)
 


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