-
Notifications
You must be signed in to change notification settings - Fork 9
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
Compilation errors when installing with (ql:quickload :cl-gtk4) #8
Comments
The first error. Other errors are similar.
|
Have you updated cl-glib and cl-gobject-introspection-wrapper? |
How do I do it? Looking at the quicklisp folder, I do not see them. Also, it is getting late here; I will respond tomorrow. |
Just clone these 2 repositories into |
How do I do g_object_unref after the change? |
(loop :repeat 100000
:do (mapcar (alexandria:rcurry #'gobj:pointer-object 'window) ; This never leaks memory
(glib:glist-list (application-windows app)))) |
I mean places like: Some Gtk4 examples require to unref objects. This is taken from the branch that had to be modified to compile with the new version of cl-gtk4. The old master branch works with older version of cl-gtk4 with my modifications. It appears the Gtk4 needs it in certain places and I do not know how to write working code without calling unref. Do you have any suggestions? |
Does the code work without |
Good question! The memory management questions: https://docs.gtk.org/gtk4/question_index.html , have interesting comments on the subject. Perhaps the following quote will provide further answers for me. I am new to Gtk4, so some of my questions may be a bit wrong.
|
I have commented out object unref and the code seems to work. I did not know about not having to copy everything from C code and use g_object_unref. Thank you very much for your help. The code now works, and after your library changes, it needed only small modifications. You may close the issue. |
Quicklisp seems to pull your latest code, but it needs more work. I had to comment out the code in 3 places to have a successful compilation.
Also, with gdk moved to the dependency, I have to modify my example code.
But it is a nice project and has good potential.
The text was updated successfully, but these errors were encountered: