Closed PuercoPop closed 10 years ago
I think the C function gdk_rgba_get_type is missing. The type GdkRGBA is present since GTK+ 3. I have no possibility to check the cl-cffi-gtk on OS X. Therefore, I have overseen to change the names of the libraries from Version 2 to 3 for GTK+. When I am right we have to load the following libraries:
For GTK+ 3:
"libgtk-x11-3.0.0.dylib" or "libgtk-x11-3.0.dylib"
And for GDK 3
"libgdk-x11-3.0.0.dylib" or "libgdk-x11-3.0.dylib"
I have changed the code accordingly and will check it out this eventing. I appreciate any help to get the library to work on OS X.
Dieter Kaiser
Hi, Thank you for the prompt response. Unfortunately the commit didn't resolve the issue on my machine, as the libraries for gtk+3 don't have the x11 on their name, at least on my system, however I added the names on my machine to resolve the issue.
=> ls /usr/local/lib | grep -ie gdk
gdk-pixbuf-2.0
libgdk-3.0.dylib
libgdk-3.dylib
libgdk-x11-2.0.0.dylib
libgdk-x11-2.0.dylib
libgdk_pixbuf-2.0.0.dylib
libgdk_pixbuf-2.0.dylib
=> ls /usr/local/lib | grep -ie gtk
gtk-2.0
gtk-3.0
libgtk-3.0.dylib
libgtk-3.dylib
libgtk-x11-2.0.0.dylib
libgtk-x11-2.0.dylib
I have merged your code to the branch master. Thank you very much for your help.
If you get the demos (see /demo/gtk-demo/gtk-demo.lisp) for Lisp running, I am very interested in some pictures of some demos.
Dieter Kaiser
It worked without problems
Thank you very much for the screen shot. If you don't mind I will include this screen shot in the GTK Tutorial.
Dieter Kaiser
Sure, btw after submitting the image I found out that taking a screenshot makes the app permanently loose focus, but it appears to be an X11 issue from my google-fu
Steps to reproduce: clone cl-cffi-gtk to ~/quicklisp/local-projects/
(ql:quickload :cl-cffi-gtk)
I'm on OS X 10.8.5, SBCL 1.12 and gtk+ 3.10.1 (using homebrew) Here is the backtrace