-
Notifications
You must be signed in to change notification settings - Fork 10
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
ListView from java List #20
Comments
I tried implementing this here, but obviously did something wrong, as the VM segfaults shortly after startup. |
I added functionality to generate setters for callbacks, including an auto-generated type definition for the callback. This should simplify some of the code in your ListIndex class (no need to write the I wanted to test your utility class, but I know almost nothing about the ListView API, so I don't know how to integrate the class into a small application. Do you have an easily reproducable example that I can use to find the cause of the segfault? |
I added my ListIndex to this branch with an example: https://github.com/jwharm/java-gi/tree/example-20 |
I've tried to find out what is causing the crash, but cannot find it. There's a number of critical errors from GLib that the I'm wondering what the purpose of the |
On a positive note, most of the initial setup of the new |
I also tried to add |
I created a new listmodel implementation that can be used with any Java data structure. It is split into a The example works now, but only when I disable automatic reference counting for GObjects. (removed the call to |
I've fixed the reference counting issue with #29. The example ListView implementation has been merged into the main branch. I'm closing the issue. |
This implementation causes a NPE if the ListIndexModel size is 0. |
This has been fixed with commit 5d53a58. |
I once again came across an issue with this: The java-gtk implementation allows re-setting the size to update elements of the list view. |
Thanks for the bug reports. I forgot to emit the Edit: merged the fix in main too. |
Fixed with commit 8e5650a |
This is something for which java-gtk has a utility class.
Something similar for this library would be nice.
The text was updated successfully, but these errors were encountered: