After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 739340 - Gtk::Grid::attach_next_to documentation
Gtk::Grid::attach_next_to documentation
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: documentation
unspecified
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2014-10-29 09:12 UTC by Thomas Harty
Modified: 2014-11-05 09:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Harty 2014-10-29 09:12:38 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
Comment 1 Kjell Ahlstedt 2014-11-05 09:56:52 UTC
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