GNOME Bugzilla – Bug 739340
Gtk::Grid::attach_next_to documentation
Last modified: 2014-11-05 09:56:52 UTC
The documentation for Gtk::Grid::attach_next_to (https://developer.gnome.org/gtkmm/stable/classGtk_1_1Grid.html#ae42f1ae2fc23e16880c51438afa8fbcf) incorrectly states that sibling can be set to 0 to add the new widget to the beginning/end of the Grid. This is presumably just an incorrect translation of the Gtk docs. Since this is a fairly useful convenience function, it might be worth adding a new method to Gtk::Grid to do this. Something like void attach_next_to(Widget& child, PositionType side, int width, int height) or void attach_at_edge(Widget& child, PositionType side, int width, int height) Otherwise, it would at least be good to fix the docs. Tom
I have pushed a patch that adds void attach_next_to(Widget& child, PositionType side, int width, int height) and fixes the documentation. https://git.gnome.org/browse/gtkmm/commit/?id=20bb5125e33a874baefac2805be2e6f661358f9d