Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GI.Pango.layoutGetSize is not provided #78

Closed
deepfire opened this issue Feb 25, 2017 · 2 comments
Closed

GI.Pango.layoutGetSize is not provided #78

deepfire opened this issue Feb 25, 2017 · 2 comments

Comments

@deepfire
Copy link

According to https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-get-size pango_layout_get_size is a thing, and even
https://hackage.haskell.org/package/gi-pango-1.0.11/docs/GI-Pango-Objects-Layout.html#v:layoutGetPixelSize refers to layoutGetSize, however it is not made available by GI.Pango:

GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Prelude> import GI.Pango
Prelude GI.Pango> :t layoutGetPixelSize
layoutGetPixelSize
  :: (Control.Monad.IO.Class.MonadIO m, IsLayout a) =>
     a -> m (GHC.Int.Int32, GHC.Int.Int32)
Prelude GI.Pango> :t layoutGetSize

<interactive>:1:1: error:
    • Variable not in scope: layoutGetSize
    • Perhaps you meant one of these:
        ‘layoutGetLine’ (imported from GI.Pango),
        ‘layoutGetLines’ (imported from GI.Pango)
@deepfire deepfire changed the title layoutGetSize is not provided GI.Pango.layoutGetSize is not provided Feb 25, 2017
@garetxe
Copy link
Collaborator

garetxe commented Feb 25, 2017

Yes, indeed, thanks for the report! The problem was due to wrong introspection annotations, so the function was not being generated. I added some overrides in b74c6cc, released the fixes as gi-pango-1.0.12 to hackage, and reported the issue in pango upstream.

@deepfire
Copy link
Author

@garetxe, thank you a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants