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 517874 - the pangomm docs for Attribute::set_start_index missing important detail
the pangomm docs for Attribute::set_start_index missing important detail
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: documentation
unspecified
Other Linux
: Normal major
: ---
Assigned To: gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-02-21 14:17 UTC by Steve Splonskowski
Modified: 2008-03-14 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steve Splonskowski 2008-02-21 14:17:29 UTC
The documentation for pangomm binding for Attribute::set_start_index and Attribute::set_end_index do not call out that the parameter values should be a byte offset into the UTF-8 string (instead of a logical character index).

This is called out in the main pango docs. Moving this detail to the pangomm docs would have been very useful to me :)
Comment 1 Murray Cumming 2008-02-22 12:31:57 UTC
Could you give me a URL for the relevant text in the pango documentation, ideally on library.gnome.org, please?
Comment 2 Behdad Esfahbod 2008-02-22 14:02:14 UTC
Under http://library.gnome.org/devel/pango/stable/pango-Text-Attributes.html#PangoAttribute

Members start_index and end_index are documented with "(in bytes)".
Comment 3 Murray Cumming 2008-03-14 16:43:23 UTC
Fixed in svn trunk. Thanks.

2008-03-14  Murray Cumming  <murrayc@murrayc.com>

	* pango/src/attributes.hg: _MEMBER_SET for end_index and start_index:
	Mentin that the indices are in bytes, as now mentioned in the C 
	documentation.
	Bug #517874 (Steve Splonskowski)