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 352111 - no function Pango::LayoutIter wrap(PangoLayoutIter*, bool)
no function Pango::LayoutIter wrap(PangoLayoutIter*, bool)
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.9.x
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-08-20 06:51 UTC by Ralf Stephan
Modified: 2011-05-31 13:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch: adds wrap() functions for Pango::LayoutIter, some other documentation (2.71 KB, patch)
2006-11-12 09:17 UTC, Ralf Stephan
none Details | Review
pangomm_layoutiter_wrap.patch (1.35 KB, patch)
2007-05-01 20:38 UTC, Murray Cumming
none Details | Review

Description Ralf Stephan 2006-08-20 06:51:48 UTC
Similar to most other Pango:: classes, there should be a function 
Pango::LayoutIter wrap(PangoLayoutIter* object, bool take_object)


Other information:
Are there more such functions missing?
Comment 1 Murray Cumming 2006-10-19 17:58:24 UTC
Yes, it seems that whenever we use _CLASS_GENERIC in the .hg file, we need to write a wrap() function by hand. For instance, we do this in pango/src/attributes.hg.

A patch would be welcome. In the meantime, people should be able to use the constructors directly.
Comment 2 Ralf Stephan 2006-11-12 09:17:04 UTC
Created attachment 76422 [details] [review]
Patch: adds wrap() functions for Pango::LayoutIter, some other documentation

The patch, besides giving more documentation on Gdk::Drawable, adds the functions

Pango::LayoutIter& wrap (PangoLayoutIter *object);
const Pango::LayoutIter& wrap (const PangoLayoutIter *object);
Comment 3 Murray Cumming 2006-11-13 11:46:41 UTC
I have committed the documentation (which was unrelated, so it should have been in a separate patch), but the API addition must wait until we branch gtkmm. I'm not quite ready to do that yet, but I will commit the patch when I create the branch.

Thanks.
Comment 4 Murray Cumming 2007-05-01 20:38:18 UTC
Created attachment 87360 [details] [review]
pangomm_layoutiter_wrap.patch

This the remaining part of the patch. However, it differs to Pango::Attributes - it does not have the take_copy bool. I'd like to add that (adding a suitable constructor) or decide why this one should be different.
Comment 5 Kjell Ahlstedt 2011-04-29 18:44:46 UTC
Now there is a function

  Pango::LayoutIter wrap(PangoLayoutIter* object, bool take_copy = false);

because _CLASS_GENERIC was replaced by _CLASS_BOXEDTYPE in
pangomm/pango/src/layoutiter.hg at 2011-01-08.
http://git.gnome.org/browse/pangomm/commit/?id=828501a70f78fe88391944034b4a166a631e3daf
Comment 6 Kjell Ahlstedt 2011-05-31 13:44:25 UTC
Fixed as a side effect of the transition to _CLASS_BOXEDTYPE.