plops / cl-cffi-gtk-from-repl

Tutorial how to incrementally develop a GTK application in Common Lisp
Other
3 stars 0 forks source link

ccl osx 10.7 "odd length keyword list (:pointer)" following quickload of :custom-widget #1

Open jkordani opened 9 years ago

jkordani commented 9 years ago

Greetings.

Found your blog post and trying to load the code in the repository.

Using macports to supply glib2 and others, after adding /opt/local/lib/ to cffi:foreign-libraries-directory and ql:quickload :custom-widget, I get an error pasted here http://paste.lisp.org/display/144855

plops commented 9 years ago

Hi jkordani, to reenact the things I described in the blog post please only use the self-contained file https://github.com/plops/cl-cffi-gtk-from-repl/blob/master/gtk-from-repl.lisp . This should work fine.

The other code are my experiments to extend GTK with my own GObject classes because I don't like some how some of the standard widgets in GTK behave.

In custom-class.lisp I ported the Code from the Book Andrew Krause: Foundations of GTK+ development, chapter 11 Creating custom widgets.

I'm now porting a treeview renderer. Eventually, I want to have a spinbox entry that pops up, when my mouse enters the appropriate cell of a treeview. I didn't find a way to do this using original GTK widgets.

Unfortunately, a lot of GObject and GTK datastructures that I would need to define my own widgets are not implemented in cl-cffi-gtk so far. That is why I have to define a lot of CFFI code. I'm slowly making progress but it is not a lot of fun working on this. What you are seeing is that

Perhaps when I'm finished I will describe what I learned in another blog post. However, the more I work with GTK, the more I wish there was a pure cross-platform Common Lisp GUI implementation without all this weird GObject cruft.

Regards, Martin

On Mon, Dec 22, 2014 at 3:31 AM, jkordani notifications@github.com wrote:

Greetings.

Found your blog post and trying to load the code in the repository.

Using macports to supply glib2 and others, after adding /opt/local/lib/ to cffi:foreign-libraries-directory and ql:quickload :custom-widget, I get an error pasted here http://paste.lisp.org/display/144855

— Reply to this email directly or view it on GitHub https://github.com/plops/cl-cffi-gtk-from-repl/issues/1.