crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.
http://www.crategus.com/books/cl-cffi-gtk
146 stars 33 forks source link

undefined gtk-file-chooser-filename in file chooser example #9

Closed deadtrickster closed 10 years ago

deadtrickster commented 10 years ago

I suppose it should be called gtk-file-chooser-get-filename, and be defined with something like

(defcfun ("gtk_file_chooser_get_filename" gtk-file-chooser-get-filename)
    :string
  (chooser (g-object gtk-file-chooser))).

I wish I could create push but your documentation style looks a bit complex for me.

deadtrickster commented 10 years ago

Hmm, looks like gtk.file-chooser.lisp already has it. So it just typo in example BTW, I'm talking about examples 48 & 49 here: http://www.crategus.com/books/cl-gtk/gtk-tutorial_11.html#SEC97 (I wonder why M-. didn't helped with finding gtk-file-chooser-get-filename definition for the first time)

crategus commented 10 years ago

Thank you very much for reporting this issue. It is a typo in the tutorial and the example code. I have corrected the bug.

Crategus