GTK bindings

14 views
Skip to first unread message

Petr Man

unread,
Jun 13, 2009, 12:03:16 PM6/13/09
to Syx general discussion
Hello list,
I wanted to do some GUI prototyping for Syx, for which I have to
extend the GTK bindings. My question is, if the code in /plugins/gtk/
st/ is completely handwritten or at least partially generated.
Petr

Luca Bruno

unread,
Jun 14, 2009, 9:45:52 AM6/14/09
to syx-d...@googlegroups.com
Hi,
the smalltalk code of gtk is manually written. This beacuse methods
gets Smalltalk style, while they have no smalltalk-like meaning if
they are auto generated. But feel free to adopt a new method for
writing the bindings.
An example of smalltalk-like method is Table>>#attach: where you can
use Points instead of x:y:rx:ry: etc.. But in such case the method can
be overridden. Another thing is that entry.setText is better to be
written as entry text: in smalltalk, but not all methods can be mapped
as above, etc. etc.. As I said, feel free to adopt another strategy
like autogenerating the smalltalk code (see the X11 bindings for
example).


--
lethalman.blogspot.com - Thoughts about computer technologies
code.google.com/p/syx - A Smalltalk-80 implementation searching for helpers

Reply all
Reply to author
Forward
0 new messages