[cl-gtk2-devel] let-ui find the class at macroexpansion

Andrey Kutejko andy128k at gmail.com
Thu Aug 19 07:42:06 UTC 2010


Hello

I hope, this is what you need

http://github.com/andy128k/cl-gtk2/commit/294efbb30a9fbbf8273b4766681becbe08018e80

This commit also adds packing for GtkToolbar and changes a bit syntax
for attributes of tree columns.
So, instead of

           :attribute ("stock-id" 2)
           :attribute ("text" 1)

following syntax should be used

           :attributes '("stock-id" 2
                             "text" 1)


2010/8/19 Kalyanov Dmitry <kalyanov.dmitry at gmail.com>:
> Hi,
>
> On Wed, 2010-08-18 at 15:34 +0200, David Vázquez wrote:
>> It works well if when you compile run, pb class is defined. However, if
>> previous code is in a single file and you use compile-file, it fails. I
>> hope it was helpful.
>>
>> It should be delayed at runtime I think.
>> Thanks!
>
> Thanks for the report!
>
> I've though about it and came to the same conclusion that I've been
> doing too much things at compile-time. let-ui macro tries to resolve
> class by class name at compile time to determine which function should
> be used for adding children. But the same thing is better done with
> generic function dispatched on container widget and having keyword
> arguments.
>
> Unfortunately, I'm having difficulties with my time (aside from my job
> I'm trying to add Windows threads to SBCL which leaves me no free time
> for other projects), so it'll take some time for me to actually
> implement it. But if I'll have a ready-to-merge patch, I'll gladly
> accept it.
>
>
> _______________________________________________
> cl-gtk2-devel mailing list
> cl-gtk2-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/cl-gtk2-devel
>




More information about the cl-gtk2-devel mailing list