[gtkmm/gtkmm-3-24] Container: ForeachSlot takes Widget&, not Widget*



commit e6f9f1987aa649921470873c86bcee98a75854cf
Author: Daniel Boles <dboles src gmail com>
Date:   Sat Oct 20 21:30:12 2018 +0100

    Container: ForeachSlot takes Widget&, not Widget*
    
    Fix the example, and while here, add an introductory line for the type,
    and mirror master in putting a line <br>eak between the text and code.

 gtk/src/container.hg | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/container.hg b/gtk/src/container.hg
index 752370df..e8b12aca 100644
--- a/gtk/src/container.hg
+++ b/gtk/src/container.hg
@@ -98,8 +98,9 @@ public:
   /// Request that contained widgets check their size
   _WRAP_METHOD(void check_resize(), gtk_container_check_resize)
 
-  /** For instance,
-   * void on_foreach(Gtk::Widget* widget);
+  /** A slot to invoke with each child iterated over by foreach() or forall().
+   * For instance,<br>
+   * void on_foreach(Gtk::Widget& widget);
    */
   typedef sigc::slot<void, Widget&> ForeachSlot;
 


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