-
Notifications
You must be signed in to change notification settings - Fork 16
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
Handling pgi.clib.glib.GSListPtr #43
Comments
Can you check if this is an issue for anything that would return a list of strings ? (ie go, find some other APIs that would normally return lists of strings and see if they return GSListPtr instead) ? Maybe some code like yours could be added to the right place in PGI if so. |
@jim-easterbrook can you post a more complete example? I installed the GSpell gir bindings, but I'm not sure how to create the checker instance you have. |
Here's a short script.
Without pgi installed I get the following:
With pgi I get this:
I'm not familiar with many GObject APIs, I've only used Gspell and GExiv2 so far. I'm not sure how easy it'll be to find another that returns a list of strings. |
That one is fine, I spent a bit of time trying to understand the pgi code generation the other day but am not really there. Is plain gobject not an option under the environment you are running under? |
I've been experimenting with using the Gspell spell checking library from Python. The only difficulty I've encountered is with the value returned by
Gspell.Checker.get_suggestions
. When using PyGObject I get a Python list of strings, as expected. With pgi I get an object of typepgi.clib.glib.GSListPtr
.I've found a workaround as follows:
The text was updated successfully, but these errors were encountered: